OpenNSL API Guide and Reference Manual
Data Structures | Macros | Typedefs
port_ability.h File Reference

Go to the source code of this file.

Data Structures

struct  _shr_port_ability_s
 

Macros

#define _SHR_PA_ABILITY_ALL   (0xffffffff)
 
#define _SHR_PA_ABILITY_NONE   (0)
 
#define _SHR_PA_AUTONEG   (1 << 0) /* Auto-negotiation */
 
#define _SHR_PA_CHANNEL_LONG   (1 << 0) /* Channel is long */
 
#define _SHR_PA_CHANNEL_SHORT   (1 << 1) /* Channel is short */
 
#define _SHR_PA_COMBO
 
#define _SHR_PA_EEE_100MB_BASETX   (1 << 0) /* EEE for 100M-BaseTX */
 
#define _SHR_PA_EEE_10GB_BASET   (1 << 2) /* EEE for 10G-BaseT */
 
#define _SHR_PA_EEE_10GB_KR   (1 << 5) /* EEE for 10G-KR */
 
#define _SHR_PA_EEE_10GB_KX   (1 << 3) /* EEE for 10G-KX */
 
#define _SHR_PA_EEE_10GB_KX4   (1 << 4) /* EEE for 10G-KX4 */
 
#define _SHR_PA_EEE_1GB_BASET   (1 << 1) /* EEE for 1G-BaseT */
 
#define _SHR_PA_FEC_CL74   (1 << 1) /* FEC CL74 ability request */
 
#define _SHR_PA_FEC_CL91   (1 << 2) /* FEC Cl91 ability request */
 
#define _SHR_PA_FEC_NONE   (1 << 0) /* FEC is not requested */
 
#define _SHR_PA_INTF_CGMII   (1 << 7) /* CGMII mode supported */
 
#define _SHR_PA_INTF_GMII   (1 << 2) /* GMII mode supported */
 
#define _SHR_PA_INTF_MII   (1 << 1) /* MII mode supported */
 
#define _SHR_PA_INTF_QSGMII   (1 << 6) /* QSGMII mode supported */
 
#define _SHR_PA_INTF_RGMII   (1 << 3) /* RGMII mode supported */
 
#define _SHR_PA_INTF_SGMII   (1 << 4) /* SGMII mode supported */
 
#define _SHR_PA_INTF_TBI   (1 << 0) /* TBI mode supported */
 
#define _SHR_PA_INTF_XGMII   (1 << 5) /* XGMII mode supported */
 
#define _SHR_PA_LB_LINE   (1 << 3) /* PHY lineside loopback */
 
#define _SHR_PA_LB_MAC   (1 << 1) /* MAC loopback supported */
 
#define _SHR_PA_LB_NONE   (1 << 0) /* Useful for automated test */
 
#define _SHR_PA_LB_PHY   (1 << 2) /* PHY loopback supported */
 
#define _SHR_PA_MEDIUM_BACKPLANE   (1 << 2)
 
#define _SHR_PA_MEDIUM_COPPER   (1 << 0)
 
#define _SHR_PA_MEDIUM_FIBER   (1 << 1)
 
#define _SHR_PA_PAUSE   (_SHR_PA_PAUSE_TX | _SHR_PA_PAUSE_RX)
 
#define _SHR_PA_PAUSE_ASYMM   (1 << 2) /* Asymm pause capable (R/O) */
 
#define _SHR_PA_PAUSE_RX   (1 << 1) /* RX pause capable */
 
#define _SHR_PA_PAUSE_TX   (1 << 0) /* TX pause capable */
 
#define _SHR_PA_SPEED(s)
 
#define _SHR_PA_SPEED_1000MB   (1 << 6)
 
#define _SHR_PA_SPEED_100GB   (1 << 26)
 
#define _SHR_PA_SPEED_100MB   (1 << 5)
 
#define _SHR_PA_SPEED_106GB   (1 << 29)
 
#define _SHR_PA_SPEED_10GB   (1 << 11)
 
#define _SHR_PA_SPEED_10MB   (1 << 0)
 
#define _SHR_PA_SPEED_11GB   (1 << 12)
 
#define _SHR_PA_SPEED_120GB   (1 << 27)
 
