Skip to content
Snippets Groups Projects
Kconfig_port_timing.in 267 KiB
Newer Older
menu "Port Timing Configuration"
config PTP_OPT_EXT_PORT_CONFIG_ENABLED
	bool "externalPortConfigurationEnabled" 
	depends on TIME_BC
	default false
	help
	  This option is used by the high accuracy profile to force the port state.
Jean-Claude BAU's avatar
Jean-Claude BAU committed
	  When set, BMCA is disabled.
	  For more details please refer to the IEEE 1588-20019 (clause 17.6.2)

config PTP_SLAVE_ONLY
	depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED="n" 
	bool "slaveOnly" 
	help
	  A slaveOnly Ordinary Clock utilizes the slaveOnly state machine
	  which does not enable transition to MASTER state.
	  For more details please refer to the IEEE 1588-20019 (clause 9.2.2.1)

menu "PORT 1"

config PORT01_IFACE
	string "Network interface"
	default "wri1"
	  Used to set the physical port interface name: "wri[1-18]"

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

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

choice
	prompt "Number of port instances"
	default PORT01_INSTANCE_COUNT_1
	config PORT01_INSTANCE_COUNT_0
	  bool "0"
	config PORT01_INSTANCE_COUNT_1
	  bool "1"
	config PORT01_INSTANCE_COUNT_2
	  bool "2"
endchoice

menu "Instance 1"
	depends on PORT01_INSTANCE_COUNT_1 ||  PORT01_INSTANCE_COUNT_2  

choice
    prompt "Network protocol"
    default PORT01_INST01_PROTOCOL_RAW
    config PORT01_INST01_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT01_INST01_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT01_INST01_MECHANISM_E2E
    config PORT01_INST01_MECHANISM_E2E
        bool "End-to-end"
    config PORT01_INST01_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

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

choice
    prompt "Profile"
    default PORT01_INST01_PROFILE_WR
    config PORT01_INST01_PROFILE_PTP
        bool "PTP"
    config PORT01_INST01_PROFILE_WR
Jean-Claude BAU's avatar
Jean-Claude BAU committed
        bool "White Rabbit"
    config PORT01_INST01_PROFILE_CUSTOM
        bool "Custom"
endchoice

choice
    prompt "Desired state"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED
    default PORT01_INST01_DESIRADE_STATE_SLAVE if TIME_BC
    default PORT01_INST01_DESIRADE_STATE_MASTER
    config PORT01_INST01_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT01_INST01_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT01_INST01_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT01_INST01_ASYMMETRY_CORRECTION_ENABLE
	depends on !PORT01_INST01_PROFILE_HA && !PORT01_INST01_PROFILE_WR
    bool "asymmetryCorrectionPortDS.enable"
	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 PORT01_INST01_BMODE_MASTER_ONLY if TIME_GM || TIME_FM
    default PORT01_INST01_BMODE_AUTO if TIME_BC
    config PORT01_INST01_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT01_INST01_BMODE_AUTO
        bool "Auto"
endchoice

config PORT01_INST01_EGRESS_LATENCY
    int "timestampCorrectionPortDS.egressLatency (ps)"
    default 223897
 help
	 Defines the transmission constant delay (ps)

config PORT01_INST01_INGRESS_LATENCY
    int "timestampCorrectionPortDS.ingressLatency (ps)"
    default 226273
 help
	 Defines the reception constant delay (ps)

