Skip to content
Snippets Groups Projects
Kconfig_port_timing.in 83.5 KiB
Newer Older
 help
	 Defines the transmission constant delay (ps)

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

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

config PORT12_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 PORT12_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 PORT12_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 PORT12_INST01_MIN_DELAY_REQ_INTERVAL
	depends on PORT12_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 PORT12_INST01_MIN_PDELAY_REQ_INTERVAL
	depends on PORT12_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 PORT13_CONSTANT_ASYMMETRY
	int "asymmetryCorrectionPortDS.constantAsymmetry"
	default 0
	   Used to set the constant delay asymmetry.

choice
	prompt "Number of port instances"
	default PORT13_INSTANCE_COUNT_1
	config PORT13_INSTANCE_COUNT_0
	config PORT13_INSTANCE_COUNT_1
	  bool "1"
endchoice

menu "Instance 1"
	depends on PORT13_INSTANCE_COUNT_1
choice
    prompt "Network protocol"
    default PORT13_INST01_PROTOCOL_RAW
    config PORT13_INST01_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT13_INST01_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT13_INST01_MECHANISM_E2E
    config PORT13_INST01_MECHANISM_E2E
        bool "End-to-end"
    config PORT13_INST01_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

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

choice
    prompt "Profile"
    default PORT13_INST01_PROFILE_WR
    config PORT13_INST01_PROFILE_PTP
    config PORT13_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 PORT13_INST01_DESIRADE_STATE_MASTER
    config PORT13_INST01_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT13_INST01_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT13_INST01_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT13_INST01_ASYMMETRY_CORRECTION_ENABLE
	depends on !PORT13_INST01_PROFILE_HA && !PORT13_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 PORT13_INST01_BMODE_MASTER_ONLY if TIME_GM || TIME_FM
    default PORT13_INST01_BMODE_AUTO if TIME_BC
    config PORT13_INST01_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT13_INST01_BMODE_AUTO
        bool "Auto"
endchoice

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

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

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

config PORT13_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 PORT13_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 PORT13_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 PORT13_INST01_MIN_DELAY_REQ_INTERVAL
	depends on PORT13_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 PORT13_INST01_MIN_PDELAY_REQ_INTERVAL
	depends on PORT13_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 PORT14_IFACE
	string "Network interface"
	default "wri14"
	  Used to set the physical port interface name: "wri[1-18]"
config PORT14_FIBER
	int  "Fiber type"
	default 0
	  Used to set the type of fiber (number referring to the corresponding 
	  FIBERXX_PARAMS)
config PORT14_CONSTANT_ASYMMETRY
	int "asymmetryCorrectionPortDS.constantAsymmetry"
	default 0
	   Used to set the constant delay asymmetry.
choice
	prompt "Number of port instances"
	default PORT14_INSTANCE_COUNT_1
	config PORT14_INSTANCE_COUNT_0
	  bool "0"
	config PORT14_INSTANCE_COUNT_1
	  bool "1"
endchoice
menu "Instance 1"
	depends on PORT14_INSTANCE_COUNT_1
choice
    prompt "Network protocol"
    default PORT14_INST01_PROTOCOL_RAW
    config PORT14_INST01_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT14_INST01_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT14_INST01_MECHANISM_E2E
    config PORT14_INST01_MECHANISM_E2E
        bool "End-to-end"
    config PORT14_INST01_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

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

choice
    prompt "Profile"
    default PORT14_INST01_PROFILE_WR
    config PORT14_INST01_PROFILE_PTP
    config PORT14_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 PORT14_INST01_DESIRADE_STATE_MASTER
    config PORT14_INST01_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT14_INST01_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT14_INST01_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT14_INST01_ASYMMETRY_CORRECTION_ENABLE
	depends on !PORT14_INST01_PROFILE_HA && !PORT14_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 PORT14_INST01_BMODE_MASTER_ONLY if TIME_GM || TIME_FM
    default PORT14_INST01_BMODE_AUTO if TIME_BC
    config PORT14_INST01_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT14_INST01_BMODE_AUTO
        bool "Auto"
endchoice

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

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

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

config PORT14_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 PORT14_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 PORT14_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 PORT14_INST01_MIN_DELAY_REQ_INTERVAL
	depends on PORT14_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 PORT14_INST01_MIN_PDELAY_REQ_INTERVAL
	depends on PORT14_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 PORT15_CONSTANT_ASYMMETRY
	int "asymmetryCorrectionPortDS.constantAsymmetry"
	default 0
	   Used to set the constant delay asymmetry.

choice
	prompt "Number of port instances"
	default PORT15_INSTANCE_COUNT_1
	config PORT15_INSTANCE_COUNT_0
	config PORT15_INSTANCE_COUNT_1
	  bool "1"
endchoice

menu "Instance 1"
	depends on PORT15_INSTANCE_COUNT_1
choice
    prompt "Network protocol"
    default PORT15_INST01_PROTOCOL_RAW
    config PORT15_INST01_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT15_INST01_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT15_INST01_MECHANISM_E2E
    config PORT15_INST01_MECHANISM_E2E
        bool "End-to-end"
    config PORT15_INST01_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

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

choice
    prompt "Profile"
    default PORT15_INST01_PROFILE_WR
    config PORT15_INST01_PROFILE_PTP
    config PORT15_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 PORT15_INST01_DESIRADE_STATE_MASTER
    config PORT15_INST01_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT15_INST01_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT15_INST01_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT15_INST01_ASYMMETRY_CORRECTION_ENABLE
	depends on !PORT15_INST01_PROFILE_HA && !PORT15_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 PORT15_INST01_BMODE_MASTER_ONLY if TIME_GM || TIME_FM
    default PORT15_INST01_BMODE_AUTO if TIME_BC
    config PORT15_INST01_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT15_INST01_BMODE_AUTO
        bool "Auto"