#define _SHR_PA_SPEED_127GB   (1 << 28)
 
#define _SHR_PA_SPEED_12GB   (1 << 13)
 
#define _SHR_PA_SPEED_12P5GB   (1 << 14)
 
#define _SHR_PA_SPEED_13GB   (1 << 15)
 
#define _SHR_PA_SPEED_15GB   (1 << 16)
 
#define _SHR_PA_SPEED_16GB   (1 << 17)
 
#define _SHR_PA_SPEED_20GB   (1 << 18)
 
#define _SHR_PA_SPEED_21GB   (1 << 19)
 
#define _SHR_PA_SPEED_23GB   (1 << 20)
 
#define _SHR_PA_SPEED_24GB   (1 << 21)
 
#define _SHR_PA_SPEED_2500MB   (1 << 7)
 
#define _SHR_PA_SPEED_25GB   (1 << 22)
 
#define _SHR_PA_SPEED_27GB   (1 << 2)
 
#define _SHR_PA_SPEED_3000MB   (1 << 8)
 
#define _SHR_PA_SPEED_30GB   (1 << 23)
 
#define _SHR_PA_SPEED_32GB   (1 << 31)
 
#define _SHR_PA_SPEED_40GB   (1 << 24)
 
#define _SHR_PA_SPEED_42GB   (1 << 25)
 
#define _SHR_PA_SPEED_48GB   (1 << 30)
 
#define _SHR_PA_SPEED_5000MB   (1 << 9)
 
#define _SHR_PA_SPEED_50GB   (1 << 3)
 
#define _SHR_PA_SPEED_53GB   (1 << 4)
 
#define _SHR_PA_SPEED_6000MB   (1 << 10)
 
#define _SHR_PA_SPEED_ALL
 
#define _SHR_PA_SPEED_EXTENDED   (1 << 1)
 
#define _SHR_PA_SPEED_MAX(m)
 

Typedefs

typedef unsigned int _shr_pa_encap_t
 
typedef struct _shr_port_ability_s _shr_port_ability_t
 

Macro Definition Documentation

#define _SHR_PA_ABILITY_ALL   (0xffffffff)

Definition at line 46 of file port_ability.h.

#define _SHR_PA_ABILITY_NONE   (0)

Definition at line 47 of file port_ability.h.

#define _SHR_PA_AUTONEG   (1 << 0) /* Auto-negotiation */

Definition at line 161 of file port_ability.h.

#define _SHR_PA_CHANNEL_LONG   (1 << 0) /* Channel is long */

Definition at line 131 of file port_ability.h.

#define _SHR_PA_CHANNEL_SHORT   (1 << 1) /* Channel is short */

Definition at line 132 of file port_ability.h.

#define _SHR_PA_COMBO
Value:
(1 << 1) /* COMBO ports support both
* copper and fiber interfaces */

Definition at line 162 of file port_ability.h.

#define _SHR_PA_EEE_100MB_BASETX   (1 << 0) /* EEE for 100M-BaseTX */

Definition at line 267 of file port_ability.h.

#define _SHR_PA_EEE_10GB_BASET   (1 << 2) /* EEE for 10G-BaseT */

Definition at line 269 of file port_ability.h.

#define _SHR_PA_EEE_10GB_KR   (1 << 5) /* EEE for 10G-KR */

Definition at line 272 of file port_ability.h.

#define _SHR_PA_EEE_10GB_KX   (1 << 3) /* EEE for 10G-KX */

Definition at line 270 of file port_ability.h.

#define _SHR_PA_EEE_10GB_KX4   (1 << 4) /* EEE for 10G-KX4 */

Definition at line 271 of file port_ability.h.

#define _SHR_PA_EEE_1GB_BASET   (1 << 1) /* EEE for 1G-BaseT */

Definition at line 268 of file port_ability.h.

#define _SHR_PA_FEC_CL74   (1 << 1) /* FEC CL74 ability request */

Definition at line 106 of file port_ability.h.

#define _SHR_PA_FEC_CL91   (1 << 2) /* FEC Cl91 ability request */

Definition at line 107 of file port_ability.h.

#define _SHR_PA_FEC_NONE   (1 << 0) /* FEC is not requested */

Definition at line 105 of file port_ability.h.

