Skip to content
Snippets Groups Projects
Kconfig_port_timing.in 271 KiB
Newer Older
config PORT07_INST01_L1SYNC_RX_COHERENCY_IS_REQUIRED
	depends on PORT07_INST01_PROFILE_CUSTOM &&  PORT07_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.rxCoherencyIsRequired"
	default y
	help
	  The Boolean attribute rxCoherentIsRequired specifies the configuration of the L1Sync port and the
	  expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	  required to be a receive coherent port.

config PORT07_INST01_L1SYNC_CONGRUENCY_IS_REQUIRED
	depends on PORT07_INST01_PROFILE_CUSTOM &&  PORT07_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.congruencyIsRequired"
	default y
	help
	  The Boolean attribute congruentIsRequired specifies configuration of the L1Sync port and the expected
	  configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is required to
	  be a congruent port

config PORT07_INST01_L1SYNC_OPT_PARAMS_ENABLED
	depends on PORT07_INST01_PROFILE_CUSTOM &&  PORT07_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.optParamsEnabled"
	default n
	help
	  The Boolean attribute optParamsEnabled specifies whether the L1Sync port transmitting the L1_SYNC
	  TLV extends this TLV with the information about the optional parameters.

config PORT07_INST01_L1SYNC_OPT_PARAMS_TS_CORRECTED_TX_ENABLED
	depends on PORT07_INST01_L1SYNC_OPT_PARAMS_ENABLED="y" 
	bool "L1SyncBasicPortDS.timestampsCorrectedTx"
	default n
	help
	  When L1SyncOptParamsPortDS.timestampsCorrectedTx is TRUE, 
	  the L1Sync port shall correct the transmitted egress timestamps with 
	  the known value of the phase offset.

endmenu

menu "Instance 2"
	depends on PORT07_INSTANCE_COUNT_2  

choice
    prompt "Network protocol"
    default PORT07_INST02_PROTOCOL_RAW
    config PORT07_INST02_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT07_INST02_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT07_INST02_MECHANISM_E2E
    config PORT07_INST02_MECHANISM_E2E
        bool "End-to-end"
    config PORT07_INST02_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

config PORT07_INST02_MONITOR
	bool "SNMP monitoring"
	default y
	help
	  Option to disable or enable triggering errors in SNMP on a port

choice
    prompt "Profile"
    default PORT07_INST02_PROFILE_HA
    config PORT07_INST02_PROFILE_PTP
        bool "PTP"
    config PORT07_INST02_PROFILE_WR
        bool "WhiteRabbit"
    config PORT07_INST02_PROFILE_HA
        bool "HighAccuracy"
    config PORT07_INST02_PROFILE_CUSTOM
        bool "Custom"
endchoice

choice
    prompt "Desired state"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED
    default PORT07_INST02_DESIRADE_STATE_MASTER
    config PORT07_INST02_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT07_INST02_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT07_INST02_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT07_INST02_ASYMMETRY_CORRECTION_ENABLE
	depends on PORT07_INST02_PROFILE_HA="n" 
    bool "asymmetryCorrectionPortDS.enable"
    default true
	help
	  When supported, the value TRUE shall indicate that the mechanism of for the calculation
	  of the <delayAsymmetry> for certain media is enabled on the PTP port.

choice
    prompt "BMCA mode"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED!=y
    default PORT07_INST02_BMODE_MASTER_ONLY if TIME_BC
    default PORT07_INST02_BMODE_AUTO
    config PORT07_INST02_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT07_INST02_BMODE_AUTO
        bool "Auto"
endchoice

config PORT07_INST02_EGRESS_LATENCY
    depends on PORT07_INST02_PROFILE_WR!=y
    int "timestampCorrectionPortDS.egressLatency (ps)"
    default 224761
 help
	 Defines the transmission constant delay (ps)

config PORT07_INST02_INGRESS_LATENCY
    depends on PORT07_INST02_PROFILE_WR!=y
    int "timestampCorrectionPortDS.ingressLatency (ps)"
    default 228055
 help
	 Defines the reception constant delay (ps)