endchoice

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

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

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

config PORT15_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 PORT15_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 PORT15_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 PORT15_INST01_MIN_DELAY_REQ_INTERVAL
	depends on PORT15_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 PORT15_INST01_MIN_PDELAY_REQ_INTERVAL
	depends on PORT15_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 PORT16_IFACE
	string "Network interface"
	default "wri16"
	  Used to set the physical port interface name: "wri[1-18]"
config PORT16_FIBER
	int  "Fiber type"
	default 0
	  Used to set the type of fiber (number referring to the corresponding 
	  FIBERXX_PARAMS)
config PORT16_CONSTANT_ASYMMETRY
	int "asymmetryCorrectionPortDS.constantAsymmetry"
	default 0
	   Used to set the constant delay asymmetry.
choice
	prompt "Number of port instances"
	default PORT16_INSTANCE_COUNT_1
	config PORT16_INSTANCE_COUNT_0
	  bool "0"
	config PORT16_INSTANCE_COUNT_1
	  bool "1"
endchoice
menu "Instance 1"
	depends on PORT16_INSTANCE_COUNT_1
choice
    prompt "Network protocol"
    default PORT16_INST01_PROTOCOL_RAW
    config PORT16_INST01_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT16_INST01_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT16_INST01_MECHANISM_E2E
    config PORT16_INST01_MECHANISM_E2E
        bool "End-to-end"
    config PORT16_INST01_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

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

choice
    prompt "Profile"
    default PORT16_INST01_PROFILE_WR
    config PORT16_INST01_PROFILE_PTP
    config PORT16_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 PORT16_INST01_DESIRADE_STATE_MASTER
    config PORT16_INST01_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT16_INST01_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT16_INST01_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT16_INST01_ASYMMETRY_CORRECTION_ENABLE
	depends on !PORT16_INST01_PROFILE_HA && !PORT16_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 PORT16_INST01_BMODE_MASTER_ONLY if TIME_GM || TIME_FM
    default PORT16_INST01_BMODE_AUTO if TIME_BC
    config PORT16_INST01_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT16_INST01_BMODE_AUTO
        bool "Auto"
endchoice

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

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

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

config PORT16_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 PORT16_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 PORT16_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 PORT16_INST01_MIN_DELAY_REQ_INTERVAL
	depends on PORT16_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 PORT16_INST01_MIN_PDELAY_REQ_INTERVAL
	depends on PORT16_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 PORT17_CONSTANT_ASYMMETRY
	int "asymmetryCorrectionPortDS.constantAsymmetry"
	default 0
	   Used to set the constant delay asymmetry.

choice
	prompt "Number of port instances"
	default PORT17_INSTANCE_COUNT_1
	config PORT17_INSTANCE_COUNT_0
	config PORT17_INSTANCE_COUNT_1
	  bool "1"
endchoice

menu "Instance 1"
	depends on PORT17_INSTANCE_COUNT_1
choice
    prompt "Network protocol"
    default PORT17_INST01_PROTOCOL_RAW
    config PORT17_INST01_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT17_INST01_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT17_INST01_MECHANISM_E2E
    config PORT17_INST01_MECHANISM_E2E
        bool "End-to-end"
    config PORT17_INST01_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

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

choice
    prompt "Profile"
    default PORT17_INST01_PROFILE_WR
    config PORT17_INST01_PROFILE_PTP
    config PORT17_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 PORT17_INST01_DESIRADE_STATE_MASTER
    config PORT17_INST01_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT17_INST01_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT17_INST01_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT17_INST01_ASYMMETRY_CORRECTION_ENABLE
	depends on !PORT17_INST01_PROFILE_HA && !PORT17_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 PORT17_INST01_BMODE_MASTER_ONLY if TIME_GM || TIME_FM
    default PORT17_INST01_BMODE_AUTO if TIME_BC
    config PORT17_INST01_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT17_INST01_BMODE_AUTO
        bool "Auto"
endchoice

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

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

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

config PORT17_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 PORT17_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 PORT17_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 PORT17_INST01_MIN_DELAY_REQ_INTERVAL
	depends on PORT17_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 PORT17_INST01_MIN_PDELAY_REQ_INTERVAL
	depends on PORT17_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 PORT18_IFACE
	string "Network interface"
	default "wri18"
	  Used to set the physical port interface name: "wri[1-18]"
config PORT18_FIBER
	int  "Fiber type"
	default 0
	  Used to set the type of fiber (number referring to the corresponding 
	  FIBERXX_PARAMS)
config PORT18_CONSTANT_ASYMMETRY
	int "asymmetryCorrectionPortDS.constantAsymmetry"
	default 0
	   Used to set the constant delay asymmetry.
choice
	prompt "Number of port instances"
	default PORT18_INSTANCE_COUNT_1
	config PORT18_INSTANCE_COUNT_0
	  bool "0"
	config PORT18_INSTANCE_COUNT_1
	  bool "1"
endchoice
menu "Instance 1"
	depends on PORT18_INSTANCE_COUNT_1
choice
    prompt "Network protocol"
    default PORT18_INST01_PROTOCOL_RAW
    config PORT18_INST01_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT18_INST01_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT18_INST01_MECHANISM_E2E
    config PORT18_INST01_MECHANISM_E2E
        bool "End-to-end"
    config PORT18_INST01_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

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

choice
    prompt "Profile"
    default PORT18_INST01_PROFILE_WR
    config PORT18_INST01_PROFILE_PTP
    config PORT18_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 PORT18_INST01_DESIRADE_STATE_MASTER
    config PORT18_INST01_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT18_INST01_DESIRADE_STATE_SLAVE