#define _SHR_PA_INTF_CGMII   (1 << 7) /* CGMII mode supported */

Definition at line 122 of file port_ability.h.

#define _SHR_PA_INTF_GMII   (1 << 2) /* GMII mode supported */

Definition at line 117 of file port_ability.h.

#define _SHR_PA_INTF_MII   (1 << 1) /* MII mode supported */

Definition at line 116 of file port_ability.h.

#define _SHR_PA_INTF_QSGMII   (1 << 6) /* QSGMII mode supported */

Definition at line 121 of file port_ability.h.

#define _SHR_PA_INTF_RGMII   (1 << 3) /* RGMII mode supported */

Definition at line 118 of file port_ability.h.

#define _SHR_PA_INTF_SGMII   (1 << 4) /* SGMII mode supported */

Definition at line 119 of file port_ability.h.

#define _SHR_PA_INTF_TBI   (1 << 0) /* TBI mode supported */

Definition at line 115 of file port_ability.h.

#define _SHR_PA_INTF_XGMII   (1 << 5) /* XGMII mode supported */

Definition at line 120 of file port_ability.h.

#define _SHR_PA_LB_LINE   (1 << 3) /* PHY lineside loopback */

Definition at line 153 of file port_ability.h.

#define _SHR_PA_LB_MAC   (1 << 1) /* MAC loopback supported */

Definition at line 151 of file port_ability.h.

#define _SHR_PA_LB_NONE   (1 << 0) /* Useful for automated test */

Definition at line 150 of file port_ability.h.

#define _SHR_PA_LB_PHY   (1 << 2) /* PHY loopback supported */

Definition at line 152 of file port_ability.h.

#define _SHR_PA_MEDIUM_BACKPLANE   (1 << 2)

Definition at line 142 of file port_ability.h.

#define _SHR_PA_MEDIUM_COPPER   (1 << 0)

Definition at line 140 of file port_ability.h.

#define _SHR_PA_MEDIUM_FIBER   (1 << 1)

Definition at line 141 of file port_ability.h.

#define _SHR_PA_PAUSE   (_SHR_PA_PAUSE_TX | _SHR_PA_PAUSE_RX)

Definition at line 163 of file port_ability.h.

#define _SHR_PA_PAUSE_ASYMM   (1 << 2) /* Asymm pause capable (R/O) */

Definition at line 96 of file port_ability.h.

#define _SHR_PA_PAUSE_RX   (1 << 1) /* RX pause capable */

Definition at line 95 of file port_ability.h.

#define _SHR_PA_PAUSE_TX   (1 << 0) /* TX pause capable */

Definition at line 94 of file port_ability.h.

#define _SHR_PA_SPEED (   s)
Value:
((127000 == (s)) ? _SHR_PA_SPEED_127GB : \
(120000 == (s)) ? _SHR_PA_SPEED_120GB : \
(106000 == (s)) ? _SHR_PA_SPEED_106GB : \
(100000 == (s)) ? _SHR_PA_SPEED_100GB : \
(53000 == (s)) ? _SHR_PA_SPEED_53GB : \
(50000 == (s)) ? _SHR_PA_SPEED_50GB : \
(42000 == (s)) ? _SHR_PA_SPEED_42GB : \
(40000 == (s)) ? _SHR_PA_SPEED_40GB : \
(32000 == (s)) ? _SHR_PA_SPEED_32GB : \
(30000 == (s)) ? _SHR_PA_SPEED_30GB : \
(27000 == (s)) ? _SHR_PA_SPEED_27GB : \
(25000 == (s)) ? _SHR_PA_SPEED_25GB : \
(24000 == (s)) ? _SHR_PA_SPEED_24GB : \
(23000 == (s)) ? _SHR_PA_SPEED_23GB : \
(21000 == (s)) ? _SHR_PA_SPEED_21GB : \
(20000 == (s)) ? _SHR_PA_SPEED_20GB : \
(16000 == (s)) ? _SHR_PA_SPEED_16GB : \
(15000 == (s)) ? _SHR_PA_SPEED_15GB : \
(13000 == (s)) ? _SHR_PA_SPEED_13GB : \
(12500 == (s)) ? _SHR_PA_SPEED_12P5GB : \
(12000 == (s)) ? _SHR_PA_SPEED_12GB : \
(11000 == (s)) ? _SHR_PA_SPEED_11GB : \
(10000 == (s)) ? _SHR_PA_SPEED_10GB : \
(6000 == (s)) ? _SHR_PA_SPEED_6000MB : \
(5000 == (s)) ? _SHR_PA_SPEED_5000MB : \
(3000 == (s)) ? _SHR_PA_SPEED_3000MB : \
(2500 == (s)) ? _SHR_PA_SPEED_2500MB : \
(1000 == (s)) ? _SHR_PA_SPEED_1000MB : \
(100 == (s)) ? _SHR_PA_SPEED_100MB : \
(10 == (s)) ? _SHR_PA_SPEED_10MB : 0)

