Skip to content
Snippets Groups Projects
Kconfig_port_timing.in 83.5 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"
endchoice

menu "Instance 1"
	depends on PORT01_INSTANCE_COUNT_1
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"

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)"
 help
	 Defines the transmission constant delay (ps)

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

config PORT01_INST01_T24P_TRANS_POINT
    int "timestampCorrectionPortDS.t24p_trans_point (ps)"
    default 13600
 help
	 Defines the phase transition point for reception timestamps t2/t4 (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 PORT02_IFACE
	string "Network interface"
	default "wri2"
	  Used to set the physical port interface name: "wri[1-18]"
config PORT02_FIBER
	int  "Fiber type"
	default 0
	  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"
endchoice
menu "Instance 1"
	depends on PORT02_INSTANCE_COUNT_1
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
    config PORT02_INST01_PROFILE_WR
Jean-Claude BAU's avatar
Jean-Claude BAU committed
        bool "White Rabbit"

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)"
 help
	 Defines the transmission constant delay (ps)

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

config PORT02_INST01_T24P_TRANS_POINT
    int "timestampCorrectionPortDS.t24p_trans_point (ps)"
    default 10800
 help
	 Defines the phase transition point for reception timestamps t2/t4 (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

endmenu

endmenu

	string "Network interface"
	  Used to set the physical port interface name: "wri[1-18]"
	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
	config PORT03_INSTANCE_COUNT_1
	  bool "1"
endchoice

menu "Instance 1"
	depends on PORT03_INSTANCE_COUNT_1
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
    config PORT03_INST01_PROFILE_WR
Jean-Claude BAU's avatar
Jean-Claude BAU committed
        bool "White Rabbit"

choice
    prompt "Desired state"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED
    default PORT03_INST01_DESIRADE_STATE_MASTER
    config PORT03_INST01_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT03_INST01_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT03_INST01_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT03_INST01_ASYMMETRY_CORRECTION_ENABLE
	depends on !PORT03_INST01_PROFILE_HA && !PORT03_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 PORT03_INST01_BMODE_MASTER_ONLY if TIME_GM || TIME_FM
    default PORT03_INST01_BMODE_AUTO if TIME_BC
    config PORT03_INST01_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT03_INST01_BMODE_AUTO
        bool "Auto"
endchoice

config PORT03_INST01_EGRESS_LATENCY
    int "timestampCorrectionPortDS.egressLatency (ps)"
 help
	 Defines the transmission constant delay (ps)

config PORT03_INST01_INGRESS_LATENCY
    int "timestampCorrectionPortDS.ingressLatency (ps)"
 help
	 Defines the reception constant delay (ps)

config PORT03_INST01_T24P_TRANS_POINT
    int "timestampCorrectionPortDS.t24p_trans_point (ps)"
    default 13650
 help
	 Defines the phase transition point for reception timestamps t2/t4 (ps)

config PORT03_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 PORT03_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 PORT03_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 PORT03_INST01_MIN_DELAY_REQ_INTERVAL
	depends on PORT03_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 PORT03_INST01_MIN_PDELAY_REQ_INTERVAL
	depends on PORT03_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 PORT04_IFACE
	string "Network interface"
	default "wri4"
	  Used to set the physical port interface name: "wri[1-18]"
config PORT04_FIBER
	int  "Fiber type"
	default 0
	  Used to set the type of fiber (number referring to the corresponding 
	  FIBERXX_PARAMS)
config PORT04_CONSTANT_ASYMMETRY
	int "asymmetryCorrectionPortDS.constantAsymmetry"
	default 0
	   Used to set the constant delay asymmetry.
choice
	prompt "Number of port instances"
	default PORT04_INSTANCE_COUNT_1
	config PORT04_INSTANCE_COUNT_0
	  bool "0"
	config PORT04_INSTANCE_COUNT_1
	  bool "1"
endchoice
menu "Instance 1"
	depends on PORT04_INSTANCE_COUNT_1
choice
    prompt "Network protocol"
    default PORT04_INST01_PROTOCOL_RAW
    config PORT04_INST01_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT04_INST01_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT04_INST01_MECHANISM_E2E
    config PORT04_INST01_MECHANISM_E2E
        bool "End-to-end"
    config PORT04_INST01_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

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

choice
    prompt "Profile"
    default PORT04_INST01_PROFILE_WR
    config PORT04_INST01_PROFILE_PTP
    config PORT04_INST01_PROFILE_WR
Jean-Claude BAU's avatar
Jean-Claude BAU committed
        bool "White Rabbit"

choice
    prompt "Desired state"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED
    default PORT04_INST01_DESIRADE_STATE_MASTER
    config PORT04_INST01_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT04_INST01_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT04_INST01_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT04_INST01_ASYMMETRY_CORRECTION_ENABLE
	depends on !PORT04_INST01_PROFILE_HA && !PORT04_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 PORT04_INST01_BMODE_MASTER_ONLY if TIME_GM || TIME_FM
    default PORT04_INST01_BMODE_AUTO if TIME_BC
    config PORT04_INST01_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT04_INST01_BMODE_AUTO
        bool "Auto"
endchoice

config PORT04_INST01_EGRESS_LATENCY
    int "timestampCorrectionPortDS.egressLatency (ps)"
 help
	 Defines the transmission constant delay (ps)

config PORT04_INST01_INGRESS_LATENCY
    int "timestampCorrectionPortDS.ingressLatency (ps)"
 help
	 Defines the reception constant delay (ps)

config PORT04_INST01_T24P_TRANS_POINT
    int "timestampCorrectionPortDS.t24p_trans_point (ps)"
    default 12150
 help
	 Defines the phase transition point for reception timestamps t2/t4 (ps)

config PORT04_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 PORT04_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 PORT04_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 PORT04_INST01_MIN_DELAY_REQ_INTERVAL
	depends on PORT04_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 PORT04_INST01_MIN_PDELAY_REQ_INTERVAL
	depends on PORT04_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

endmenu

endmenu

	string "Network interface"
	  Used to set the physical port interface name: "wri[1-18]"
	int  "Fiber type"
	default 0
	help
	  Used to set the type of fiber (number referring to the corresponding 
	  FIBERXX_PARAMS)

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

choice
	prompt "Number of port instances"
	default PORT05_INSTANCE_COUNT_1
	config PORT05_INSTANCE_COUNT_0
	config PORT05_INSTANCE_COUNT_1
	  bool "1"
endchoice

menu "Instance 1"
	depends on PORT05_INSTANCE_COUNT_1
choice
    prompt "Network protocol"
    default PORT05_INST01_PROTOCOL_RAW
    config PORT05_INST01_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT05_INST01_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT05_INST01_MECHANISM_E2E
    config PORT05_INST01_MECHANISM_E2E
        bool "End-to-end"
    config PORT05_INST01_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

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

choice
    prompt "Profile"
    default PORT05_INST01_PROFILE_WR
    config PORT05_INST01_PROFILE_PTP
    config PORT05_INST01_PROFILE_WR
Jean-Claude BAU's avatar
Jean-Claude BAU committed
        bool "White Rabbit"

choice
    prompt "Desired state"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED
    default PORT05_INST01_DESIRADE_STATE_MASTER
    config PORT05_INST01_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT05_INST01_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT05_INST01_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT05_INST01_ASYMMETRY_CORRECTION_ENABLE
	depends on !PORT05_INST01_PROFILE_HA && !PORT05_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 PORT05_INST01_BMODE_MASTER_ONLY if TIME_GM || TIME_FM
    default PORT05_INST01_BMODE_AUTO if TIME_BC
    config PORT05_INST01_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT05_INST01_BMODE_AUTO
        bool "Auto"
endchoice

config PORT05_INST01_EGRESS_LATENCY
    int "timestampCorrectionPortDS.egressLatency (ps)"
 help
	 Defines the transmission constant delay (ps)

config PORT05_INST01_INGRESS_LATENCY
    int "timestampCorrectionPortDS.ingressLatency (ps)"
 help
	 Defines the reception constant delay (ps)

config PORT05_INST01_T24P_TRANS_POINT
    int "timestampCorrectionPortDS.t24p_trans_point (ps)"
    default 13550
 help
	 Defines the phase transition point for reception timestamps t2/t4 (ps)

config PORT05_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 PORT05_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 PORT05_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 PORT05_INST01_MIN_DELAY_REQ_INTERVAL
	depends on PORT05_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 PORT05_INST01_MIN_PDELAY_REQ_INTERVAL
	depends on PORT05_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 PORT06_IFACE
	string "Network interface"
	default "wri6"
	  Used to set the physical port interface name: "wri[1-18]"
config PORT06_FIBER
	int  "Fiber type"
	default 0
	  Used to set the type of fiber (number referring to the corresponding 
	  FIBERXX_PARAMS)
config PORT06_CONSTANT_ASYMMETRY
	int "asymmetryCorrectionPortDS.constantAsymmetry"
	default 0
	   Used to set the constant delay asymmetry.
choice
	prompt "Number of port instances"
	default PORT06_INSTANCE_COUNT_1
	config PORT06_INSTANCE_COUNT_0
	  bool "0"
	config PORT06_INSTANCE_COUNT_1
	  bool "1"
endchoice
menu "Instance 1"
	depends on PORT06_INSTANCE_COUNT_1
choice
    prompt "Network protocol"
    default PORT06_INST01_PROTOCOL_RAW
    config PORT06_INST01_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT06_INST01_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT06_INST01_MECHANISM_E2E
    config PORT06_INST01_MECHANISM_E2E
        bool "End-to-end"
    config PORT06_INST01_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

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

choice
    prompt "Profile"
    default PORT06_INST01_PROFILE_WR
    config PORT06_INST01_PROFILE_PTP
    config PORT06_INST01_PROFILE_WR
Jean-Claude BAU's avatar
Jean-Claude BAU committed
        bool "White Rabbit"

choice
    prompt "Desired state"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED
    default PORT06_INST01_DESIRADE_STATE_MASTER
    config PORT06_INST01_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT06_INST01_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT06_INST01_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT06_INST01_ASYMMETRY_CORRECTION_ENABLE
	depends on !PORT06_INST01_PROFILE_HA && !PORT06_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 PORT06_INST01_BMODE_MASTER_ONLY if TIME_GM || TIME_FM
    default PORT06_INST01_BMODE_AUTO if TIME_BC
    config PORT06_INST01_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT06_INST01_BMODE_AUTO
        bool "Auto"
endchoice

config PORT06_INST01_EGRESS_LATENCY
    int "timestampCorrectionPortDS.egressLatency (ps)"
 help
	 Defines the transmission constant delay (ps)

config PORT06_INST01_INGRESS_LATENCY
    int "timestampCorrectionPortDS.ingressLatency (ps)"
 help
	 Defines the reception constant delay (ps)

config PORT06_INST01_T24P_TRANS_POINT
    int "timestampCorrectionPortDS.t24p_trans_point (ps)"
    default 14500
 help
	 Defines the phase transition point for reception timestamps t2/t4 (ps)

config PORT06_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 PORT06_INST01_ANNOUNCE_RECEIPT_TIMEOUT