config PORT07_INST02_ANNOUNCE_INTERVAL
	int "logAnnounceInterval" 
	default 1
	range 0 4
	help
	  The mean time interval between transmissions of successive
	  Announce messages. The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 4.

config PORT07_INST02_ANNOUNCE_RECEIPT_TIMEOUT
	int "announceReceiptTimeout"
	default 3
	range 2 255
	help
	  The announceReceiptTimeout specifies the number of announceIntervals 
	  that must pass without receipt of an Announce message before the 
	  occurrence of the event ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 255

config PORT07_INST02_SYNC_INTERVAL
	int "logSyncInterval"
	default 0
	range -1 1
	help
	  The mean time interval between transmission of successive
	  Sync messages, i.e., the sync-interval, when transmitted
	  as multicast messages. The value is the logarithm to the base 2.
	  The configurable range shall be -1 to +1

config PORT07_INST02_MIN_DELAY_REQ_INTERVAL
	depends on PORT07_INST02_MECHANISM_E2E  
	int "minDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Delay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT07_INST02_MIN_PDELAY_REQ_INTERVAL
	depends on PORT07_INST02_MECHANISM_P2P  
	int "minPDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minPDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Pdelay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT07_INST02_L1SYNC_ENABLED
	depends on PORT07_INST02_PROFILE_CUSTOM  
	bool "L1SyncBasicPortDS.L1SyncEnabled"
	default y
	help
	  This parameter specifies whether the L1Sync option is enabled on the PTP Port. If
	  L1SyncEnabled is TRUE, then the L1Sync message exchange is supported and enabled