Definition at line 229 of file port_ability.h.

#define _SHR_PA_SPEED_1000MB   (1 << 6)

Definition at line 61 of file port_ability.h.

#define _SHR_PA_SPEED_100GB   (1 << 26)

Definition at line 81 of file port_ability.h.

#define _SHR_PA_SPEED_100MB   (1 << 5)

Definition at line 60 of file port_ability.h.

#define _SHR_PA_SPEED_106GB   (1 << 29)

Definition at line 84 of file port_ability.h.

#define _SHR_PA_SPEED_10GB   (1 << 11)

Definition at line 66 of file port_ability.h.

#define _SHR_PA_SPEED_10MB   (1 << 0)

Definition at line 55 of file port_ability.h.

#define _SHR_PA_SPEED_11GB   (1 << 12)

Definition at line 67 of file port_ability.h.

#define _SHR_PA_SPEED_120GB   (1 << 27)

Definition at line 82 of file port_ability.h.

#define _SHR_PA_SPEED_127GB   (1 << 28)

Definition at line 83 of file port_ability.h.

#define _SHR_PA_SPEED_12GB   (1 << 13)

Definition at line 68 of file port_ability.h.

#define _SHR_PA_SPEED_12P5GB   (1 << 14)

Definition at line 69 of file port_ability.h.

#define _SHR_PA_SPEED_13GB   (1 << 15)

Definition at line 70 of file port_ability.h.

#define _SHR_PA_SPEED_15GB   (1 << 16)

Definition at line 71 of file port_ability.h.

#define _SHR_PA_SPEED_16GB   (1 << 17)

Definition at line 72 of file port_ability.h.

#define _SHR_PA_SPEED_20GB   (1 << 18)

Definition at line 73 of file port_ability.h.

#define _SHR_PA_SPEED_21GB   (1 << 19)

Definition at line 74 of file port_ability.h.

#define _SHR_PA_SPEED_23GB   (1 << 20)

Definition at line 75 of file port_ability.h.

#define _SHR_PA_SPEED_24GB   (1 << 21)

Definition at line 76 of file port_ability.h.

#define _SHR_PA_SPEED_2500MB   (1 << 7)

Definition at line 62 of file port_ability.h.

#define _SHR_PA_SPEED_25GB   (1 << 22)

Definition at line 77 of file port_ability.h.

#define _SHR_PA_SPEED_27GB   (1 << 2)

Definition at line 57 of file port_ability.h.

#define _SHR_PA_SPEED_3000MB   (1 << 8)

Definition at line 63 of file port_ability.h.

#define _SHR_PA_SPEED_30GB   (1 << 23)

Definition at line 78 of file port_ability.h.

#define _SHR_PA_SPEED_32GB   (1 << 31)

Definition at line 86 of file port_ability.h.

#define _SHR_PA_SPEED_40GB   (1 << 24)

Definition at line 79 of file port_ability.h.

#define _SHR_PA_SPEED_42GB   (1 << 25)

Definition at line 80 of file port_ability.h.

#define _SHR_PA_SPEED_48GB   (1 << 30)

Definition at line 85 of file port_ability.h.

#define _SHR_PA_SPEED_5000MB   (1 << 9)

Definition at line 64 of file port_ability.h.

#define _SHR_PA_SPEED_50GB   (1 << 3)

Definition at line 58 of file port_ability.h.

#define _SHR_PA_SPEED_53GB   (1 << 4)

Definition at line 59 of file port_ability.h.