config PORT01_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 PORT01_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 PORT01_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 PORT01_INST01_MIN_DELAY_REQ_INTERVAL
	depends on PORT01_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 PORT01_INST01_MIN_PDELAY_REQ_INTERVAL
	depends on PORT01_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 PORT01_INST01_L1SYNC_ENABLED
	depends on PORT01_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 PORT01_INST01_L1SYNC_INTERVAL
	depends on PORT01_INST01_PROFILE_HA || (PORT01_INST01_PROFILE_CUSTOM &&  PORT01_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 PORT01_INST01_L1SYNC_RECEIPT_TIMEOUT
	depends on PORT01_INST01_PROFILE_HA || (PORT01_INST01_PROFILE_CUSTOM &&  PORT01_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 PORT01_INST01_L1SYNC_TX_COHERENCY_IS_REQUIRED
	depends on PORT01_INST01_PROFILE_CUSTOM &&  PORT01_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 PORT01_INST01_L1SYNC_RX_COHERENCY_IS_REQUIRED
	depends on PORT01_INST01_PROFILE_CUSTOM &&  PORT01_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 PORT01_INST01_L1SYNC_CONGRUENCY_IS_REQUIRED
	depends on PORT01_INST01_PROFILE_CUSTOM &&  PORT01_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 PORT01_INST01_L1SYNC_OPT_PARAMS_ENABLED
	depends on PORT01_INST01_PROFILE_CUSTOM &&  PORT01_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 PORT01_INST01_L1SYNC_OPT_PARAMS_TS_CORRECTED_TX_ENABLED
	depends on PORT01_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 PORT01_INSTANCE_COUNT_2  

choice
    prompt "Network protocol"
    default PORT01_INST02_PROTOCOL_RAW
    config PORT01_INST02_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT01_INST02_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT01_INST02_MECHANISM_E2E
    config PORT01_INST02_MECHANISM_E2E
        bool "End-to-end"
    config PORT01_INST02_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

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

choice
    prompt "Profile"
    default PORT01_INST02_PROFILE_WR
    config PORT01_INST02_PROFILE_PTP
        bool "PTP"
    config PORT01_INST02_PROFILE_WR
Jean-Claude BAU's avatar
Jean-Claude BAU committed
        bool "White Rabbit"
    config PORT01_INST02_PROFILE_CUSTOM
        bool "Custom"
endchoice

choice
    prompt "Desired state"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED
    default PORT01_INST02_DESIRADE_STATE_SLAVE if TIME_BC
    default PORT01_INST02_DESIRADE_STATE_MASTER
    config PORT01_INST02_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT01_INST02_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT01_INST02_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT01_INST02_ASYMMETRY_CORRECTION_ENABLE
	depends on !PORT01_INST02_PROFILE_HA && !PORT01_INST02_PROFILE_WR
    bool "asymmetryCorrectionPortDS.enable"
	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 PORT01_INST02_BMODE_MASTER_ONLY if TIME_GM || TIME_FM
    default PORT01_INST02_BMODE_AUTO if TIME_BC
    config PORT01_INST02_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT01_INST02_BMODE_AUTO
        bool "Auto"
endchoice

config PORT01_INST02_EGRESS_LATENCY
    int "timestampCorrectionPortDS.egressLatency (ps)"
    default 223897
 help
	 Defines the transmission constant delay (ps)

config PORT01_INST02_INGRESS_LATENCY
    int "timestampCorrectionPortDS.ingressLatency (ps)"
    default 226273
 help
	 Defines the reception constant delay (ps)

config PORT01_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 PORT01_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 PORT01_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 PORT01_INST02_MIN_DELAY_REQ_INTERVAL
	depends on PORT01_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 PORT01_INST02_MIN_PDELAY_REQ_INTERVAL
	depends on PORT01_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 PORT01_INST02_L1SYNC_ENABLED
	depends on PORT01_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 PORT01_INST02_L1SYNC_INTERVAL
	depends on PORT01_INST02_PROFILE_HA || (PORT01_INST02_PROFILE_CUSTOM &&  PORT01_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 PORT01_INST02_L1SYNC_RECEIPT_TIMEOUT
	depends on PORT01_INST02_PROFILE_HA || (PORT01_INST02_PROFILE_CUSTOM &&  PORT01_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 PORT01_INST02_L1SYNC_TX_COHERENCY_IS_REQUIRED
	depends on PORT01_INST02_PROFILE_CUSTOM &&  PORT01_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 PORT01_INST02_L1SYNC_RX_COHERENCY_IS_REQUIRED
	depends on PORT01_INST02_PROFILE_CUSTOM &&  PORT01_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 PORT01_INST02_L1SYNC_CONGRUENCY_IS_REQUIRED
	depends on PORT01_INST02_PROFILE_CUSTOM &&  PORT01_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 PORT01_INST02_L1SYNC_OPT_PARAMS_ENABLED
	depends on PORT01_INST02_PROFILE_CUSTOM &&  PORT01_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 PORT01_INST02_L1SYNC_OPT_PARAMS_TS_CORRECTED_TX_ENABLED
	depends on PORT01_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 PORT02_IFACE
	string "Network interface"
	default "wri2"
	help
	  Used to set the physical port interface name: "wri[1-18]"

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

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

choice
	prompt "Number of port instances"
	default PORT02_INSTANCE_COUNT_1
	config PORT02_INSTANCE_COUNT_0
	  bool "0"
	config PORT02_INSTANCE_COUNT_1
	  bool "1"
	config PORT02_INSTANCE_COUNT_2
	  bool "2"
endchoice

menu "Instance 1"
	depends on PORT02_INSTANCE_COUNT_1 ||  PORT02_INSTANCE_COUNT_2  

choice
    prompt "Network protocol"
    default PORT02_INST01_PROTOCOL_RAW
    config PORT02_INST01_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT02_INST01_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT02_INST01_MECHANISM_E2E
    config PORT02_INST01_MECHANISM_E2E
        bool "End-to-end"
    config PORT02_INST01_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

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

choice
    prompt "Profile"
    default PORT02_INST01_PROFILE_WR
    config PORT02_INST01_PROFILE_PTP
        bool "PTP"
    config PORT02_INST01_PROFILE_WR
Jean-Claude BAU's avatar
Jean-Claude BAU committed
        bool "White Rabbit"
    config PORT02_INST01_PROFILE_CUSTOM
        bool "Custom"
endchoice

choice
    prompt "Desired state"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED
    default PORT02_INST01_DESIRADE_STATE_MASTER
    config PORT02_INST01_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT02_INST01_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT02_INST01_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT02_INST01_ASYMMETRY_CORRECTION_ENABLE
	depends on !PORT02_INST01_PROFILE_HA && !PORT02_INST01_PROFILE_WR
    bool "asymmetryCorrectionPortDS.enable"
	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 PORT02_INST01_BMODE_MASTER_ONLY if TIME_GM || TIME_FM
    default PORT02_INST01_BMODE_AUTO if TIME_BC
    config PORT02_INST01_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT02_INST01_BMODE_AUTO
        bool "Auto"
endchoice

config PORT02_INST01_EGRESS_LATENCY
    int "timestampCorrectionPortDS.egressLatency (ps)"
    default 224037
 help
	 Defines the transmission constant delay (ps)

config PORT02_INST01_INGRESS_LATENCY
    int "timestampCorrectionPortDS.ingressLatency (ps)"
    default 226377
 help
	 Defines the reception constant delay (ps)

config PORT02_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 PORT02_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 PORT02_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 PORT02_INST01_MIN_DELAY_REQ_INTERVAL
	depends on PORT02_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 PORT02_INST01_MIN_PDELAY_REQ_INTERVAL
	depends on PORT02_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 PORT02_INST01_L1SYNC_ENABLED
	depends on PORT02_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 PORT02_INST01_L1SYNC_INTERVAL
	depends on PORT02_INST01_PROFILE_HA || (PORT02_INST01_PROFILE_CUSTOM &&  PORT02_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 PORT02_INST01_L1SYNC_RECEIPT_TIMEOUT
	depends on PORT02_INST01_PROFILE_HA || (PORT02_INST01_PROFILE_CUSTOM &&  PORT02_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 PORT02_INST01_L1SYNC_TX_COHERENCY_IS_REQUIRED
	depends on PORT02_INST01_PROFILE_CUSTOM &&  PORT02_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 PORT02_INST01_L1SYNC_RX_COHERENCY_IS_REQUIRED
	depends on PORT02_INST01_PROFILE_CUSTOM &&  PORT02_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 PORT02_INST01_L1SYNC_CONGRUENCY_IS_REQUIRED
	depends on PORT02_INST01_PROFILE_CUSTOM &&  PORT02_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 PORT02_INST01_L1SYNC_OPT_PARAMS_ENABLED
	depends on PORT02_INST01_PROFILE_CUSTOM &&  PORT02_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 PORT02_INST01_L1SYNC_OPT_PARAMS_TS_CORRECTED_TX_ENABLED
	depends on PORT02_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 PORT02_INSTANCE_COUNT_2  

choice
    prompt "Network protocol"
    default PORT02_INST02_PROTOCOL_RAW
    config PORT02_INST02_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT02_INST02_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT02_INST02_MECHANISM_E2E
    config PORT02_INST02_MECHANISM_E2E
        bool "End-to-end"
    config PORT02_INST02_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

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

choice
    prompt "Profile"
    default PORT02_INST02_PROFILE_WR
    config PORT02_INST02_PROFILE_PTP
        bool "PTP"
    config PORT02_INST02_PROFILE_WR
Jean-Claude BAU's avatar
Jean-Claude BAU committed
        bool "White Rabbit"
    config PORT02_INST02_PROFILE_CUSTOM
        bool "Custom"
endchoice

choice
    prompt "Desired state"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED
    default PORT02_INST02_DESIRADE_STATE_MASTER
    config PORT02_INST02_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT02_INST02_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT02_INST02_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT02_INST02_ASYMMETRY_CORRECTION_ENABLE
	depends on !PORT02_INST02_PROFILE_HA && !PORT02_INST02_PROFILE_WR
    bool "asymmetryCorrectionPortDS.enable"
	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 PORT02_INST02_BMODE_MASTER_ONLY if TIME_GM || TIME_FM
    default PORT02_INST02_BMODE_AUTO if TIME_BC
    config PORT02_INST02_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT02_INST02_BMODE_AUTO
        bool "Auto"
endchoice

config PORT02_INST02_EGRESS_LATENCY
    int "timestampCorrectionPortDS.egressLatency (ps)"
    default 224037
 help
	 Defines the transmission constant delay (ps)

config PORT02_INST02_INGRESS_LATENCY
    int "timestampCorrectionPortDS.ingressLatency (ps)"
    default 226377
 help
	 Defines the reception constant delay (ps)

config PORT02_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 PORT02_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 PORT02_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 PORT02_INST02_MIN_DELAY_REQ_INTERVAL
	depends on PORT02_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 PORT02_INST02_MIN_PDELAY_REQ_INTERVAL
	depends on PORT02_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 PORT02_INST02_L1SYNC_ENABLED
	depends on PORT02_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 PORT02_INST02_L1SYNC_INTERVAL
	depends on PORT02_INST02_PROFILE_HA || (PORT02_INST02_PROFILE_CUSTOM &&  PORT02_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 PORT02_INST02_L1SYNC_RECEIPT_TIMEOUT
	depends on PORT02_INST02_PROFILE_HA || (PORT02_INST02_PROFILE_CUSTOM &&  PORT02_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 PORT02_INST02_L1SYNC_TX_COHERENCY_IS_REQUIRED
	depends on PORT02_INST02_PROFILE_CUSTOM &&  PORT02_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 PORT02_INST02_L1SYNC_RX_COHERENCY_IS_REQUIRED
	depends on PORT02_INST02_PROFILE_CUSTOM &&  PORT02_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 PORT02_INST02_L1SYNC_CONGRUENCY_IS_REQUIRED
	depends on PORT02_INST02_PROFILE_CUSTOM &&  PORT02_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 PORT02_INST02_L1SYNC_OPT_PARAMS_ENABLED
	depends on PORT02_INST02_PROFILE_CUSTOM &&  PORT02_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 PORT02_INST02_L1SYNC_OPT_PARAMS_TS_CORRECTED_TX_ENABLED
	depends on PORT02_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 PORT03_IFACE
	string "Network interface"
	default "wri3"
	help
	  Used to set the physical port interface name: "wri[1-18]"

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

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

choice
	prompt "Number of port instances"
	default PORT03_INSTANCE_COUNT_1
	config PORT03_INSTANCE_COUNT_0
	  bool "0"
	config PORT03_INSTANCE_COUNT_1
	  bool "1"
	config PORT03_INSTANCE_COUNT_2
	  bool "2"
endchoice

menu "Instance 1"
	depends on PORT03_INSTANCE_COUNT_1 ||  PORT03_INSTANCE_COUNT_2  

choice
    prompt "Network protocol"
    default PORT03_INST01_PROTOCOL_RAW
    config PORT03_INST01_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT03_INST01_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT03_INST01_MECHANISM_E2E
    config PORT03_INST01_MECHANISM_E2E
        bool "End-to-end"
    config PORT03_INST01_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

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

choice
    prompt "Profile"
    default PORT03_INST01_PROFILE_WR
    config PORT03_INST01_PROFILE_PTP
        bool "PTP"
    config PORT03_INST01_PROFILE_WR
Jean-Claude BAU's avatar
Jean-Claude BAU committed
        bool "White Rabbit"
    config PORT03_INST01_PROFILE_CUSTOM
        bool "Custom"
endchoice