config PORT07_INST02_L1SYNC_INTERVAL
	depends on PORT07_INST02_PROFILE_HA || (PORT07_INST02_PROFILE_CUSTOM &&  PORT07_INST02_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.logL1SyncInterval"
	default 0
	range -4 4
	help
	  The L1Sync interval specifies the time interval
	  between successive periodic L1_SYNC TLV.
	  The value is the logarithm to the base 2.
	  The configurable range shall be -4 to 4

config PORT07_INST02_L1SYNC_RECEIPT_TIMEOUT
	depends on PORT07_INST02_PROFILE_HA || (PORT07_INST02_PROFILE_CUSTOM &&  PORT07_INST02_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.L1SyncReceiptTimeout"
	default 3
	range 2 10
	help
	  The value of L1SyncReceiptTimeout specifies the number of elapsed 
	  L1SyncIntervals that must pass without reception of the L1_SYNC TLV 
	  before the L1_SYNC TLV reception timeout occurs.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 10

config PORT07_INST02_L1SYNC_TX_COHERENCY_IS_REQUIRED
	depends on PORT07_INST02_PROFILE_CUSTOM &&  PORT07_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.txCoherencyIsRequired"
	default y
	help
	   The Boolean attribute txCoherentIsRequired specifies the configuration of the L1Sync port and the
	   expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	   required to be a transmit coherent port.

config PORT07_INST02_L1SYNC_RX_COHERENCY_IS_REQUIRED
	depends on PORT07_INST02_PROFILE_CUSTOM &&  PORT07_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.rxCoherencyIsRequired"
	default y
	help
	  The Boolean attribute rxCoherentIsRequired specifies the configuration of the L1Sync port and the
	  expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	  required to be a receive coherent port.

config PORT07_INST02_L1SYNC_CONGRUENCY_IS_REQUIRED
	depends on PORT07_INST02_PROFILE_CUSTOM &&  PORT07_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.congruencyIsRequired"
	default y
	help
	  The Boolean attribute congruentIsRequired specifies configuration of the L1Sync port and the expected
	  configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is required to
	  be a congruent port

config PORT07_INST02_L1SYNC_OPT_PARAMS_ENABLED
	depends on PORT07_INST02_PROFILE_CUSTOM &&  PORT07_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.optParamsEnabled"
	default n
	help
	  The Boolean attribute optParamsEnabled specifies whether the L1Sync port transmitting the L1_SYNC
	  TLV extends this TLV with the information about the optional parameters.

config PORT07_INST02_L1SYNC_OPT_PARAMS_TS_CORRECTED_TX_ENABLED
	depends on PORT07_INST02_L1SYNC_OPT_PARAMS_ENABLED="y" 
	bool "L1SyncBasicPortDS.timestampsCorrectedTx"
	default n
	help
	  When L1SyncOptParamsPortDS.timestampsCorrectedTx is TRUE, 
	  the L1Sync port shall correct the transmitted egress timestamps with 
	  the known value of the phase offset.

config PORT08_IFACE
	string "Network interface"
	default "wri8"
	  Used to set the physivcal port interface name: "wri[1-18]"

config PORT08_FIBER
	int  "Fiber type"
	default 0
	help
	  Used to set the type of fiber (number referring to the corresponding 
	  FIBERXX_PARAMS)

config PORT08_CONSTANT_ASYMMETRY
	int "asymmetryCorrectionPortDS.constantAsymmetry"
	default 0
	help
	   Used to set the constant delay asymmetry.

choice
	prompt "Number of port instances"
	default PORT08_INSTANCE_COUNT_1
	config PORT08_INSTANCE_COUNT_0
	  bool "0"
	config PORT08_INSTANCE_COUNT_1
	  bool "1"
	config PORT08_INSTANCE_COUNT_2
	  bool "2"
endchoice

menu "Instance 1"
	depends on PORT08_INSTANCE_COUNT_1 ||  PORT08_INSTANCE_COUNT_2  

choice
    prompt "Network protocol"
    default PORT08_INST01_PROTOCOL_RAW
    config PORT08_INST01_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT08_INST01_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT08_INST01_MECHANISM_E2E
    config PORT08_INST01_MECHANISM_E2E
        bool "End-to-end"
    config PORT08_INST01_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

config PORT08_INST01_MONITOR
	bool "SNMP monitoring"
	default y
	help
	  Option to disable or enable triggering errors in SNMP on a port

choice
    prompt "Profile"
    default PORT08_INST01_PROFILE_HA
    config PORT08_INST01_PROFILE_PTP
        bool "PTP"
    config PORT08_INST01_PROFILE_WR
        bool "WhiteRabbit"
    config PORT08_INST01_PROFILE_HA
        bool "HighAccuracy"
    config PORT08_INST01_PROFILE_CUSTOM
        bool "Custom"
endchoice

choice
    prompt "Desired state"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED
    default PORT08_INST01_DESIRADE_STATE_MASTER
    config PORT08_INST01_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT08_INST01_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT08_INST01_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT08_INST01_ASYMMETRY_CORRECTION_ENABLE
	depends on PORT08_INST01_PROFILE_HA="n" 
    bool "asymmetryCorrectionPortDS.enable"
    default true
	help
	  When supported, the value TRUE shall indicate that the mechanism of for the calculation
	  of the <delayAsymmetry> for certain media is enabled on the PTP port.

choice
    prompt "BMCA mode"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED!=y
    default PORT08_INST01_BMODE_MASTER_ONLY if TIME_BC
    default PORT08_INST01_BMODE_AUTO
    config PORT08_INST01_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT08_INST01_BMODE_AUTO
        bool "Auto"
endchoice

config PORT08_INST01_EGRESS_LATENCY
    depends on PORT08_INST01_PROFILE_WR!=y
    int "timestampCorrectionPortDS.egressLatency (ps)"
    default 224898
 help
	 Defines the transmission constant delay (ps)

config PORT08_INST01_INGRESS_LATENCY
    depends on PORT08_INST01_PROFILE_WR!=y
    int "timestampCorrectionPortDS.ingressLatency (ps)"
    default 228178
 help
	 Defines the reception constant delay (ps)

config PORT08_INST01_ANNOUNCE_INTERVAL
	int "logAnnounceInterval" 
	default 1
	range 0 4
	help
	  The mean time interval between transmissions of successive
	  Announce messages. The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 4.

config PORT08_INST01_ANNOUNCE_RECEIPT_TIMEOUT
	int "announceReceiptTimeout"
	default 3
	range 2 255
	help
	  The announceReceiptTimeout specifies the number of announceIntervals 
	  that must pass without receipt of an Announce message before the 
	  occurrence of the event ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 255

config PORT08_INST01_SYNC_INTERVAL
	int "logSyncInterval"
	default 0
	range -1 1
	help
	  The mean time interval between transmission of successive
	  Sync messages, i.e., the sync-interval, when transmitted
	  as multicast messages. The value is the logarithm to the base 2.
	  The configurable range shall be -1 to +1

config PORT08_INST01_MIN_DELAY_REQ_INTERVAL
	depends on PORT08_INST01_MECHANISM_E2E  
	int "minDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Delay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT08_INST01_MIN_PDELAY_REQ_INTERVAL
	depends on PORT08_INST01_MECHANISM_P2P  
	int "minPDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minPDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Pdelay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT08_INST01_L1SYNC_ENABLED
	depends on PORT08_INST01_PROFILE_CUSTOM  
	bool "L1SyncBasicPortDS.L1SyncEnabled"
	default y
	help
	  This parameter specifies whether the L1Sync option is enabled on the PTP Port. If
	  L1SyncEnabled is TRUE, then the L1Sync message exchange is supported and enabled

config PORT08_INST01_L1SYNC_INTERVAL
	depends on PORT08_INST01_PROFILE_HA || (PORT08_INST01_PROFILE_CUSTOM &&  PORT08_INST01_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.logL1SyncInterval"
	default 0
	range -4 4
	help
	  The L1Sync interval specifies the time interval
	  between successive periodic L1_SYNC TLV.
	  The value is the logarithm to the base 2.
	  The configurable range shall be -4 to 4

config PORT08_INST01_L1SYNC_RECEIPT_TIMEOUT
	depends on PORT08_INST01_PROFILE_HA || (PORT08_INST01_PROFILE_CUSTOM &&  PORT08_INST01_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.L1SyncReceiptTimeout"
	default 3
	range 2 10
	help
	  The value of L1SyncReceiptTimeout specifies the number of elapsed 
	  L1SyncIntervals that must pass without reception of the L1_SYNC TLV 
	  before the L1_SYNC TLV reception timeout occurs.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 10

config PORT08_INST01_L1SYNC_TX_COHERENCY_IS_REQUIRED
	depends on PORT08_INST01_PROFILE_CUSTOM &&  PORT08_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.txCoherencyIsRequired"
	default y
	help
	   The Boolean attribute txCoherentIsRequired specifies the configuration of the L1Sync port and the
	   expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	   required to be a transmit coherent port.

config PORT08_INST01_L1SYNC_RX_COHERENCY_IS_REQUIRED
	depends on PORT08_INST01_PROFILE_CUSTOM &&  PORT08_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.rxCoherencyIsRequired"
	default y
	help
	  The Boolean attribute rxCoherentIsRequired specifies the configuration of the L1Sync port and the
	  expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	  required to be a receive coherent port.

config PORT08_INST01_L1SYNC_CONGRUENCY_IS_REQUIRED
	depends on PORT08_INST01_PROFILE_CUSTOM &&  PORT08_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.congruencyIsRequired"
	default y
	help
	  The Boolean attribute congruentIsRequired specifies configuration of the L1Sync port and the expected
	  configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is required to
	  be a congruent port

config PORT08_INST01_L1SYNC_OPT_PARAMS_ENABLED
	depends on PORT08_INST01_PROFILE_CUSTOM &&  PORT08_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.optParamsEnabled"
	default n
	help
	  The Boolean attribute optParamsEnabled specifies whether the L1Sync port transmitting the L1_SYNC
	  TLV extends this TLV with the information about the optional parameters.

config PORT08_INST01_L1SYNC_OPT_PARAMS_TS_CORRECTED_TX_ENABLED
	depends on PORT08_INST01_L1SYNC_OPT_PARAMS_ENABLED="y" 
	bool "L1SyncBasicPortDS.timestampsCorrectedTx"
	default n
	help
	  When L1SyncOptParamsPortDS.timestampsCorrectedTx is TRUE, 
	  the L1Sync port shall correct the transmitted egress timestamps with 
	  the known value of the phase offset.

endmenu

menu "Instance 2"
	depends on PORT08_INSTANCE_COUNT_2  

choice
    prompt "Network protocol"
    default PORT08_INST02_PROTOCOL_RAW
    config PORT08_INST02_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT08_INST02_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT08_INST02_MECHANISM_E2E
    config PORT08_INST02_MECHANISM_E2E
        bool "End-to-end"
    config PORT08_INST02_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

config PORT08_INST02_MONITOR
	bool "SNMP monitoring"
	default y
	help
	  Option to disable or enable triggering errors in SNMP on a port

choice
    prompt "Profile"
    default PORT08_INST02_PROFILE_HA
    config PORT08_INST02_PROFILE_PTP
        bool "PTP"
    config PORT08_INST02_PROFILE_WR
        bool "WhiteRabbit"
    config PORT08_INST02_PROFILE_HA
        bool "HighAccuracy"
    config PORT08_INST02_PROFILE_CUSTOM
        bool "Custom"
endchoice

choice
    prompt "Desired state"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED
    default PORT08_INST02_DESIRADE_STATE_MASTER
    config PORT08_INST02_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT08_INST02_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT08_INST02_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT08_INST02_ASYMMETRY_CORRECTION_ENABLE
	depends on PORT08_INST02_PROFILE_HA="n" 
    bool "asymmetryCorrectionPortDS.enable"
    default true
	help
	  When supported, the value TRUE shall indicate that the mechanism of for the calculation
	  of the <delayAsymmetry> for certain media is enabled on the PTP port.

choice
    prompt "BMCA mode"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED!=y
    default PORT08_INST02_BMODE_MASTER_ONLY if TIME_BC
    default PORT08_INST02_BMODE_AUTO
    config PORT08_INST02_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT08_INST02_BMODE_AUTO
        bool "Auto"
endchoice

config PORT08_INST02_EGRESS_LATENCY
    depends on PORT08_INST02_PROFILE_WR!=y
    int "timestampCorrectionPortDS.egressLatency (ps)"
    default 224898
 help
	 Defines the transmission constant delay (ps)

config PORT08_INST02_INGRESS_LATENCY
    depends on PORT08_INST02_PROFILE_WR!=y
    int "timestampCorrectionPortDS.ingressLatency (ps)"
    default 228178
 help
	 Defines the reception constant delay (ps)

config PORT08_INST02_ANNOUNCE_INTERVAL
	int "logAnnounceInterval" 
	default 1
	range 0 4
	help
	  The mean time interval between transmissions of successive
	  Announce messages. The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 4.

config PORT08_INST02_ANNOUNCE_RECEIPT_TIMEOUT
	int "announceReceiptTimeout"
	default 3
	range 2 255
	help
	  The announceReceiptTimeout specifies the number of announceIntervals 
	  that must pass without receipt of an Announce message before the 
	  occurrence of the event ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 255

config PORT08_INST02_SYNC_INTERVAL
	int "logSyncInterval"
	default 0
	range -1 1
	help
	  The mean time interval between transmission of successive
	  Sync messages, i.e., the sync-interval, when transmitted
	  as multicast messages. The value is the logarithm to the base 2.
	  The configurable range shall be -1 to +1

config PORT08_INST02_MIN_DELAY_REQ_INTERVAL
	depends on PORT08_INST02_MECHANISM_E2E  
	int "minDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Delay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT08_INST02_MIN_PDELAY_REQ_INTERVAL
	depends on PORT08_INST02_MECHANISM_P2P  
	int "minPDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minPDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Pdelay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT08_INST02_L1SYNC_ENABLED
	depends on PORT08_INST02_PROFILE_CUSTOM  
	bool "L1SyncBasicPortDS.L1SyncEnabled"
	default y
	help
	  This parameter specifies whether the L1Sync option is enabled on the PTP Port. If
	  L1SyncEnabled is TRUE, then the L1Sync message exchange is supported and enabled

config PORT08_INST02_L1SYNC_INTERVAL
	depends on PORT08_INST02_PROFILE_HA || (PORT08_INST02_PROFILE_CUSTOM &&  PORT08_INST02_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.logL1SyncInterval"
	default 0
	range -4 4
	help
	  The L1Sync interval specifies the time interval
	  between successive periodic L1_SYNC TLV.
	  The value is the logarithm to the base 2.
	  The configurable range shall be -4 to 4

config PORT08_INST02_L1SYNC_RECEIPT_TIMEOUT
	depends on PORT08_INST02_PROFILE_HA || (PORT08_INST02_PROFILE_CUSTOM &&  PORT08_INST02_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.L1SyncReceiptTimeout"
	default 3
	range 2 10
	help
	  The value of L1SyncReceiptTimeout specifies the number of elapsed 
	  L1SyncIntervals that must pass without reception of the L1_SYNC TLV 
	  before the L1_SYNC TLV reception timeout occurs.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 10

config PORT08_INST02_L1SYNC_TX_COHERENCY_IS_REQUIRED
	depends on PORT08_INST02_PROFILE_CUSTOM &&  PORT08_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.txCoherencyIsRequired"
	default y
	help
	   The Boolean attribute txCoherentIsRequired specifies the configuration of the L1Sync port and the
	   expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	   required to be a transmit coherent port.

config PORT08_INST02_L1SYNC_RX_COHERENCY_IS_REQUIRED
	depends on PORT08_INST02_PROFILE_CUSTOM &&  PORT08_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.rxCoherencyIsRequired"
	default y
	help
	  The Boolean attribute rxCoherentIsRequired specifies the configuration of the L1Sync port and the
	  expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	  required to be a receive coherent port.

config PORT08_INST02_L1SYNC_CONGRUENCY_IS_REQUIRED
	depends on PORT08_INST02_PROFILE_CUSTOM &&  PORT08_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.congruencyIsRequired"
	default y
	help
	  The Boolean attribute congruentIsRequired specifies configuration of the L1Sync port and the expected
	  configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is required to
	  be a congruent port

config PORT08_INST02_L1SYNC_OPT_PARAMS_ENABLED
	depends on PORT08_INST02_PROFILE_CUSTOM &&  PORT08_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.optParamsEnabled"
	default n
	help
	  The Boolean attribute optParamsEnabled specifies whether the L1Sync port transmitting the L1_SYNC
	  TLV extends this TLV with the information about the optional parameters.

config PORT08_INST02_L1SYNC_OPT_PARAMS_TS_CORRECTED_TX_ENABLED
	depends on PORT08_INST02_L1SYNC_OPT_PARAMS_ENABLED="y" 
	bool "L1SyncBasicPortDS.timestampsCorrectedTx"
	default n
	help
	  When L1SyncOptParamsPortDS.timestampsCorrectedTx is TRUE, 
	  the L1Sync port shall correct the transmitted egress timestamps with 
	  the known value of the phase offset.

config PORT09_IFACE
	string "Network interface"
	default "wri9"
	help
	  Used to set the physivcal port interface name: "wri[1-18]"

config PORT09_FIBER
	int  "Fiber type"
	default 0
	  Used to set the type of fiber (number referring to the corresponding 
	  FIBERXX_PARAMS)

config PORT09_CONSTANT_ASYMMETRY
	int "asymmetryCorrectionPortDS.constantAsymmetry"
	default 0
	help
	   Used to set the constant delay asymmetry.

choice
	prompt "Number of port instances"
	default PORT09_INSTANCE_COUNT_1
	config PORT09_INSTANCE_COUNT_0
	  bool "0"
	config PORT09_INSTANCE_COUNT_1
	  bool "1"
	config PORT09_INSTANCE_COUNT_2
	  bool "2"
endchoice

menu "Instance 1"
	depends on PORT09_INSTANCE_COUNT_1 ||  PORT09_INSTANCE_COUNT_2  

choice
    prompt "Network protocol"
    default PORT09_INST01_PROTOCOL_RAW
    config PORT09_INST01_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT09_INST01_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT09_INST01_MECHANISM_E2E
    config PORT09_INST01_MECHANISM_E2E
        bool "End-to-end"
    config PORT09_INST01_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

config PORT09_INST01_MONITOR
	bool "SNMP monitoring"
	default y
	help
	  Option to disable or enable triggering errors in SNMP on a port

choice
    prompt "Profile"
    default PORT09_INST01_PROFILE_HA
    config PORT09_INST01_PROFILE_PTP
        bool "PTP"
    config PORT09_INST01_PROFILE_WR
        bool "WhiteRabbit"
    config PORT09_INST01_PROFILE_HA
        bool "HighAccuracy"
    config PORT09_INST01_PROFILE_CUSTOM
        bool "Custom"
endchoice

choice
    prompt "Desired state"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED
    default PORT09_INST01_DESIRADE_STATE_MASTER
    config PORT09_INST01_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT09_INST01_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT09_INST01_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT09_INST01_ASYMMETRY_CORRECTION_ENABLE
	depends on PORT09_INST01_PROFILE_HA="n" 
    bool "asymmetryCorrectionPortDS.enable"
    default true
	help
	  When supported, the value TRUE shall indicate that the mechanism of for the calculation
	  of the <delayAsymmetry> for certain media is enabled on the PTP port.

choice
    prompt "BMCA mode"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED!=y
    default PORT09_INST01_BMODE_MASTER_ONLY if TIME_BC
    default PORT09_INST01_BMODE_AUTO
    config PORT09_INST01_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT09_INST01_BMODE_AUTO
        bool "Auto"
endchoice

config PORT09_INST01_EGRESS_LATENCY
    depends on PORT09_INST01_PROFILE_WR!=y
    int "timestampCorrectionPortDS.egressLatency (ps)"
    default 225069
 help
	 Defines the transmission constant delay (ps)

config PORT09_INST01_INGRESS_LATENCY
    depends on PORT09_INST01_PROFILE_WR!=y
    int "timestampCorrectionPortDS.ingressLatency (ps)"
    default 228277
 help
	 Defines the reception constant delay (ps)

config PORT09_INST01_ANNOUNCE_INTERVAL
	int "logAnnounceInterval" 
	default 1
	range 0 4
	help
	  The mean time interval between transmissions of successive
	  Announce messages. The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 4.

config PORT09_INST01_ANNOUNCE_RECEIPT_TIMEOUT
	int "announceReceiptTimeout"
	default 3
	range 2 255
	help
	  The announceReceiptTimeout specifies the number of announceIntervals 
	  that must pass without receipt of an Announce message before the 
	  occurrence of the event ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 255

config PORT09_INST01_SYNC_INTERVAL
	int "logSyncInterval"
	default 0
	range -1 1
	help
	  The mean time interval between transmission of successive
	  Sync messages, i.e., the sync-interval, when transmitted
	  as multicast messages. The value is the logarithm to the base 2.
	  The configurable range shall be -1 to +1

config PORT09_INST01_MIN_DELAY_REQ_INTERVAL
	depends on PORT09_INST01_MECHANISM_E2E  
	int "minDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Delay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT09_INST01_MIN_PDELAY_REQ_INTERVAL
	depends on PORT09_INST01_MECHANISM_P2P  
	int "minPDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minPDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Pdelay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT09_INST01_L1SYNC_ENABLED
	depends on PORT09_INST01_PROFILE_CUSTOM  
	bool "L1SyncBasicPortDS.L1SyncEnabled"
	default y
	help
	  This parameter specifies whether the L1Sync option is enabled on the PTP Port. If
	  L1SyncEnabled is TRUE, then the L1Sync message exchange is supported and enabled

config PORT09_INST01_L1SYNC_INTERVAL
	depends on PORT09_INST01_PROFILE_HA || (PORT09_INST01_PROFILE_CUSTOM &&  PORT09_INST01_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.logL1SyncInterval"
	default 0
	range -4 4
	help
	  The L1Sync interval specifies the time interval
	  between successive periodic L1_SYNC TLV.
	  The value is the logarithm to the base 2.
	  The configurable range shall be -4 to 4

config PORT09_INST01_L1SYNC_RECEIPT_TIMEOUT
	depends on PORT09_INST01_PROFILE_HA || (PORT09_INST01_PROFILE_CUSTOM &&  PORT09_INST01_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.L1SyncReceiptTimeout"
	default 3
	range 2 10
	help
	  The value of L1SyncReceiptTimeout specifies the number of elapsed 
	  L1SyncIntervals that must pass without reception of the L1_SYNC TLV 
	  before the L1_SYNC TLV reception timeout occurs.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 10

config PORT09_INST01_L1SYNC_TX_COHERENCY_IS_REQUIRED
	depends on PORT09_INST01_PROFILE_CUSTOM &&  PORT09_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.txCoherencyIsRequired"
	default y
	help
	   The Boolean attribute txCoherentIsRequired specifies the configuration of the L1Sync port and the
	   expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	   required to be a transmit coherent port.

config PORT09_INST01_L1SYNC_RX_COHERENCY_IS_REQUIRED
	depends on PORT09_INST01_PROFILE_CUSTOM &&  PORT09_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.rxCoherencyIsRequired"
	default y
	help
	  The Boolean attribute rxCoherentIsRequired specifies the configuration of the L1Sync port and the
	  expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	  required to be a receive coherent port.

config PORT09_INST01_L1SYNC_CONGRUENCY_IS_REQUIRED
	depends on PORT09_INST01_PROFILE_CUSTOM &&  PORT09_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.congruencyIsRequired"
	default y
	help
	  The Boolean attribute congruentIsRequired specifies configuration of the L1Sync port and the expected
	  configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is required to
	  be a congruent port

config PORT09_INST01_L1SYNC_OPT_PARAMS_ENABLED
	depends on PORT09_INST01_PROFILE_CUSTOM &&  PORT09_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.optParamsEnabled"
	default n
	help
	  The Boolean attribute optParamsEnabled specifies whether the L1Sync port transmitting the L1_SYNC
	  TLV extends this TLV with the information about the optional parameters.

config PORT09_INST01_L1SYNC_OPT_PARAMS_TS_CORRECTED_TX_ENABLED
	depends on PORT09_INST01_L1SYNC_OPT_PARAMS_ENABLED="y" 
	bool "L1SyncBasicPortDS.timestampsCorrectedTx"
	default n
	help
	  When L1SyncOptParamsPortDS.timestampsCorrectedTx is TRUE, 
	  the L1Sync port shall correct the transmitted egress timestamps with 
	  the known value of the phase offset.

endmenu

menu "Instance 2"
	depends on PORT09_INSTANCE_COUNT_2  

choice
    prompt "Network protocol"
    default PORT09_INST02_PROTOCOL_RAW
    config PORT09_INST02_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT09_INST02_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT09_INST02_MECHANISM_E2E
    config PORT09_INST02_MECHANISM_E2E
        bool "End-to-end"
    config PORT09_INST02_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

config PORT09_INST02_MONITOR
	bool "SNMP monitoring"
	default y
	help
	  Option to disable or enable triggering errors in SNMP on a port

choice
    prompt "Profile"
    default PORT09_INST02_PROFILE_HA
    config PORT09_INST02_PROFILE_PTP
        bool "PTP"
    config PORT09_INST02_PROFILE_WR
        bool "WhiteRabbit"
    config PORT09_INST02_PROFILE_HA
        bool "HighAccuracy"
    config PORT09_INST02_PROFILE_CUSTOM
        bool "Custom"
endchoice