#define _SHR_PA_SPEED_6000MB   (1 << 10)

Definition at line 65 of file port_ability.h.

#define _SHR_PA_SPEED_ALL
Value:
_SHR_PA_SPEED_120GB | \
_SHR_PA_SPEED_106GB | \
_SHR_PA_SPEED_100GB | \
_SHR_PA_SPEED_53GB | \
_SHR_PA_SPEED_50GB | \
_SHR_PA_SPEED_42GB | \
_SHR_PA_SPEED_40GB | \
_SHR_PA_SPEED_32GB | \
_SHR_PA_SPEED_30GB | \
_SHR_PA_SPEED_27GB | \
_SHR_PA_SPEED_25GB | \
_SHR_PA_SPEED_24GB | \
_SHR_PA_SPEED_23GB | \
_SHR_PA_SPEED_21GB | \
_SHR_PA_SPEED_20GB | \
_SHR_PA_SPEED_16GB | \
_SHR_PA_SPEED_15GB | \
_SHR_PA_SPEED_13GB | \
_SHR_PA_SPEED_12P5GB | \
_SHR_PA_SPEED_12GB | \
_SHR_PA_SPEED_11GB | \
_SHR_PA_SPEED_10GB | \
_SHR_PA_SPEED_6000MB | \
_SHR_PA_SPEED_5000MB | \
_SHR_PA_SPEED_3000MB | \
_SHR_PA_SPEED_2500MB | \
_SHR_PA_SPEED_1000MB | \
_SHR_PA_SPEED_100MB | \
_SHR_PA_SPEED_10MB)

Definition at line 165 of file port_ability.h.

#define _SHR_PA_SPEED_EXTENDED   (1 << 1)

Definition at line 56 of file port_ability.h.

#define _SHR_PA_SPEED_MAX (   m)
Value:
(((m) & _SHR_PA_SPEED_127GB) ? 127000 : \
((m) & _SHR_PA_SPEED_120GB) ? 120000 : \
((m) & _SHR_PA_SPEED_106GB) ? 106000 : \
((m) & _SHR_PA_SPEED_100GB) ? 100000 : \
((m) & _SHR_PA_SPEED_53GB) ? 53000 : \
((m) & _SHR_PA_SPEED_50GB) ? 50000 : \
((m) & _SHR_PA_SPEED_42GB) ? 42000 : \
((m) & _SHR_PA_SPEED_40GB) ? 40000 : \
((m) & _SHR_PA_SPEED_32GB) ? 32000 : \
((m) & _SHR_PA_SPEED_30GB) ? 30000 : \
((m) & _SHR_PA_SPEED_27GB) ? 27000 : \
((m) & _SHR_PA_SPEED_25GB) ? 25000 : \
((m) & _SHR_PA_SPEED_24GB) ? 24000 : \
((m) & _SHR_PA_SPEED_23GB) ? 23000 : \
((m) & _SHR_PA_SPEED_21GB) ? 21000 : \
((m) & _SHR_PA_SPEED_20GB) ? 20000 : \
((m) & _SHR_PA_SPEED_16GB) ? 16000 : \
((m) & _SHR_PA_SPEED_15GB) ? 15000 : \
((m) & _SHR_PA_SPEED_13GB) ? 13000 : \
((m) & _SHR_PA_SPEED_12P5GB) ? 12500 : \
((m) & _SHR_PA_SPEED_12GB) ? 12000 : \
((m) & _SHR_PA_SPEED_11GB) ? 11000 : \
((m) & _SHR_PA_SPEED_10GB) ? 10000 : \
((m) & _SHR_PA_SPEED_6000MB) ? 6000 : \
((m) & _SHR_PA_SPEED_5000MB) ? 5000 : \
((m) & _SHR_PA_SPEED_3000MB) ? 3000 : \
((m) & _SHR_PA_SPEED_2500MB) ? 2500 : \
((m) & _SHR_PA_SPEED_1000MB) ? 1000 : \
((m) & _SHR_PA_SPEED_100MB) ? 100 : \
((m) & _SHR_PA_SPEED_10MB) ? 10 : 0)

Definition at line 197 of file port_ability.h.

Typedef Documentation

typedef unsigned int _shr_pa_encap_t

Definition at line 28 of file port_ability.h.