Go to the documentation of this file.
15 #define FW_ENCODE_32BIT_PATTERN 0x1e1e1e1e
21 #define BNX2X_MAX_ISCSI_TRGT_CONN_MASK 0xFFFF
22 #define BNX2X_MAX_ISCSI_TRGT_CONN_SHIFT 0
23 #define BNX2X_MAX_ISCSI_INIT_CONN_MASK 0xFFFF0000
24 #define BNX2X_MAX_ISCSI_INIT_CONN_SHIFT 16
29 #define BNX2X_MAX_FCOE_TRGT_CONN_MASK 0xFFFF
30 #define BNX2X_MAX_FCOE_TRGT_CONN_SHIFT 0
31 #define BNX2X_MAX_FCOE_INIT_CONN_MASK 0xFFFF0000
32 #define BNX2X_MAX_FCOE_INIT_CONN_SHIFT 16
40 #define PIN_CFG_NA 0x00000000
41 #define PIN_CFG_GPIO0_P0 0x00000001
42 #define PIN_CFG_GPIO1_P0 0x00000002
43 #define PIN_CFG_GPIO2_P0 0x00000003
44 #define PIN_CFG_GPIO3_P0 0x00000004
45 #define PIN_CFG_GPIO0_P1 0x00000005
46 #define PIN_CFG_GPIO1_P1 0x00000006
47 #define PIN_CFG_GPIO2_P1 0x00000007
48 #define PIN_CFG_GPIO3_P1 0x00000008
49 #define PIN_CFG_EPIO0 0x00000009
50 #define PIN_CFG_EPIO1 0x0000000a
51 #define PIN_CFG_EPIO2 0x0000000b
52 #define PIN_CFG_EPIO3 0x0000000c
53 #define PIN_CFG_EPIO4 0x0000000d
54 #define PIN_CFG_EPIO5 0x0000000e
55 #define PIN_CFG_EPIO6 0x0000000f
56 #define PIN_CFG_EPIO7 0x00000010
57 #define PIN_CFG_EPIO8 0x00000011
58 #define PIN_CFG_EPIO9 0x00000012
59 #define PIN_CFG_EPIO10 0x00000013
60 #define PIN_CFG_EPIO11 0x00000014
61 #define PIN_CFG_EPIO12 0x00000015
62 #define PIN_CFG_EPIO13 0x00000016
63 #define PIN_CFG_EPIO14 0x00000017
64 #define PIN_CFG_EPIO15 0x00000018
65 #define PIN_CFG_EPIO16 0x00000019
66 #define PIN_CFG_EPIO17 0x0000001a
67 #define PIN_CFG_EPIO18 0x0000001b
68 #define PIN_CFG_EPIO19 0x0000001c
69 #define PIN_CFG_EPIO20 0x0000001d
70 #define PIN_CFG_EPIO21 0x0000001e
71 #define PIN_CFG_EPIO22 0x0000001f
72 #define PIN_CFG_EPIO23 0x00000020
73 #define PIN_CFG_EPIO24 0x00000021
74 #define PIN_CFG_EPIO25 0x00000022
75 #define PIN_CFG_EPIO26 0x00000023
76 #define PIN_CFG_EPIO27 0x00000024
77 #define PIN_CFG_EPIO28 0x00000025
78 #define PIN_CFG_EPIO29 0x00000026
79 #define PIN_CFG_EPIO30 0x00000027
80 #define PIN_CFG_EPIO31 0x00000028
83 #define EPIO_CFG_NA 0x00000000
84 #define EPIO_CFG_EPIO0 0x00000001
85 #define EPIO_CFG_EPIO1 0x00000002
86 #define EPIO_CFG_EPIO2 0x00000003
87 #define EPIO_CFG_EPIO3 0x00000004
88 #define EPIO_CFG_EPIO4 0x00000005
89 #define EPIO_CFG_EPIO5 0x00000006
90 #define EPIO_CFG_EPIO6 0x00000007
91 #define EPIO_CFG_EPIO7 0x00000008
92 #define EPIO_CFG_EPIO8 0x00000009
93 #define EPIO_CFG_EPIO9 0x0000000a
94 #define EPIO_CFG_EPIO10 0x0000000b
95 #define EPIO_CFG_EPIO11 0x0000000c
96 #define EPIO_CFG_EPIO12 0x0000000d
97 #define EPIO_CFG_EPIO13 0x0000000e
98 #define EPIO_CFG_EPIO14 0x0000000f
99 #define EPIO_CFG_EPIO15 0x00000010
100 #define EPIO_CFG_EPIO16 0x00000011
101 #define EPIO_CFG_EPIO17 0x00000012
102 #define EPIO_CFG_EPIO18 0x00000013
103 #define EPIO_CFG_EPIO19 0x00000014
104 #define EPIO_CFG_EPIO20 0x00000015
105 #define EPIO_CFG_EPIO21 0x00000016
106 #define EPIO_CFG_EPIO22 0x00000017
107 #define EPIO_CFG_EPIO23 0x00000018
108 #define EPIO_CFG_EPIO24 0x00000019
109 #define EPIO_CFG_EPIO25 0x0000001a
110 #define EPIO_CFG_EPIO26 0x0000001b
111 #define EPIO_CFG_EPIO27 0x0000001c
112 #define EPIO_CFG_EPIO28 0x0000001d
113 #define EPIO_CFG_EPIO29 0x0000001e
114 #define EPIO_CFG_EPIO30 0x0000001f
115 #define EPIO_CFG_EPIO31 0x00000020
123 #define SHARED_HW_CFG_MDIO_VOLTAGE_MASK 0x00000001
124 #define SHARED_HW_CFG_MDIO_VOLTAGE_SHIFT 0
125 #define SHARED_HW_CFG_MDIO_VOLTAGE_1_2V 0x00000000
126 #define SHARED_HW_CFG_MDIO_VOLTAGE_2_5V 0x00000001
127 #define SHARED_HW_CFG_MCP_RST_ON_CORE_RST_EN 0x00000002
129 #define SHARED_HW_CFG_PORT_SWAP 0x00000004
131 #define SHARED_HW_CFG_BEACON_WOL_EN 0x00000008
133 #define SHARED_HW_CFG_PCIE_GEN3_DISABLED 0x00000000
134 #define SHARED_HW_CFG_PCIE_GEN3_ENABLED 0x00000010
136 #define SHARED_HW_CFG_MFW_SELECT_MASK 0x00000700
137 #define SHARED_HW_CFG_MFW_SELECT_SHIFT 8
140 #define SHARED_HW_CFG_MFW_SELECT_DEFAULT 0x00000000
141 #define SHARED_HW_CFG_MFW_SELECT_NC_SI 0x00000100
142 #define SHARED_HW_CFG_MFW_SELECT_UMP 0x00000200
143 #define SHARED_HW_CFG_MFW_SELECT_IPMI 0x00000300
146 #define SHARED_HW_CFG_MFW_SELECT_SPIO4_NC_SI_IPMI 0x00000400
149 #define SHARED_HW_CFG_MFW_SELECT_SPIO4_UMP_IPMI 0x00000500
152 #define SHARED_HW_CFG_MFW_SELECT_SPIO4_NC_SI_UMP 0x00000600
154 #define SHARED_HW_CFG_LED_MODE_MASK 0x000f0000
155 #define SHARED_HW_CFG_LED_MODE_SHIFT 16
156 #define SHARED_HW_CFG_LED_MAC1 0x00000000
157 #define SHARED_HW_CFG_LED_PHY1 0x00010000
158 #define SHARED_HW_CFG_LED_PHY2 0x00020000
159 #define SHARED_HW_CFG_LED_PHY3 0x00030000
160 #define SHARED_HW_CFG_LED_MAC2 0x00040000
161 #define SHARED_HW_CFG_LED_PHY4 0x00050000
162 #define SHARED_HW_CFG_LED_PHY5 0x00060000
163 #define SHARED_HW_CFG_LED_PHY6 0x00070000
164 #define SHARED_HW_CFG_LED_MAC3 0x00080000
165 #define SHARED_HW_CFG_LED_PHY7 0x00090000
166 #define SHARED_HW_CFG_LED_PHY9 0x000a0000
167 #define SHARED_HW_CFG_LED_PHY11 0x000b0000
168 #define SHARED_HW_CFG_LED_MAC4 0x000c0000
169 #define SHARED_HW_CFG_LED_PHY8 0x000d0000
170 #define SHARED_HW_CFG_LED_EXTPHY1 0x000e0000
173 #define SHARED_HW_CFG_AN_ENABLE_MASK 0x3f000000
174 #define SHARED_HW_CFG_AN_ENABLE_SHIFT 24
175 #define SHARED_HW_CFG_AN_ENABLE_CL37 0x01000000
176 #define SHARED_HW_CFG_AN_ENABLE_CL73 0x02000000
177 #define SHARED_HW_CFG_AN_ENABLE_BAM 0x04000000
178 #define SHARED_HW_CFG_AN_ENABLE_PARALLEL_DETECTION 0x08000000
179 #define SHARED_HW_CFG_AN_EN_SGMII_FIBER_AUTO_DETECT 0x10000000
180 #define SHARED_HW_CFG_AN_ENABLE_REMOTE_PHY 0x20000000
182 #define SHARED_HW_CFG_SRIOV_MASK 0x40000000
183 #define SHARED_HW_CFG_SRIOV_DISABLED 0x00000000
184 #define SHARED_HW_CFG_SRIOV_ENABLED 0x40000000
186 #define SHARED_HW_CFG_ATC_MASK 0x80000000
187 #define SHARED_HW_CFG_ATC_DISABLED 0x00000000
188 #define SHARED_HW_CFG_ATC_ENABLED 0x80000000
192 #define SHARED_HW_CFG_GRACE_PERIOD_MASK 0x000000ff
193 #define SHARED_HW_CFG_GRACE_PERIOD_SHIFT 0
195 #define SHARED_HW_CFG_PCIE_GEN2_ENABLED 0x00000100
196 #define SHARED_HW_CFG_PCIE_GEN2_DISABLED 0x00000000
200 #define SHARED_HW_CFG_CLOCK_CHANGE_MASK 0x00000e00
201 #define SHARED_HW_CFG_CLOCK_CHANGE_SHIFT 9
203 #define SHARED_HW_CFG_SMBUS_TIMING_MASK 0x00001000
204 #define SHARED_HW_CFG_SMBUS_TIMING_100KHZ 0x00000000
205 #define SHARED_HW_CFG_SMBUS_TIMING_400KHZ 0x00001000
207 #define SHARED_HW_CFG_HIDE_PORT1 0x00002000
209 #define SHARED_HW_CFG_WOL_CAPABLE_MASK 0x00004000
210 #define SHARED_HW_CFG_WOL_CAPABLE_DISABLED 0x00000000
211 #define SHARED_HW_CFG_WOL_CAPABLE_ENABLED 0x00004000
214 #define SHARED_HW_CFG_SPIO4_FOLLOW_PERST_MASK 0x00008000
215 #define SHARED_HW_CFG_SPIO4_FOLLOW_PERST_DISABLED 0x00000000
216 #define SHARED_HW_CFG_SPIO4_FOLLOW_PERST_ENABLED 0x00008000
218 #define SHARED_HW_CFG_PCIE_GEN2_PREEMPHASIS_MASK 0x00070000
219 #define SHARED_HW_CFG_PCIE_GEN2_PREEMPHASIS_SHIFT 16
220 #define SHARED_HW_CFG_PCIE_GEN2_PREEMPHASIS_HW 0x00000000
221 #define SHARED_HW_CFG_PCIE_GEN2_PREEMPHASIS_0DB 0x00010000
222 #define SHARED_HW_CFG_PCIE_GEN2_PREEMPHASIS_3_5DB 0x00020000
223 #define SHARED_HW_CFG_PCIE_GEN2_PREEMPHASIS_6_0DB 0x00030000
232 #define SHARED_HW_CFG_FAN_FAILURE_MASK 0x00180000
233 #define SHARED_HW_CFG_FAN_FAILURE_SHIFT 19
234 #define SHARED_HW_CFG_FAN_FAILURE_PHY_TYPE 0x00000000
235 #define SHARED_HW_CFG_FAN_FAILURE_DISABLED 0x00080000
236 #define SHARED_HW_CFG_FAN_FAILURE_ENABLED 0x00100000
239 #define SHARED_HW_CFG_ASPM_SUPPORT_MASK 0x00600000
240 #define SHARED_HW_CFG_ASPM_SUPPORT_SHIFT 21
241 #define SHARED_HW_CFG_ASPM_SUPPORT_L0S_L1_ENABLED 0x00000000
242 #define SHARED_HW_CFG_ASPM_SUPPORT_L0S_DISABLED 0x00200000
243 #define SHARED_HW_CFG_ASPM_SUPPORT_L1_DISABLED 0x00400000
244 #define SHARED_HW_CFG_ASPM_SUPPORT_L0S_L1_DISABLED 0x00600000
248 #define SHARED_HW_CFG_PREVENT_L1_ENTRY_MASK 0x00800000
249 #define SHARED_HW_CFG_PREVENT_L1_ENTRY_DISABLED 0x00000000
250 #define SHARED_HW_CFG_PREVENT_L1_ENTRY_ENABLED 0x00800000
252 #define SHARED_HW_CFG_PORT_MODE_MASK 0x01000000
253 #define SHARED_HW_CFG_PORT_MODE_2 0x00000000
254 #define SHARED_HW_CFG_PORT_MODE_4 0x01000000
256 #define SHARED_HW_CFG_PATH_SWAP_MASK 0x02000000
257 #define SHARED_HW_CFG_PATH_SWAP_DISABLED 0x00000000
258 #define SHARED_HW_CFG_PATH_SWAP_ENABLED 0x02000000
261 #define SHARED_HW_CFG_MDC_MDIO_ACCESS1_MASK 0x1C000000
262 #define SHARED_HW_CFG_MDC_MDIO_ACCESS1_SHIFT 26
263 #define SHARED_HW_CFG_MDC_MDIO_ACCESS1_PHY_TYPE 0x00000000
264 #define SHARED_HW_CFG_MDC_MDIO_ACCESS1_EMAC0 0x04000000
265 #define SHARED_HW_CFG_MDC_MDIO_ACCESS1_EMAC1 0x08000000
266 #define SHARED_HW_CFG_MDC_MDIO_ACCESS1_BOTH 0x0c000000
267 #define SHARED_HW_CFG_MDC_MDIO_ACCESS1_SWAPPED 0x10000000
270 #define SHARED_HW_CFG_MDC_MDIO_ACCESS2_MASK 0xE0000000
271 #define SHARED_HW_CFG_MDC_MDIO_ACCESS2_SHIFT 29
272 #define SHARED_HW_CFG_MDC_MDIO_ACCESS2_PHY_TYPE 0x00000000
273 #define SHARED_HW_CFG_MDC_MDIO_ACCESS2_EMAC0 0x20000000
274 #define SHARED_HW_CFG_MDC_MDIO_ACCESS2_EMAC1 0x40000000
275 #define SHARED_HW_CFG_MDC_MDIO_ACCESS2_BOTH 0x60000000
276 #define SHARED_HW_CFG_MDC_MDIO_ACCESS2_SWAPPED 0x80000000
280 #define SHARED_HW_CFG_POWER_MGNT_SCALE_MASK 0x00ff0000
281 #define SHARED_HW_CFG_POWER_MGNT_SCALE_SHIFT 16
282 #define SHARED_HW_CFG_POWER_MGNT_UNKNOWN_SCALE 0x00000000
283 #define SHARED_HW_CFG_POWER_MGNT_DOT_1_WATT 0x00010000
284 #define SHARED_HW_CFG_POWER_MGNT_DOT_01_WATT 0x00020000
285 #define SHARED_HW_CFG_POWER_MGNT_DOT_001_WATT 0x00030000
287 #define SHARED_HW_CFG_POWER_DIS_CMN_MASK 0xff000000
288 #define SHARED_HW_CFG_POWER_DIS_CMN_SHIFT 24
291 #define SHARED_HW_CFG_UMP_NC_SI_MII_MODE_MASK 0x00000003
292 #define SHARED_HW_CFG_UMP_NC_SI_MII_MODE_SHIFT 0
293 #define SHARED_HW_CFG_UMP_NC_SI_MII_MODE_MAC 0x00000000
294 #define SHARED_HW_CFG_UMP_NC_SI_MII_MODE_PHY 0x00000001
295 #define SHARED_HW_CFG_UMP_NC_SI_MII_MODE_MII 0x00000000
296 #define SHARED_HW_CFG_UMP_NC_SI_MII_MODE_RMII 0x00000002
298 #define SHARED_HW_CFG_UMP_NC_SI_NUM_DEVS_MASK 0x00000f00
299 #define SHARED_HW_CFG_UMP_NC_SI_NUM_DEVS_SHIFT 8
301 #define SHARED_HW_CFG_UMP_NC_SI_EXT_PHY_TYPE_MASK 0x00ff0000
302 #define SHARED_HW_CFG_UMP_NC_SI_EXT_PHY_TYPE_SHIFT 16
303 #define SHARED_HW_CFG_UMP_NC_SI_EXT_PHY_TYPE_NONE 0x00000000
304 #define SHARED_HW_CFG_UMP_NC_SI_EXT_PHY_TYPE_BCM5221 0x00010000
307 #define SHARED_HW_CFG_E3_I2C_MUX0_MASK 0x0000003F
308 #define SHARED_HW_CFG_E3_I2C_MUX0_SHIFT 0
309 #define SHARED_HW_CFG_E3_I2C_MUX1_MASK 0x00000FC0
310 #define SHARED_HW_CFG_E3_I2C_MUX1_SHIFT 6
312 #define SHARED_HW_CFG_BOARD_REV_MASK 0x00ff0000
313 #define SHARED_HW_CFG_BOARD_REV_SHIFT 16
315 #define SHARED_HW_CFG_BOARD_MAJOR_VER_MASK 0x0f000000
316 #define SHARED_HW_CFG_BOARD_MAJOR_VER_SHIFT 24
318 #define SHARED_HW_CFG_BOARD_MINOR_VER_MASK 0xf0000000
319 #define SHARED_HW_CFG_BOARD_MINOR_VER_SHIFT 28
322 #define SHARED_HW_CFG_LANE_SWAP_CFG_MASK 0x0000FFFF
323 #define SHARED_HW_CFG_LANE_SWAP_CFG_SHIFT 0
324 #define SHARED_HW_CFG_LANE_SWAP_CFG_32103210 0x00001b1b
325 #define SHARED_HW_CFG_LANE_SWAP_CFG_32100123 0x00001be4
326 #define SHARED_HW_CFG_LANE_SWAP_CFG_01233210 0x0000e41b
327 #define SHARED_HW_CFG_LANE_SWAP_CFG_01230123 0x0000e4e4
328 #define SHARED_HW_CFG_LANE_SWAP_CFG_TX_MASK 0x000000FF
329 #define SHARED_HW_CFG_LANE_SWAP_CFG_TX_SHIFT 0
330 #define SHARED_HW_CFG_LANE_SWAP_CFG_RX_MASK 0x0000FF00
331 #define SHARED_HW_CFG_LANE_SWAP_CFG_RX_SHIFT 8
334 #define SHARED_HW_CFG_TX_LANE0_POL_FLIP_ENABLED 0x00010000
335 #define SHARED_HW_CFG_TX_LANE1_POL_FLIP_ENABLED 0x00020000
336 #define SHARED_HW_CFG_TX_LANE2_POL_FLIP_ENABLED 0x00040000
337 #define SHARED_HW_CFG_TX_LANE3_POL_FLIP_ENABLED 0x00080000
339 #define SHARED_HW_CFG_RX_LANE0_POL_FLIP_ENABLED 0x00100000
340 #define SHARED_HW_CFG_RX_LANE1_POL_FLIP_ENABLED 0x00200000
341 #define SHARED_HW_CFG_RX_LANE2_POL_FLIP_ENABLED 0x00400000
342 #define SHARED_HW_CFG_RX_LANE3_POL_FLIP_ENABLED 0x00800000
345 #define SHARED_HW_CFG_E3_PORT_LAYOUT_MASK 0x0F000000
346 #define SHARED_HW_CFG_E3_PORT_LAYOUT_SHIFT 24
347 #define SHARED_HW_CFG_E3_PORT_LAYOUT_2P_01 0x00000000
348 #define SHARED_HW_CFG_E3_PORT_LAYOUT_2P_10 0x01000000
349 #define SHARED_HW_CFG_E3_PORT_LAYOUT_4P_0123 0x02000000
350 #define SHARED_HW_CFG_E3_PORT_LAYOUT_4P_1032 0x03000000
351 #define SHARED_HW_CFG_E3_PORT_LAYOUT_4P_2301 0x04000000
352 #define SHARED_HW_CFG_E3_PORT_LAYOUT_4P_3210 0x05000000
362 #define PORT_HW_CFG_PCI_VENDOR_ID_MASK 0xffff0000
363 #define PORT_HW_CFG_PCI_DEVICE_ID_MASK 0x0000ffff
366 #define PORT_HW_CFG_PCI_SUBSYS_DEVICE_ID_MASK 0xffff0000
367 #define PORT_HW_CFG_PCI_SUBSYS_VENDOR_ID_MASK 0x0000ffff
370 #define PORT_HW_CFG_POWER_DIS_D0_MASK 0x000000ff
371 #define PORT_HW_CFG_POWER_DIS_D0_SHIFT 0
372 #define PORT_HW_CFG_POWER_DIS_D1_MASK 0x0000ff00
373 #define PORT_HW_CFG_POWER_DIS_D1_SHIFT 8
374 #define PORT_HW_CFG_POWER_DIS_D2_MASK 0x00ff0000
375 #define PORT_HW_CFG_POWER_DIS_D2_SHIFT 16
376 #define PORT_HW_CFG_POWER_DIS_D3_MASK 0xff000000
377 #define PORT_HW_CFG_POWER_DIS_D3_SHIFT 24
380 #define PORT_HW_CFG_POWER_CONS_D0_MASK 0x000000ff
381 #define PORT_HW_CFG_POWER_CONS_D0_SHIFT 0
382 #define PORT_HW_CFG_POWER_CONS_D1_MASK 0x0000ff00
383 #define PORT_HW_CFG_POWER_CONS_D1_SHIFT 8
384 #define PORT_HW_CFG_POWER_CONS_D2_MASK 0x00ff0000
385 #define PORT_HW_CFG_POWER_CONS_D2_SHIFT 16
386 #define PORT_HW_CFG_POWER_CONS_D3_MASK 0xff000000
387 #define PORT_HW_CFG_POWER_CONS_D3_SHIFT 24
390 #define PORT_HW_CFG_UPPERMAC_MASK 0x0000ffff
391 #define PORT_HW_CFG_UPPERMAC_SHIFT 0
401 #define PORT_HW_CFG_SERDES_TX_DRV_PRE_EMPHASIS_MASK 0x0000ffff
402 #define PORT_HW_CFG_SERDES_TX_DRV_PRE_EMPHASIS_SHIFT 0
404 #define PORT_HW_CFG_SERDES_RX_DRV_EQUALIZER_MASK 0xffff0000
405 #define PORT_HW_CFG_SERDES_RX_DRV_EQUALIZER_SHIFT 16
410 #define PORT_HW_CFG_PF_NUM_VF_MASK 0x0000007F
411 #define PORT_HW_CFG_PF_NUM_VF_SHIFT 0
414 #define PORT_HW_CFG_PF_NUM_MSIX_VECTORS_MASK 0x00007F00
415 #define PORT_HW_CFG_PF_NUM_MSIX_VECTORS_SHIFT 8
417 #define PORT_HW_CFG_ENABLE_FLR_MASK 0x00010000
418 #define PORT_HW_CFG_FLR_ENABLED 0x00010000
421 #define PORT_HW_CFG_VF_NUM_MSIX_VECTORS_MASK 0x0000007F
422 #define PORT_HW_CFG_VF_NUM_MSIX_VECTORS_SHIFT 0
424 #define PORT_HW_CFG_VF_PCI_DEVICE_ID_MASK 0xFFFF0000
425 #define PORT_HW_CFG_VF_PCI_DEVICE_ID_SHIFT 16
428 #define PORT_HW_CFG_MF_PCI_DEVICE_ID_MASK 0x0000FFFF
429 #define PORT_HW_CFG_MF_PCI_DEVICE_ID_SHIFT 0
433 #define PORT_HW_CFG_TX_LASER_MASK 0x000000FF
434 #define PORT_HW_CFG_TX_LASER_SHIFT 0
435 #define PORT_HW_CFG_TX_LASER_MDIO 0x00000000
436 #define PORT_HW_CFG_TX_LASER_GPIO0 0x00000001
437 #define PORT_HW_CFG_TX_LASER_GPIO1 0x00000002
438 #define PORT_HW_CFG_TX_LASER_GPIO2 0x00000003
439 #define PORT_HW_CFG_TX_LASER_GPIO3 0x00000004
442 #define PORT_HW_CFG_FAULT_MODULE_LED_MASK 0x0000FF00
443 #define PORT_HW_CFG_FAULT_MODULE_LED_SHIFT 8
444 #define PORT_HW_CFG_FAULT_MODULE_LED_GPIO0 0x00000000
445 #define PORT_HW_CFG_FAULT_MODULE_LED_GPIO1 0x00000100
446 #define PORT_HW_CFG_FAULT_MODULE_LED_GPIO2 0x00000200
447 #define PORT_HW_CFG_FAULT_MODULE_LED_GPIO3 0x00000300
448 #define PORT_HW_CFG_FAULT_MODULE_LED_DISABLED 0x00000400
453 #define PORT_HW_CFG_E3_TX_LASER_MASK 0x000000FF
454 #define PORT_HW_CFG_E3_TX_LASER_SHIFT 0
457 #define PORT_HW_CFG_E3_FAULT_MDL_LED_MASK 0x0000FF00
458 #define PORT_HW_CFG_E3_FAULT_MDL_LED_SHIFT 8
462 #define PORT_HW_CFG_E3_MOD_ABS_MASK 0x00FF0000
463 #define PORT_HW_CFG_E3_MOD_ABS_SHIFT 16
467 #define PORT_HW_CFG_E3_PWR_DIS_MASK 0xFF000000
468 #define PORT_HW_CFG_E3_PWR_DIS_SHIFT 24
475 #define PORT_HW_CFG_E3_TX_FAULT_MASK 0x000000FF
476 #define PORT_HW_CFG_E3_TX_FAULT_SHIFT 0
480 #define PORT_HW_CFG_E3_PHY_RESET_MASK 0x0000FF00
481 #define PORT_HW_CFG_E3_PHY_RESET_SHIFT 8
487 #define PORT_HW_CFG_E3_PWR_DOWN_MASK 0x00FF0000
488 #define PORT_HW_CFG_E3_PWR_DOWN_SHIFT 16
492 #define PORT_HW_CFG_E3_I2C_MUX0_MASK 0x01000000
493 #define PORT_HW_CFG_E3_I2C_MUX1_MASK 0x02000000
501 #define PORT_HW_CFG_E3_OVER_CURRENT_MASK 0x000000FF
502 #define PORT_HW_CFG_E3_OVER_CURRENT_SHIFT 0
508 #define PORT_HW_CFG_MEDIA_TYPE_PHY0_MASK 0x000000FF
509 #define PORT_HW_CFG_MEDIA_TYPE_PHY0_SHIFT 0
511 #define PORT_HW_CFG_MEDIA_TYPE_PHY1_MASK 0x0000FF00
512 #define PORT_HW_CFG_MEDIA_TYPE_PHY1_SHIFT 8
514 #define PORT_HW_CFG_MEDIA_TYPE_PHY2_MASK 0x00FF0000
515 #define PORT_HW_CFG_MEDIA_TYPE_PHY2_SHIFT 16
527 #define PORT_HW_CFG_FCOE_UPPERMAC_MASK 0x0000ffff
528 #define PORT_HW_CFG_FCOE_UPPERMAC_SHIFT 0
542 #define PORT_HW_CFG_RJ45_PAIR_SWAP_MASK 0x000000FF
543 #define PORT_HW_CFG_RJ45_PAIR_SWAP_SHIFT 0
546 #define PORT_HW_CFG_GPIO0_CONFIG_MASK 0x00000003
547 #define PORT_HW_CFG_GPIO0_CONFIG_SHIFT 0
548 #define PORT_HW_CFG_GPIO0_CONFIG_NA 0x00000000
549 #define PORT_HW_CFG_GPIO0_CONFIG_LOW 0x00000001
550 #define PORT_HW_CFG_GPIO0_CONFIG_HIGH 0x00000002
551 #define PORT_HW_CFG_GPIO0_CONFIG_INPUT 0x00000003
553 #define PORT_HW_CFG_GPIO1_CONFIG_MASK 0x0000000C
554 #define PORT_HW_CFG_GPIO1_CONFIG_SHIFT 2
555 #define PORT_HW_CFG_GPIO1_CONFIG_NA 0x00000000
556 #define PORT_HW_CFG_GPIO1_CONFIG_LOW 0x00000004
557 #define PORT_HW_CFG_GPIO1_CONFIG_HIGH 0x00000008
558 #define PORT_HW_CFG_GPIO1_CONFIG_INPUT 0x0000000c
560 #define PORT_HW_CFG_GPIO2_CONFIG_MASK 0x00000030
561 #define PORT_HW_CFG_GPIO2_CONFIG_SHIFT 4
562 #define PORT_HW_CFG_GPIO2_CONFIG_NA 0x00000000
563 #define PORT_HW_CFG_GPIO2_CONFIG_LOW 0x00000010
564 #define PORT_HW_CFG_GPIO2_CONFIG_HIGH 0x00000020
565 #define PORT_HW_CFG_GPIO2_CONFIG_INPUT 0x00000030
567 #define PORT_HW_CFG_GPIO3_CONFIG_MASK 0x000000C0
568 #define PORT_HW_CFG_GPIO3_CONFIG_SHIFT 6
569 #define PORT_HW_CFG_GPIO3_CONFIG_NA 0x00000000
570 #define PORT_HW_CFG_GPIO3_CONFIG_LOW 0x00000040
571 #define PORT_HW_CFG_GPIO3_CONFIG_HIGH 0x00000080
572 #define PORT_HW_CFG_GPIO3_CONFIG_INPUT 0x000000c0
580 #define PORT_HW_CFG_FORCE_KR_ENABLER_MASK 0x00000F00
581 #define PORT_HW_CFG_FORCE_KR_ENABLER_SHIFT 8
582 #define PORT_HW_CFG_FORCE_KR_ENABLER_NOT_FORCED 0x00000000
583 #define PORT_HW_CFG_FORCE_KR_ENABLER_GPIO0_P0 0x00000100
584 #define PORT_HW_CFG_FORCE_KR_ENABLER_GPIO1_P0 0x00000200
585 #define PORT_HW_CFG_FORCE_KR_ENABLER_GPIO2_P0 0x00000300
586 #define PORT_HW_CFG_FORCE_KR_ENABLER_GPIO3_P0 0x00000400
587 #define PORT_HW_CFG_FORCE_KR_ENABLER_GPIO0_P1 0x00000500
588 #define PORT_HW_CFG_FORCE_KR_ENABLER_GPIO1_P1 0x00000600
589 #define PORT_HW_CFG_FORCE_KR_ENABLER_GPIO2_P1 0x00000700
590 #define PORT_HW_CFG_FORCE_KR_ENABLER_GPIO3_P1 0x00000800
591 #define PORT_HW_CFG_FORCE_KR_ENABLER_FORCED 0x00000900
593 #define PORT_HW_CFG_EXT_PHY_GPIO_RST_MASK 0x000F0000
594 #define PORT_HW_CFG_EXT_PHY_GPIO_RST_SHIFT 16
595 #define PORT_HW_CFG_EXT_PHY_GPIO_RST_PHY_TYPE 0x00000000
596 #define PORT_HW_CFG_EXT_PHY_GPIO_RST_GPIO0_P0 0x00010000
597 #define PORT_HW_CFG_EXT_PHY_GPIO_RST_GPIO1_P0 0x00020000
598 #define PORT_HW_CFG_EXT_PHY_GPIO_RST_GPIO2_P0 0x00030000
599 #define PORT_HW_CFG_EXT_PHY_GPIO_RST_GPIO3_P0 0x00040000
600 #define PORT_HW_CFG_EXT_PHY_GPIO_RST_GPIO0_P1 0x00050000
601 #define PORT_HW_CFG_EXT_PHY_GPIO_RST_GPIO1_P1 0x00060000
602 #define PORT_HW_CFG_EXT_PHY_GPIO_RST_GPIO2_P1 0x00070000
603 #define PORT_HW_CFG_EXT_PHY_GPIO_RST_GPIO3_P1 0x00080000
606 #define PORT_HW_CFG_ENABLE_BAM_ON_KR_MASK 0x00100000
607 #define PORT_HW_CFG_ENABLE_BAM_ON_KR_SHIFT 20
608 #define PORT_HW_CFG_ENABLE_BAM_ON_KR_DISABLED 0x00000000
609 #define PORT_HW_CFG_ENABLE_BAM_ON_KR_ENABLED 0x00100000
612 #define PORT_HW_CFG_ENABLE_CMS_MASK 0x00200000
613 #define PORT_HW_CFG_ENABLE_CMS_SHIFT 21
614 #define PORT_HW_CFG_ENABLE_CMS_DISABLED 0x00000000
615 #define PORT_HW_CFG_ENABLE_CMS_ENABLED 0x00200000
618 #define PORT_HW_CFG_NET_SERDES_IF_MASK 0x0F000000
619 #define PORT_HW_CFG_NET_SERDES_IF_SHIFT 24
620 #define PORT_HW_CFG_NET_SERDES_IF_SGMII 0x00000000
621 #define PORT_HW_CFG_NET_SERDES_IF_XFI 0x01000000
622 #define PORT_HW_CFG_NET_SERDES_IF_SFI 0x02000000
623 #define PORT_HW_CFG_NET_SERDES_IF_KR 0x03000000
624 #define PORT_HW_CFG_NET_SERDES_IF_DXGXS 0x04000000
625 #define PORT_HW_CFG_NET_SERDES_IF_KR2 0x05000000
629 #define PORT_HW_CFG_SPEED_CAPABILITY2_D3_MASK 0x0000FFFF
630 #define PORT_HW_CFG_SPEED_CAPABILITY2_D3_SHIFT 0
631 #define PORT_HW_CFG_SPEED_CAPABILITY2_D3_10M_FULL 0x00000001
632 #define PORT_HW_CFG_SPEED_CAPABILITY2_D3__ 0x00000002
633 #define PORT_HW_CFG_SPEED_CAPABILITY2_D3___ 0x00000004
634 #define PORT_HW_CFG_SPEED_CAPABILITY2_D3_100M_FULL 0x00000008
635 #define PORT_HW_CFG_SPEED_CAPABILITY2_D3_1G 0x00000010
636 #define PORT_HW_CFG_SPEED_CAPABILITY2_D3_2_DOT_5G 0x00000020
637 #define PORT_HW_CFG_SPEED_CAPABILITY2_D3_10G 0x00000040
638 #define PORT_HW_CFG_SPEED_CAPABILITY2_D3_20G 0x00000080
640 #define PORT_HW_CFG_SPEED_CAPABILITY2_D0_MASK 0xFFFF0000
641 #define PORT_HW_CFG_SPEED_CAPABILITY2_D0_SHIFT 16
642 #define PORT_HW_CFG_SPEED_CAPABILITY2_D0_10M_FULL 0x00010000
643 #define PORT_HW_CFG_SPEED_CAPABILITY2_D0__ 0x00020000
644 #define PORT_HW_CFG_SPEED_CAPABILITY2_D0___ 0x00040000
645 #define PORT_HW_CFG_SPEED_CAPABILITY2_D0_100M_FULL 0x00080000
646 #define PORT_HW_CFG_SPEED_CAPABILITY2_D0_1G 0x00100000
647 #define PORT_HW_CFG_SPEED_CAPABILITY2_D0_2_DOT_5G 0x00200000
648 #define PORT_HW_CFG_SPEED_CAPABILITY2_D0_10G 0x00400000
649 #define PORT_HW_CFG_SPEED_CAPABILITY2_D0_20G 0x00800000
657 #define PORT_HW_CFG_PHY_SELECTION_MASK 0x00000007
658 #define PORT_HW_CFG_PHY_SELECTION_SHIFT 0
659 #define PORT_HW_CFG_PHY_SELECTION_HARDWARE_DEFAULT 0x00000000
660 #define PORT_HW_CFG_PHY_SELECTION_FIRST_PHY 0x00000001
661 #define PORT_HW_CFG_PHY_SELECTION_SECOND_PHY 0x00000002
662 #define PORT_HW_CFG_PHY_SELECTION_FIRST_PHY_PRIORITY 0x00000003
663 #define PORT_HW_CFG_PHY_SELECTION_SECOND_PHY_PRIORITY 0x00000004
667 #define PORT_HW_CFG_PHY_SWAPPED_MASK 0x00000008
668 #define PORT_HW_CFG_PHY_SWAPPED_SHIFT 3
669 #define PORT_HW_CFG_PHY_SWAPPED_DISABLED 0x00000000
670 #define PORT_HW_CFG_PHY_SWAPPED_ENABLED 0x00000008
675 #define PORT_HW_CFG_XGXS_EXT_PHY2_ADDR_MASK 0x000000FF
676 #define PORT_HW_CFG_XGXS_EXT_PHY2_ADDR_SHIFT 0
679 #define PORT_HW_CFG_XGXS_EXT_PHY2_TYPE_MASK 0x0000FF00
680 #define PORT_HW_CFG_XGXS_EXT_PHY2_TYPE_SHIFT 8
681 #define PORT_HW_CFG_XGXS_EXT_PHY2_TYPE_DIRECT 0x00000000
682 #define PORT_HW_CFG_XGXS_EXT_PHY2_TYPE_BCM8071 0x00000100
683 #define PORT_HW_CFG_XGXS_EXT_PHY2_TYPE_BCM8072 0x00000200
684 #define PORT_HW_CFG_XGXS_EXT_PHY2_TYPE_BCM8073 0x00000300
685 #define PORT_HW_CFG_XGXS_EXT_PHY2_TYPE_BCM8705 0x00000400
686 #define PORT_HW_CFG_XGXS_EXT_PHY2_TYPE_BCM8706 0x00000500
687 #define PORT_HW_CFG_XGXS_EXT_PHY2_TYPE_BCM8726 0x00000600
688 #define PORT_HW_CFG_XGXS_EXT_PHY2_TYPE_BCM8481 0x00000700
689 #define PORT_HW_CFG_XGXS_EXT_PHY2_TYPE_SFX7101 0x00000800
690 #define PORT_HW_CFG_XGXS_EXT_PHY2_TYPE_BCM8727 0x00000900
691 #define PORT_HW_CFG_XGXS_EXT_PHY2_TYPE_BCM8727_NOC 0x00000a00
692 #define PORT_HW_CFG_XGXS_EXT_PHY2_TYPE_BCM84823 0x00000b00
693 #define PORT_HW_CFG_XGXS_EXT_PHY2_TYPE_BCM54640 0x00000c00
694 #define PORT_HW_CFG_XGXS_EXT_PHY2_TYPE_BCM84833 0x00000d00
695 #define PORT_HW_CFG_XGXS_EXT_PHY2_TYPE_BCM54618SE 0x00000e00
696 #define PORT_HW_CFG_XGXS_EXT_PHY2_TYPE_BCM8722 0x00000f00
697 #define PORT_HW_CFG_XGXS_EXT_PHY2_TYPE_BCM54616 0x00001000
698 #define PORT_HW_CFG_XGXS_EXT_PHY2_TYPE_FAILURE 0x0000fd00
699 #define PORT_HW_CFG_XGXS_EXT_PHY2_TYPE_NOT_CONN 0x0000ff00
708 #define PORT_HW_CFG_LANE_SWAP_CFG_MASK 0x0000ffff
709 #define PORT_HW_CFG_LANE_SWAP_CFG_SHIFT 0
711 #define PORT_HW_CFG_LANE_SWAP_CFG_01230123 0x00001b1b
713 #define PORT_HW_CFG_LANE_SWAP_CFG_01233210 0x00001be4
715 #define PORT_HW_CFG_LANE_SWAP_CFG_31203120 0x0000d8d8
717 #define PORT_HW_CFG_LANE_SWAP_CFG_32103210 0x0000e4e4
718 #define PORT_HW_CFG_LANE_SWAP_CFG_TX_MASK 0x000000ff
719 #define PORT_HW_CFG_LANE_SWAP_CFG_TX_SHIFT 0
720 #define PORT_HW_CFG_LANE_SWAP_CFG_RX_MASK 0x0000ff00
721 #define PORT_HW_CFG_LANE_SWAP_CFG_RX_SHIFT 8
722 #define PORT_HW_CFG_LANE_SWAP_CFG_MASTER_MASK 0x0000c000
723 #define PORT_HW_CFG_LANE_SWAP_CFG_MASTER_SHIFT 14
726 #define PORT_HW_CFG_SWAP_PHY_POLARITY_MASK 0x00010000
727 #define PORT_HW_CFG_SWAP_PHY_POLARITY_DISABLED 0x00000000
728 #define PORT_HW_CFG_SWAP_PHY_POLARITY_ENABLED 0x00010000
732 #define PORT_HW_CFG_XGXS_EXT_PHY_ADDR_MASK 0x000000ff
733 #define PORT_HW_CFG_XGXS_EXT_PHY_ADDR_SHIFT 0
735 #define PORT_HW_CFG_XGXS_EXT_PHY_TYPE_MASK 0x0000ff00
736 #define PORT_HW_CFG_XGXS_EXT_PHY_TYPE_SHIFT 8
737 #define PORT_HW_CFG_XGXS_EXT_PHY_TYPE_DIRECT 0x00000000
738 #define PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM8071 0x00000100
739 #define PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM8072 0x00000200
740 #define PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM8073 0x00000300
741 #define PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM8705 0x00000400
742 #define PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM8706 0x00000500
743 #define PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM8726 0x00000600
744 #define PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM8481 0x00000700
745 #define PORT_HW_CFG_XGXS_EXT_PHY_TYPE_SFX7101 0x00000800
746 #define PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM8727 0x00000900
747 #define PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM8727_NOC 0x00000a00
748 #define PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84823 0x00000b00
749 #define PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM54640 0x00000c00
750 #define PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84833 0x00000d00
751 #define PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM54618SE 0x00000e00
752 #define PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM8722 0x00000f00
753 #define PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM54616 0x00001000
754 #define PORT_HW_CFG_XGXS_EXT_PHY_TYPE_DIRECT_WC 0x0000fc00
755 #define PORT_HW_CFG_XGXS_EXT_PHY_TYPE_FAILURE 0x0000fd00
756 #define PORT_HW_CFG_XGXS_EXT_PHY_TYPE_NOT_CONN 0x0000ff00
758 #define PORT_HW_CFG_SERDES_EXT_PHY_ADDR_MASK 0x00ff0000
759 #define PORT_HW_CFG_SERDES_EXT_PHY_ADDR_SHIFT 16
761 #define PORT_HW_CFG_SERDES_EXT_PHY_TYPE_MASK 0xff000000
762 #define PORT_HW_CFG_SERDES_EXT_PHY_TYPE_SHIFT 24
763 #define PORT_HW_CFG_SERDES_EXT_PHY_TYPE_DIRECT 0x00000000
764 #define PORT_HW_CFG_SERDES_EXT_PHY_TYPE_BCM5482 0x01000000
765 #define PORT_HW_CFG_SERDES_EXT_PHY_TYPE_DIRECT_SD 0x02000000
766 #define PORT_HW_CFG_SERDES_EXT_PHY_TYPE_NOT_CONN 0xff000000
769 #define PORT_HW_CFG_SPEED_CAPABILITY_D3_MASK 0x0000ffff
770 #define PORT_HW_CFG_SPEED_CAPABILITY_D3_SHIFT 0
771 #define PORT_HW_CFG_SPEED_CAPABILITY_D3_10M_FULL 0x00000001
772 #define PORT_HW_CFG_SPEED_CAPABILITY_D3_10M_HALF 0x00000002
773 #define PORT_HW_CFG_SPEED_CAPABILITY_D3_100M_HALF 0x00000004
774 #define PORT_HW_CFG_SPEED_CAPABILITY_D3_100M_FULL 0x00000008
775 #define PORT_HW_CFG_SPEED_CAPABILITY_D3_1G 0x00000010
776 #define PORT_HW_CFG_SPEED_CAPABILITY_D3_2_5G 0x00000020
777 #define PORT_HW_CFG_SPEED_CAPABILITY_D3_10G 0x00000040
778 #define PORT_HW_CFG_SPEED_CAPABILITY_D3_20G 0x00000080
779 #define PORT_HW_CFG_SPEED_CAPABILITY_D3_RESERVED 0x0000f000
781 #define PORT_HW_CFG_SPEED_CAPABILITY_D0_MASK 0xffff0000
782 #define PORT_HW_CFG_SPEED_CAPABILITY_D0_SHIFT 16
783 #define PORT_HW_CFG_SPEED_CAPABILITY_D0_10M_FULL 0x00010000
784 #define PORT_HW_CFG_SPEED_CAPABILITY_D0_10M_HALF 0x00020000
785 #define PORT_HW_CFG_SPEED_CAPABILITY_D0_100M_HALF 0x00040000
786 #define PORT_HW_CFG_SPEED_CAPABILITY_D0_100M_FULL 0x00080000
787 #define PORT_HW_CFG_SPEED_CAPABILITY_D0_1G 0x00100000
788 #define PORT_HW_CFG_SPEED_CAPABILITY_D0_2_5G 0x00200000
789 #define PORT_HW_CFG_SPEED_CAPABILITY_D0_10G 0x00400000
790 #define PORT_HW_CFG_SPEED_CAPABILITY_D0_20G 0x00800000
791 #define PORT_HW_CFG_SPEED_CAPABILITY_D0_RESERVED 0xf0000000
806 #define SHARED_FEATURE_BMC_ECHO_MODE_EN 0x00000001
809 #define SHARED_FEAT_CFG_OVERRIDE_PREEMPHASIS_CFG_MASK \
811 #define SHARED_FEAT_CFG_OVERRIDE_PREEMPHASIS_CFG_DISABLED \
813 #define SHARED_FEAT_CFG_OVERRIDE_PREEMPHASIS_CFG_ENABLED \
816 #define SHARED_FEAT_CFG_NCSI_ID_METHOD_MASK 0x00000008
817 #define SHARED_FEAT_CFG_NCSI_ID_METHOD_SPIO 0x00000000
818 #define SHARED_FEAT_CFG_NCSI_ID_METHOD_NVRAM 0x00000008
820 #define SHARED_FEAT_CFG_NCSI_ID_MASK 0x00000030
821 #define SHARED_FEAT_CFG_NCSI_ID_SHIFT 4
825 #define SHARED_FEAT_CFG_FORCE_SF_MODE_MASK 0x00000700
826 #define SHARED_FEAT_CFG_FORCE_SF_MODE_SHIFT 8
827 #define SHARED_FEAT_CFG_FORCE_SF_MODE_MF_ALLOWED 0x00000000
828 #define SHARED_FEAT_CFG_FORCE_SF_MODE_FORCED_SF 0x00000100
829 #define SHARED_FEAT_CFG_FORCE_SF_MODE_SPIO4 0x00000200
830 #define SHARED_FEAT_CFG_FORCE_SF_MODE_SWITCH_INDEPT 0x00000300
831 #define SHARED_FEAT_CFG_FORCE_SF_MODE_AFEX_MODE 0x00000400
835 #define SHARED_FEAT_CFG_LLDP_XMIT_INTERVAL_MASK 0x00ff0000
836 #define SHARED_FEAT_CFG_LLDP_XMIT_INTERVAL_SHIFT 16
839 #define SHARED_FEAT_CFG_LLDP_DEVICE_TYPE_ID_MASK 0xff000000
840 #define SHARED_FEAT_CFG_LLDP_DEVICE_TYPE_ID_SHIFT 24
851 #define PORT_FEATURE_BAR1_SIZE_MASK 0x0000000f
852 #define PORT_FEATURE_BAR1_SIZE_SHIFT 0
853 #define PORT_FEATURE_BAR1_SIZE_DISABLED 0x00000000
854 #define PORT_FEATURE_BAR1_SIZE_64K 0x00000001
855 #define PORT_FEATURE_BAR1_SIZE_128K 0x00000002
856 #define PORT_FEATURE_BAR1_SIZE_256K 0x00000003
857 #define PORT_FEATURE_BAR1_SIZE_512K 0x00000004
858 #define PORT_FEATURE_BAR1_SIZE_1M 0x00000005
859 #define PORT_FEATURE_BAR1_SIZE_2M 0x00000006
860 #define PORT_FEATURE_BAR1_SIZE_4M 0x00000007
861 #define PORT_FEATURE_BAR1_SIZE_8M 0x00000008
862 #define PORT_FEATURE_BAR1_SIZE_16M 0x00000009
863 #define PORT_FEATURE_BAR1_SIZE_32M 0x0000000a
864 #define PORT_FEATURE_BAR1_SIZE_64M 0x0000000b
865 #define PORT_FEATURE_BAR1_SIZE_128M 0x0000000c
866 #define PORT_FEATURE_BAR1_SIZE_256M 0x0000000d
867 #define PORT_FEATURE_BAR1_SIZE_512M 0x0000000e
868 #define PORT_FEATURE_BAR1_SIZE_1G 0x0000000f
869 #define PORT_FEATURE_BAR2_SIZE_MASK 0x000000f0
870 #define PORT_FEATURE_BAR2_SIZE_SHIFT 4
871 #define PORT_FEATURE_BAR2_SIZE_DISABLED 0x00000000
872 #define PORT_FEATURE_BAR2_SIZE_64K 0x00000010
873 #define PORT_FEATURE_BAR2_SIZE_128K 0x00000020
874 #define PORT_FEATURE_BAR2_SIZE_256K 0x00000030
875 #define PORT_FEATURE_BAR2_SIZE_512K 0x00000040
876 #define PORT_FEATURE_BAR2_SIZE_1M 0x00000050
877 #define PORT_FEATURE_BAR2_SIZE_2M 0x00000060
878 #define PORT_FEATURE_BAR2_SIZE_4M 0x00000070
879 #define PORT_FEATURE_BAR2_SIZE_8M 0x00000080
880 #define PORT_FEATURE_BAR2_SIZE_16M 0x00000090
881 #define PORT_FEATURE_BAR2_SIZE_32M 0x000000a0
882 #define PORT_FEATURE_BAR2_SIZE_64M 0x000000b0
883 #define PORT_FEATURE_BAR2_SIZE_128M 0x000000c0
884 #define PORT_FEATURE_BAR2_SIZE_256M 0x000000d0
885 #define PORT_FEATURE_BAR2_SIZE_512M 0x000000e0
886 #define PORT_FEATURE_BAR2_SIZE_1G 0x000000f0
888 #define PORT_FEAT_CFG_DCBX_MASK 0x00000100
889 #define PORT_FEAT_CFG_DCBX_DISABLED 0x00000000
890 #define PORT_FEAT_CFG_DCBX_ENABLED 0x00000100
892 #define PORT_FEATURE_EN_SIZE_MASK 0x0f000000
893 #define PORT_FEATURE_EN_SIZE_SHIFT 24
894 #define PORT_FEATURE_WOL_ENABLED 0x01000000
895 #define PORT_FEATURE_MBA_ENABLED 0x02000000
896 #define PORT_FEATURE_MFW_ENABLED 0x04000000
899 #define PORT_FEAT_CFG_FORCE_EXP_ROM_ADV_MASK 0x08000000
900 #define PORT_FEAT_CFG_FORCE_EXP_ROM_ADV_DISABLED 0x00000000
901 #define PORT_FEAT_CFG_FORCE_EXP_ROM_ADV_ENABLED 0x08000000
905 #define PORT_FEAT_CFG_OPT_MDL_ENFRCMNT_MASK 0xe0000000
906 #define PORT_FEAT_CFG_OPT_MDL_ENFRCMNT_SHIFT 29
907 #define PORT_FEAT_CFG_OPT_MDL_ENFRCMNT_NO_ENFORCEMENT \
909 #define PORT_FEAT_CFG_OPT_MDL_ENFRCMNT_DISABLE_TX_LASER \
911 #define PORT_FEAT_CFG_OPT_MDL_ENFRCMNT_WARNING_MSG 0x40000000
912 #define PORT_FEAT_CFG_OPT_MDL_ENFRCMNT_POWER_DOWN 0x60000000
916 #define PORT_FEATURE_WOL_DEFAULT_MASK 0x00000003
917 #define PORT_FEATURE_WOL_DEFAULT_SHIFT 0
918 #define PORT_FEATURE_WOL_DEFAULT_DISABLE 0x00000000
919 #define PORT_FEATURE_WOL_DEFAULT_MAGIC 0x00000001
920 #define PORT_FEATURE_WOL_DEFAULT_ACPI 0x00000002
921 #define PORT_FEATURE_WOL_DEFAULT_MAGIC_AND_ACPI 0x00000003
922 #define PORT_FEATURE_WOL_RES_PAUSE_CAP 0x00000004
923 #define PORT_FEATURE_WOL_RES_ASYM_PAUSE_CAP 0x00000008
924 #define PORT_FEATURE_WOL_ACPI_UPON_MGMT 0x00000010
927 #define PORT_FEATURE_MBA_BOOT_AGENT_TYPE_MASK 0x00000007
928 #define PORT_FEATURE_MBA_BOOT_AGENT_TYPE_SHIFT 0
929 #define PORT_FEATURE_MBA_BOOT_AGENT_TYPE_PXE 0x00000000
930 #define PORT_FEATURE_MBA_BOOT_AGENT_TYPE_RPL 0x00000001
931 #define PORT_FEATURE_MBA_BOOT_AGENT_TYPE_BOOTP 0x00000002
932 #define PORT_FEATURE_MBA_BOOT_AGENT_TYPE_ISCSIB 0x00000003
933 #define PORT_FEATURE_MBA_BOOT_AGENT_TYPE_FCOE_BOOT 0x00000004
934 #define PORT_FEATURE_MBA_BOOT_AGENT_TYPE_NONE 0x00000007
936 #define PORT_FEATURE_MBA_BOOT_RETRY_MASK 0x00000038
937 #define PORT_FEATURE_MBA_BOOT_RETRY_SHIFT 3
939 #define PORT_FEATURE_MBA_RES_PAUSE_CAP 0x00000100
940 #define PORT_FEATURE_MBA_RES_ASYM_PAUSE_CAP 0x00000200
941 #define PORT_FEATURE_MBA_SETUP_PROMPT_ENABLE 0x00000400
942 #define PORT_FEATURE_MBA_HOTKEY_MASK 0x00000800
943 #define PORT_FEATURE_MBA_HOTKEY_CTRL_S 0x00000000
944 #define PORT_FEATURE_MBA_HOTKEY_CTRL_B 0x00000800
945 #define PORT_FEATURE_MBA_EXP_ROM_SIZE_MASK 0x000ff000
946 #define PORT_FEATURE_MBA_EXP_ROM_SIZE_SHIFT 12
947 #define PORT_FEATURE_MBA_EXP_ROM_SIZE_DISABLED 0x00000000
948 #define PORT_FEATURE_MBA_EXP_ROM_SIZE_2K 0x00001000
949 #define PORT_FEATURE_MBA_EXP_ROM_SIZE_4K 0x00002000
950 #define PORT_FEATURE_MBA_EXP_ROM_SIZE_8K 0x00003000
951 #define PORT_FEATURE_MBA_EXP_ROM_SIZE_16K 0x00004000
952 #define PORT_FEATURE_MBA_EXP_ROM_SIZE_32K 0x00005000
953 #define PORT_FEATURE_MBA_EXP_ROM_SIZE_64K 0x00006000
954 #define PORT_FEATURE_MBA_EXP_ROM_SIZE_128K 0x00007000
955 #define PORT_FEATURE_MBA_EXP_ROM_SIZE_256K 0x00008000
956 #define PORT_FEATURE_MBA_EXP_ROM_SIZE_512K 0x00009000
957 #define PORT_FEATURE_MBA_EXP_ROM_SIZE_1M 0x0000a000
958 #define PORT_FEATURE_MBA_EXP_ROM_SIZE_2M 0x0000b000
959 #define PORT_FEATURE_MBA_EXP_ROM_SIZE_4M 0x0000c000
960 #define PORT_FEATURE_MBA_EXP_ROM_SIZE_8M 0x0000d000
961 #define PORT_FEATURE_MBA_EXP_ROM_SIZE_16M 0x0000e000
962 #define PORT_FEATURE_MBA_EXP_ROM_SIZE_32M 0x0000f000
963 #define PORT_FEATURE_MBA_MSG_TIMEOUT_MASK 0x00f00000
964 #define PORT_FEATURE_MBA_MSG_TIMEOUT_SHIFT 20
965 #define PORT_FEATURE_MBA_BIOS_BOOTSTRAP_MASK 0x03000000
966 #define PORT_FEATURE_MBA_BIOS_BOOTSTRAP_SHIFT 24
967 #define PORT_FEATURE_MBA_BIOS_BOOTSTRAP_AUTO 0x00000000
968 #define PORT_FEATURE_MBA_BIOS_BOOTSTRAP_BBS 0x01000000
969 #define PORT_FEATURE_MBA_BIOS_BOOTSTRAP_INT18H 0x02000000
970 #define PORT_FEATURE_MBA_BIOS_BOOTSTRAP_INT19H 0x03000000
971 #define PORT_FEATURE_MBA_LINK_SPEED_MASK 0x3c000000
972 #define PORT_FEATURE_MBA_LINK_SPEED_SHIFT 26
973 #define PORT_FEATURE_MBA_LINK_SPEED_AUTO 0x00000000
974 #define PORT_FEATURE_MBA_LINK_SPEED_10HD 0x04000000
975 #define PORT_FEATURE_MBA_LINK_SPEED_10FD 0x08000000
976 #define PORT_FEATURE_MBA_LINK_SPEED_100HD 0x0c000000
977 #define PORT_FEATURE_MBA_LINK_SPEED_100FD 0x10000000
978 #define PORT_FEATURE_MBA_LINK_SPEED_1GBPS 0x14000000
979 #define PORT_FEATURE_MBA_LINK_SPEED_2_5GBPS 0x18000000
980 #define PORT_FEATURE_MBA_LINK_SPEED_10GBPS_CX4 0x1c000000
981 #define PORT_FEATURE_MBA_LINK_SPEED_20GBPS 0x20000000
983 #define PORT_FEATURE_BMC_LINK_OVERRIDE_MASK 0x00000001
984 #define PORT_FEATURE_BMC_LINK_OVERRIDE_DEFAULT 0x00000000
985 #define PORT_FEATURE_BMC_LINK_OVERRIDE_EN 0x00000001
988 #define PORT_FEATURE_MBA_VLAN_TAG_MASK 0x0000ffff
989 #define PORT_FEATURE_MBA_VLAN_TAG_SHIFT 0
990 #define PORT_FEATURE_MBA_VLAN_EN 0x00010000
993 #define PORT_FEATURE_RESOURCE_CFG_VALID 0x00000001
994 #define PORT_FEATURE_RESOURCE_CFG_DIAG 0x00000002
995 #define PORT_FEATURE_RESOURCE_CFG_L2 0x00000004
996 #define PORT_FEATURE_RESOURCE_CFG_ISCSI 0x00000008
997 #define PORT_FEATURE_RESOURCE_CFG_RDMA 0x00000010
1000 #define PORT_FEATURE_SMBUS_ADDR_MASK 0x000000fe
1001 #define PORT_FEATURE_SMBUS_ADDR_SHIFT 1
1004 #define PORT_FEAT_CFG_VF_BAR2_SIZE_MASK 0x0000000f
1005 #define PORT_FEAT_CFG_VF_BAR2_SIZE_SHIFT 0
1006 #define PORT_FEAT_CFG_VF_BAR2_SIZE_DISABLED 0x00000000
1007 #define PORT_FEAT_CFG_VF_BAR2_SIZE_4K 0x00000001
1008 #define PORT_FEAT_CFG_VF_BAR2_SIZE_8K 0x00000002
1009 #define PORT_FEAT_CFG_VF_BAR2_SIZE_16K 0x00000003
1010 #define PORT_FEAT_CFG_VF_BAR2_SIZE_32K 0x00000004
1011 #define PORT_FEAT_CFG_VF_BAR2_SIZE_64K 0x00000005
1012 #define PORT_FEAT_CFG_VF_BAR2_SIZE_128K 0x00000006
1013 #define PORT_FEAT_CFG_VF_BAR2_SIZE_256K 0x00000007
1014 #define PORT_FEAT_CFG_VF_BAR2_SIZE_512K 0x00000008
1015 #define PORT_FEAT_CFG_VF_BAR2_SIZE_1M 0x00000009
1016 #define PORT_FEAT_CFG_VF_BAR2_SIZE_2M 0x0000000a
1017 #define PORT_FEAT_CFG_VF_BAR2_SIZE_4M 0x0000000b
1018 #define PORT_FEAT_CFG_VF_BAR2_SIZE_8M 0x0000000c
1019 #define PORT_FEAT_CFG_VF_BAR2_SIZE_16M 0x0000000d
1020 #define PORT_FEAT_CFG_VF_BAR2_SIZE_32M 0x0000000e
1021 #define PORT_FEAT_CFG_VF_BAR2_SIZE_64M 0x0000000f
1024 #define PORT_FEATURE_CONNECTED_SWITCH_MASK 0x03000000
1025 #define PORT_FEATURE_CONNECTED_SWITCH_SHIFT 24
1027 #define PORT_FEATURE_CON_SWITCH_1G_SWITCH 0x00000000
1029 #define PORT_FEATURE_CON_SWITCH_10G_SWITCH 0x01000000
1030 #define PORT_FEATURE_CON_SWITCH_AUTO_DETECT 0x02000000
1031 #define PORT_FEATURE_CON_SWITCH_ONE_TIME_DETECT 0x03000000
1033 #define PORT_FEATURE_LINK_SPEED_MASK 0x000f0000
1034 #define PORT_FEATURE_LINK_SPEED_SHIFT 16
1035 #define PORT_FEATURE_LINK_SPEED_AUTO 0x00000000
1036 #define PORT_FEATURE_LINK_SPEED_10M_FULL 0x00010000
1037 #define PORT_FEATURE_LINK_SPEED_10M_HALF 0x00020000
1038 #define PORT_FEATURE_LINK_SPEED_100M_HALF 0x00030000
1039 #define PORT_FEATURE_LINK_SPEED_100M_FULL 0x00040000
1040 #define PORT_FEATURE_LINK_SPEED_1G 0x00050000
1041 #define PORT_FEATURE_LINK_SPEED_2_5G 0x00060000
1042 #define PORT_FEATURE_LINK_SPEED_10G_CX4 0x00070000
1043 #define PORT_FEATURE_LINK_SPEED_20G 0x00080000
1045 #define PORT_FEATURE_FLOW_CONTROL_MASK 0x00000700
1046 #define PORT_FEATURE_FLOW_CONTROL_SHIFT 8
1047 #define PORT_FEATURE_FLOW_CONTROL_AUTO 0x00000000
1048 #define PORT_FEATURE_FLOW_CONTROL_TX 0x00000100
1049 #define PORT_FEATURE_FLOW_CONTROL_RX 0x00000200
1050 #define PORT_FEATURE_FLOW_CONTROL_BOTH 0x00000300
1051 #define PORT_FEATURE_FLOW_CONTROL_NONE 0x00000400
1068 #define PORT_FEAT_CFG_EEE_POWER_MODE_MASK 0x000000FF
1069 #define PORT_FEAT_CFG_EEE_POWER_MODE_SHIFT 0
1070 #define PORT_FEAT_CFG_EEE_POWER_MODE_DISABLED 0x00000000
1071 #define PORT_FEAT_CFG_EEE_POWER_MODE_BALANCED 0x00000001
1072 #define PORT_FEAT_CFG_EEE_POWER_MODE_AGGRESSIVE 0x00000002
1073 #define PORT_FEAT_CFG_EEE_POWER_MODE_LOW_LATENCY 0x00000003
1098 #if !defined(__LITTLE_ENDIAN) && !defined(__BIG_ENDIAN)
1099 #error "Missing either LITTLE_ENDIAN or BIG_ENDIAN definition."
1110 #define E1_FUNC_MAX 2
1111 #define E1H_FUNC_MAX 8
1112 #define E2_FUNC_MAX 4
1121 #define E2_VF_MAX 64
1125 #define DRV_PULSE_PERIOD_MS 250
1132 #define FW_ACK_TIME_OUT_MS 5000
1134 #define FW_ACK_POLL_TIME_MS 1
1136 #define FW_ACK_NUM_OF_POLL (FW_ACK_TIME_OUT_MS/FW_ACK_POLL_TIME_MS)
1138 #define MFW_TRACE_SIGNATURE 0x54524342
1148 #define LINK_STATUS_NONE (0<<0)
1149 #define LINK_STATUS_LINK_FLAG_MASK 0x00000001
1150 #define LINK_STATUS_LINK_UP 0x00000001
1151 #define LINK_STATUS_SPEED_AND_DUPLEX_MASK 0x0000001E
1152 #define LINK_STATUS_SPEED_AND_DUPLEX_AN_NOT_COMPLETE (0<<1)
1153 #define LINK_STATUS_SPEED_AND_DUPLEX_10THD (1<<1)
1154 #define LINK_STATUS_SPEED_AND_DUPLEX_10TFD (2<<1)
1155 #define LINK_STATUS_SPEED_AND_DUPLEX_100TXHD (3<<1)
1156 #define LINK_STATUS_SPEED_AND_DUPLEX_100T4 (4<<1)
1157 #define LINK_STATUS_SPEED_AND_DUPLEX_100TXFD (5<<1)
1158 #define LINK_STATUS_SPEED_AND_DUPLEX_1000THD (6<<1)
1159 #define LINK_STATUS_SPEED_AND_DUPLEX_1000TFD (7<<1)
1160 #define LINK_STATUS_SPEED_AND_DUPLEX_1000XFD (7<<1)
1161 #define LINK_STATUS_SPEED_AND_DUPLEX_2500THD (8<<1)
1162 #define LINK_STATUS_SPEED_AND_DUPLEX_2500TFD (9<<1)
1163 #define LINK_STATUS_SPEED_AND_DUPLEX_2500XFD (9<<1)
1164 #define LINK_STATUS_SPEED_AND_DUPLEX_10GTFD (10<<1)
1165 #define LINK_STATUS_SPEED_AND_DUPLEX_10GXFD (10<<1)
1166 #define LINK_STATUS_SPEED_AND_DUPLEX_20GTFD (11<<1)
1167 #define LINK_STATUS_SPEED_AND_DUPLEX_20GXFD (11<<1)
1169 #define LINK_STATUS_AUTO_NEGOTIATE_FLAG_MASK 0x00000020
1170 #define LINK_STATUS_AUTO_NEGOTIATE_ENABLED 0x00000020
1172 #define LINK_STATUS_AUTO_NEGOTIATE_COMPLETE 0x00000040
1173 #define LINK_STATUS_PARALLEL_DETECTION_FLAG_MASK 0x00000080
1174 #define LINK_STATUS_PARALLEL_DETECTION_USED 0x00000080
1176 #define LINK_STATUS_LINK_PARTNER_1000TFD_CAPABLE 0x00000200
1177 #define LINK_STATUS_LINK_PARTNER_1000THD_CAPABLE 0x00000400
1178 #define LINK_STATUS_LINK_PARTNER_100T4_CAPABLE 0x00000800
1179 #define LINK_STATUS_LINK_PARTNER_100TXFD_CAPABLE 0x00001000
1180 #define LINK_STATUS_LINK_PARTNER_100TXHD_CAPABLE 0x00002000
1181 #define LINK_STATUS_LINK_PARTNER_10TFD_CAPABLE 0x00004000
1182 #define LINK_STATUS_LINK_PARTNER_10THD_CAPABLE 0x00008000
1184 #define LINK_STATUS_TX_FLOW_CONTROL_FLAG_MASK 0x00010000
1185 #define LINK_STATUS_TX_FLOW_CONTROL_ENABLED 0x00010000
1187 #define LINK_STATUS_RX_FLOW_CONTROL_FLAG_MASK 0x00020000
1188 #define LINK_STATUS_RX_FLOW_CONTROL_ENABLED 0x00020000
1190 #define LINK_STATUS_LINK_PARTNER_FLOW_CONTROL_MASK 0x000C0000
1191 #define LINK_STATUS_LINK_PARTNER_NOT_PAUSE_CAPABLE (0<<18)
1192 #define LINK_STATUS_LINK_PARTNER_SYMMETRIC_PAUSE (1<<18)
1193 #define LINK_STATUS_LINK_PARTNER_ASYMMETRIC_PAUSE (2<<18)
1194 #define LINK_STATUS_LINK_PARTNER_BOTH_PAUSE (3<<18)
1196 #define LINK_STATUS_SERDES_LINK 0x00100000
1198 #define LINK_STATUS_LINK_PARTNER_2500XFD_CAPABLE 0x00200000
1199 #define LINK_STATUS_LINK_PARTNER_2500XHD_CAPABLE 0x00400000
1200 #define LINK_STATUS_LINK_PARTNER_10GXFD_CAPABLE 0x00800000
1201 #define LINK_STATUS_LINK_PARTNER_20GXFD_CAPABLE 0x10000000
1203 #define LINK_STATUS_PFC_ENABLED 0x20000000
1205 #define LINK_STATUS_PHYSICAL_LINK_FLAG 0x40000000
1206 #define LINK_STATUS_SFP_TX_FAULT 0x80000000
1221 #define DRV_MSG_CODE_MASK 0xffff0000
1222 #define DRV_MSG_CODE_LOAD_REQ 0x10000000
1223 #define DRV_MSG_CODE_LOAD_DONE 0x11000000
1224 #define DRV_MSG_CODE_UNLOAD_REQ_WOL_EN 0x20000000
1225 #define DRV_MSG_CODE_UNLOAD_REQ_WOL_DIS 0x20010000
1226 #define DRV_MSG_CODE_UNLOAD_REQ_WOL_MCP 0x20020000
1227 #define DRV_MSG_CODE_UNLOAD_DONE 0x21000000
1228 #define DRV_MSG_CODE_DCC_OK 0x30000000
1229 #define DRV_MSG_CODE_DCC_FAILURE 0x31000000
1230 #define DRV_MSG_CODE_DIAG_ENTER_REQ 0x50000000
1231 #define DRV_MSG_CODE_DIAG_EXIT_REQ 0x60000000
1232 #define DRV_MSG_CODE_VALIDATE_KEY 0x70000000
1233 #define DRV_MSG_CODE_GET_CURR_KEY 0x80000000
1234 #define DRV_MSG_CODE_GET_UPGRADE_KEY 0x81000000
1235 #define DRV_MSG_CODE_GET_MANUF_KEY 0x82000000
1236 #define DRV_MSG_CODE_LOAD_L2B_PRAM 0x90000000
1242 #define DRV_MSG_CODE_VRFY_FIRST_PHY_OPT_MDL 0xa0000000
1243 #define REQ_BC_VER_4_VRFY_FIRST_PHY_OPT_MDL 0x00050006
1244 #define DRV_MSG_CODE_VRFY_SPECIFIC_PHY_OPT_MDL 0xa1000000
1245 #define REQ_BC_VER_4_VRFY_SPECIFIC_PHY_OPT_MDL 0x00050234
1246 #define DRV_MSG_CODE_VRFY_AFEX_SUPPORTED 0xa2000000
1247 #define REQ_BC_VER_4_VRFY_AFEX_SUPPORTED 0x00070002
1248 #define REQ_BC_VER_4_SFP_TX_DISABLE_SUPPORTED 0x00070014
1249 #define REQ_BC_VER_4_PFC_STATS_SUPPORTED 0x00070201
1250 #define REQ_BC_VER_4_FCOE_FEATURES 0x00070209
1252 #define DRV_MSG_CODE_DCBX_ADMIN_PMF_MSG 0xb0000000
1253 #define DRV_MSG_CODE_DCBX_PMF_DRV_OK 0xb2000000
1254 #define REQ_BC_VER_4_DCBX_ADMIN_MSG_NON_PMF 0x00070401
1256 #define DRV_MSG_CODE_VF_DISABLED_DONE 0xc0000000
1258 #define DRV_MSG_CODE_AFEX_DRIVER_SETMAC 0xd0000000
1259 #define DRV_MSG_CODE_AFEX_LISTGET_ACK 0xd1000000
1260 #define DRV_MSG_CODE_AFEX_LISTSET_ACK 0xd2000000
1261 #define DRV_MSG_CODE_AFEX_STATSGET_ACK 0xd3000000
1262 #define DRV_MSG_CODE_AFEX_VIFSET_ACK 0xd4000000
1264 #define DRV_MSG_CODE_DRV_INFO_ACK 0xd8000000
1265 #define DRV_MSG_CODE_DRV_INFO_NACK 0xd9000000
1267 #define DRV_MSG_CODE_EEE_RESULTS_ACK 0xda000000
1269 #define DRV_MSG_CODE_SET_MF_BW 0xe0000000
1270 #define REQ_BC_VER_4_SET_MF_BW 0x00060202
1271 #define DRV_MSG_CODE_SET_MF_BW_ACK 0xe1000000
1273 #define DRV_MSG_CODE_LINK_STATUS_CHANGED 0x01000000
1275 #define DRV_MSG_CODE_INITIATE_FLR 0x02000000
1276 #define REQ_BC_VER_4_INITIATE_FLR 0x00070213
1278 #define BIOS_MSG_CODE_LIC_CHALLENGE 0xff010000
1279 #define BIOS_MSG_CODE_LIC_RESPONSE 0xff020000
1280 #define BIOS_MSG_CODE_VIRT_MAC_PRIM 0xff030000
1281 #define BIOS_MSG_CODE_VIRT_MAC_ISCSI 0xff040000
1283 #define DRV_MSG_SEQ_NUMBER_MASK 0x0000ffff
1286 #define DRV_MSG_CODE_SET_MF_BW_MIN_MASK 0x00ff0000
1287 #define DRV_MSG_CODE_SET_MF_BW_MAX_MASK 0xff000000
1289 #define DRV_MSG_CODE_UNLOAD_SKIP_LINK_RESET 0x00000002
1291 #define DRV_MSG_CODE_LOAD_REQ_WITH_LFA 0x0000100a
1293 #define FW_MSG_CODE_MASK 0xffff0000
1294 #define FW_MSG_CODE_DRV_LOAD_COMMON 0x10100000
1295 #define FW_MSG_CODE_DRV_LOAD_PORT 0x10110000
1296 #define FW_MSG_CODE_DRV_LOAD_FUNCTION 0x10120000
1298 #define REQ_BC_VER_4_DRV_LOAD_COMMON_CHIP 0x00060000
1299 #define FW_MSG_CODE_DRV_LOAD_COMMON_CHIP 0x10130000
1301 #define FW_MSG_CODE_DRV_LOAD_REFUSED 0x10200000
1302 #define FW_MSG_CODE_DRV_LOAD_DONE 0x11100000
1303 #define FW_MSG_CODE_DRV_UNLOAD_COMMON 0x20100000
1304 #define FW_MSG_CODE_DRV_UNLOAD_PORT 0x20110000
1305 #define FW_MSG_CODE_DRV_UNLOAD_FUNCTION 0x20120000
1306 #define FW_MSG_CODE_DRV_UNLOAD_DONE 0x21100000
1307 #define FW_MSG_CODE_DCC_DONE 0x30100000
1308 #define FW_MSG_CODE_LLDP_DONE 0x40100000
1309 #define FW_MSG_CODE_DIAG_ENTER_DONE 0x50100000
1310 #define FW_MSG_CODE_DIAG_REFUSE 0x50200000
1311 #define FW_MSG_CODE_DIAG_EXIT_DONE 0x60100000
1312 #define FW_MSG_CODE_VALIDATE_KEY_SUCCESS 0x70100000
1313 #define FW_MSG_CODE_VALIDATE_KEY_FAILURE 0x70200000
1314 #define FW_MSG_CODE_GET_KEY_DONE 0x80100000
1315 #define FW_MSG_CODE_NO_KEY 0x80f00000
1316 #define FW_MSG_CODE_LIC_INFO_NOT_READY 0x80f80000
1317 #define FW_MSG_CODE_L2B_PRAM_LOADED 0x90100000
1318 #define FW_MSG_CODE_L2B_PRAM_T_LOAD_FAILURE 0x90210000
1319 #define FW_MSG_CODE_L2B_PRAM_C_LOAD_FAILURE 0x90220000
1320 #define FW_MSG_CODE_L2B_PRAM_X_LOAD_FAILURE 0x90230000
1321 #define FW_MSG_CODE_L2B_PRAM_U_LOAD_FAILURE 0x90240000
1322 #define FW_MSG_CODE_VRFY_OPT_MDL_SUCCESS 0xa0100000
1323 #define FW_MSG_CODE_VRFY_OPT_MDL_INVLD_IMG 0xa0200000
1324 #define FW_MSG_CODE_VRFY_OPT_MDL_UNAPPROVED 0xa0300000
1325 #define FW_MSG_CODE_VF_DISABLED_DONE 0xb0000000
1326 #define FW_MSG_CODE_HW_SET_INVALID_IMAGE 0xb0100000
1328 #define FW_MSG_CODE_AFEX_DRIVER_SETMAC_DONE 0xd0100000
1329 #define FW_MSG_CODE_AFEX_LISTGET_ACK 0xd1100000
1330 #define FW_MSG_CODE_AFEX_LISTSET_ACK 0xd2100000
1331 #define FW_MSG_CODE_AFEX_STATSGET_ACK 0xd3100000
1332 #define FW_MSG_CODE_AFEX_VIFSET_ACK 0xd4100000
1334 #define FW_MSG_CODE_DRV_INFO_ACK 0xd8100000
1335 #define FW_MSG_CODE_DRV_INFO_NACK 0xd9100000
1337 #define FW_MSG_CODE_EEE_RESULS_ACK 0xda100000
1339 #define FW_MSG_CODE_SET_MF_BW_SENT 0xe0000000
1340 #define FW_MSG_CODE_SET_MF_BW_DONE 0xe1000000
1342 #define FW_MSG_CODE_LINK_CHANGED_ACK 0x01100000
1344 #define FW_MSG_CODE_LIC_CHALLENGE 0xff010000
1345 #define FW_MSG_CODE_LIC_RESPONSE 0xff020000
1346 #define FW_MSG_CODE_VIRT_MAC_PRIM 0xff030000
1347 #define FW_MSG_CODE_VIRT_MAC_ISCSI 0xff040000
1349 #define FW_MSG_SEQ_NUMBER_MASK 0x0000ffff
1354 #define DRV_PULSE_SEQ_MASK 0x00007fff
1355 #define DRV_PULSE_SYSTEM_TIME_MASK 0xffff0000
1360 #define DRV_PULSE_ALWAYS_ALIVE 0x00008000
1368 #define MCP_PULSE_SEQ_MASK 0x00007fff
1369 #define MCP_PULSE_ALWAYS_ALIVE 0x00008000
1372 #define MCP_EVENT_MASK 0xffff0000
1373 #define MCP_EVENT_OTHER_DRIVER_RESET_REQ 0x00010000
1379 #define DRV_STATUS_PMF 0x00000001
1380 #define DRV_STATUS_VF_DISABLED 0x00000002
1381 #define DRV_STATUS_SET_MF_BW 0x00000004
1382 #define DRV_STATUS_LINK_EVENT 0x00000008
1384 #define DRV_STATUS_DCC_EVENT_MASK 0x0000ff00
1385 #define DRV_STATUS_DCC_DISABLE_ENABLE_PF 0x00000100
1386 #define DRV_STATUS_DCC_BANDWIDTH_ALLOCATION 0x00000200
1387 #define DRV_STATUS_DCC_CHANGE_MAC_ADDRESS 0x00000400
1388 #define DRV_STATUS_DCC_RESERVED1 0x00000800
1389 #define DRV_STATUS_DCC_SET_PROTOCOL 0x00001000
1390 #define DRV_STATUS_DCC_SET_PRIORITY 0x00002000
1392 #define DRV_STATUS_DCBX_EVENT_MASK 0x000f0000
1393 #define DRV_STATUS_DCBX_NEGOTIATION_RESULTS 0x00010000
1394 #define DRV_STATUS_AFEX_EVENT_MASK 0x03f00000
1395 #define DRV_STATUS_AFEX_LISTGET_REQ 0x00100000
1396 #define DRV_STATUS_AFEX_LISTSET_REQ 0x00200000
1397 #define DRV_STATUS_AFEX_STATSGET_REQ 0x00400000
1398 #define DRV_STATUS_AFEX_VIFSET_REQ 0x00800000
1400 #define DRV_STATUS_DRV_INFO_REQ 0x04000000
1402 #define DRV_STATUS_EEE_NEGOTIATION_RESULTS 0x08000000
1405 #define VIRT_MAC_SIGN_MASK 0xffff0000
1406 #define VIRT_MAC_SIGNATURE 0x564d0000
1416 #define MGMTFW_STATE_WORD_SIZE 110
1429 #define SHARED_MF_CLP_SET_DEFAULT 0x00000000
1431 #define SHARED_MF_CLP_EXIT 0x00000001
1433 #define SHARED_MF_CLP_EXIT_DONE 0x00010000
1440 #define PORT_MF_CFG_E1HOV_TAG_MASK 0x0000ffff
1441 #define PORT_MF_CFG_E1HOV_TAG_SHIFT 0
1442 #define PORT_MF_CFG_E1HOV_TAG_DEFAULT PORT_MF_CFG_E1HOV_TAG_MASK
1453 #define FUNC_MF_CFG_FUNC_HIDE 0x00000001
1455 #define FUNC_MF_CFG_PROTOCOL_MASK 0x00000006
1456 #define FUNC_MF_CFG_PROTOCOL_FCOE 0x00000000
1457 #define FUNC_MF_CFG_PROTOCOL_ETHERNET 0x00000002
1458 #define FUNC_MF_CFG_PROTOCOL_ETHERNET_WITH_RDMA 0x00000004
1459 #define FUNC_MF_CFG_PROTOCOL_ISCSI 0x00000006
1460 #define FUNC_MF_CFG_PROTOCOL_DEFAULT \
1461 FUNC_MF_CFG_PROTOCOL_ETHERNET_WITH_RDMA
1463 #define FUNC_MF_CFG_FUNC_DISABLED 0x00000008
1464 #define FUNC_MF_CFG_FUNC_DELETED 0x00000010
1468 #define FUNC_MF_CFG_TRANSMIT_PRIORITY_MASK 0x00000300
1469 #define FUNC_MF_CFG_TRANSMIT_PRIORITY_SHIFT 8
1470 #define FUNC_MF_CFG_TRANSMIT_PRIORITY_DEFAULT 0x00000000
1474 #define FUNC_MF_CFG_MIN_BW_MASK 0x00ff0000
1475 #define FUNC_MF_CFG_MIN_BW_SHIFT 16
1476 #define FUNC_MF_CFG_MIN_BW_DEFAULT 0x00000000
1477 #define FUNC_MF_CFG_MAX_BW_MASK 0xff000000
1478 #define FUNC_MF_CFG_MAX_BW_SHIFT 24
1479 #define FUNC_MF_CFG_MAX_BW_DEFAULT 0x64000000
1482 #define FUNC_MF_CFG_UPPERMAC_MASK 0x0000ffff
1483 #define FUNC_MF_CFG_UPPERMAC_SHIFT 0
1484 #define FUNC_MF_CFG_UPPERMAC_DEFAULT FUNC_MF_CFG_UPPERMAC_MASK
1486 #define FUNC_MF_CFG_LOWERMAC_DEFAULT 0xffffffff
1489 #define FUNC_MF_CFG_E1HOV_TAG_MASK 0x0000ffff
1490 #define FUNC_MF_CFG_E1HOV_TAG_SHIFT 0
1491 #define FUNC_MF_CFG_E1HOV_TAG_DEFAULT FUNC_MF_CFG_E1HOV_TAG_MASK
1494 #define FUNC_MF_CFG_AFEX_VLAN_MASK 0x0fff0000
1495 #define FUNC_MF_CFG_AFEX_VLAN_SHIFT 16
1498 #define FUNC_MF_CFG_AFEX_COS_FILTER_MASK 0x000000ff
1499 #define FUNC_MF_CFG_AFEX_COS_FILTER_SHIFT 0
1500 #define FUNC_MF_CFG_AFEX_MBA_ENABLED_MASK 0x0000ff00
1501 #define FUNC_MF_CFG_AFEX_MBA_ENABLED_SHIFT 8
1502 #define FUNC_MF_CFG_AFEX_MBA_ENABLED_VAL 0x00000100
1503 #define FUNC_MF_CFG_AFEX_VLAN_MODE_MASK 0x000f0000
1504 #define FUNC_MF_CFG_AFEX_VLAN_MODE_SHIFT 16
1518 #define MACP_FUNC_CFG_FLAGS_MASK 0x000000FF
1519 #define MACP_FUNC_CFG_FLAGS_SHIFT 0
1520 #define MACP_FUNC_CFG_FLAGS_ENABLED 0x00000001
1521 #define MACP_FUNC_CFG_FLAGS_ETHERNET 0x00000002
1522 #define MACP_FUNC_CFG_FLAGS_ISCSI_OFFLOAD 0x00000004
1523 #define MACP_FUNC_CFG_FLAGS_FCOE_OFFLOAD 0x00000008
1538 #define MF_FUNC_CFG_PRESERVE_L2_MAC (1<<0)
1539 #define MF_FUNC_CFG_PRESERVE_ISCSI_MAC (1<<1)
1540 #define MF_FUNC_CFG_PRESERVE_FCOE_MAC (1<<2)
1541 #define MF_FUNC_CFG_PRESERVE_FCOE_WWN_P (1<<3)
1542 #define MF_FUNC_CFG_PRESERVE_FCOE_WWN_N (1<<4)
1543 #define MF_FUNC_CFG_PRESERVE_TX_BW (1<<5)
1566 #define SHR_MEM_FORMAT_REV_MASK 0xff000000
1567 #define SHR_MEM_FORMAT_REV_ID ('A'<<24)
1569 #define SHR_MEM_VALIDITY_PCI_CFG 0x00100000
1570 #define SHR_MEM_VALIDITY_MB 0x00200000
1571 #define SHR_MEM_VALIDITY_DEV_INFO 0x00400000
1572 #define SHR_MEM_VALIDITY_RESERVED 0x00000007
1574 #define SHR_MEM_VALIDITY_LIC_KEY_IN_EFFECT_MASK 0x00000038
1575 #define SHR_MEM_VALIDITY_LIC_MANUF_KEY_IN_EFFECT 0x00000008
1576 #define SHR_MEM_VALIDITY_LIC_UPGRADE_KEY_IN_EFFECT 0x00000010
1577 #define SHR_MEM_VALIDITY_LIC_NO_KEY_IN_EFFECT 0x00000020
1579 #define SHR_MEM_VALIDITY_ACTIVE_MFW_UNKNOWN 0x00000000
1580 #define SHR_MEM_VALIDITY_ACTIVE_MFW_MASK 0x000001c0
1581 #define SHR_MEM_VALIDITY_ACTIVE_MFW_IPMI 0x00000040
1582 #define SHR_MEM_VALIDITY_ACTIVE_MFW_UMP 0x00000080
1583 #define SHR_MEM_VALIDITY_ACTIVE_MFW_NCSI 0x000000c0
1584 #define SHR_MEM_VALIDITY_ACTIVE_MFW_NONE 0x000001c0
1649 #define SHMEM_ARRAY_MASK(eb) ((1<<(eb))-1)
1650 #define SHMEM_ARRAY_ENTRY(i, eb) ((i)/(32/(eb)))
1676 #define SHMEM_ARRAY_BITPOS(i, eb, fb) \
1677 ((((32/(fb)) - 1 - ((i)/((fb)/(eb))) % (32/(fb))) * (fb)) + \
1678 (((i)%((fb)/(eb))) * (eb)))
1680 #define SHMEM_ARRAY_GET(a, i, eb, fb) \
1681 ((a[SHMEM_ARRAY_ENTRY(i, eb)] >> SHMEM_ARRAY_BITPOS(i, eb, fb)) & \
1682 SHMEM_ARRAY_MASK(eb))
1684 #define SHMEM_ARRAY_SET(a, i, eb, fb, val) \
1686 a[SHMEM_ARRAY_ENTRY(i, eb)] &= ~(SHMEM_ARRAY_MASK(eb) << \
1687 SHMEM_ARRAY_BITPOS(i, eb, fb)); \
1688 a[SHMEM_ARRAY_ENTRY(i, eb)] |= (((val) & SHMEM_ARRAY_MASK(eb)) << \
1689 SHMEM_ARRAY_BITPOS(i, eb, fb)); \
1694 #define DCBX_MAX_NUM_PRI_PG_ENTRIES 8
1695 #define DCBX_PRI_PG_BITWIDTH 4
1696 #define DCBX_PRI_PG_FBITS 8
1697 #define DCBX_PRI_PG_GET(a, i) \
1698 SHMEM_ARRAY_GET(a, i, DCBX_PRI_PG_BITWIDTH, DCBX_PRI_PG_FBITS)
1699 #define DCBX_PRI_PG_SET(a, i, val) \
1700 SHMEM_ARRAY_SET(a, i, DCBX_PRI_PG_BITWIDTH, DCBX_PRI_PG_FBITS, val)
1701 #define DCBX_MAX_NUM_PG_BW_ENTRIES 8
1702 #define DCBX_BW_PG_BITWIDTH 8
1703 #define DCBX_PG_BW_GET(a, i) \
1704 SHMEM_ARRAY_GET(a, i, DCBX_BW_PG_BITWIDTH, DCBX_BW_PG_BITWIDTH)
1705 #define DCBX_PG_BW_SET(a, i, val) \
1706 SHMEM_ARRAY_SET(a, i, DCBX_BW_PG_BITWIDTH, DCBX_BW_PG_BITWIDTH, val)
1707 #define DCBX_STRICT_PRI_PG 15
1708 #define DCBX_MAX_APP_PROTOCOL 16
1709 #define FCOE_APP_IDX 0
1710 #define ISCSI_APP_IDX 1
1711 #define PREDEFINED_APP_IDX_MAX 2
1729 #define DCBX_PFC_PRI_0 0x01
1730 #define DCBX_PFC_PRI_1 0x02
1731 #define DCBX_PFC_PRI_2 0x04
1732 #define DCBX_PFC_PRI_3 0x08
1733 #define DCBX_PFC_PRI_4 0x10
1734 #define DCBX_PFC_PRI_5 0x20
1735 #define DCBX_PFC_PRI_6 0x40
1736 #define DCBX_PFC_PRI_7 0x80
1740 #elif defined(__LITTLE_ENDIAN)
1745 #define DCBX_PFC_PRI_0 0x01
1746 #define DCBX_PFC_PRI_1 0x02
1747 #define DCBX_PFC_PRI_2 0x04
1748 #define DCBX_PFC_PRI_3 0x08
1749 #define DCBX_PFC_PRI_4 0x10
1750 #define DCBX_PFC_PRI_5 0x20
1751 #define DCBX_PFC_PRI_6 0x40
1752 #define DCBX_PFC_PRI_7 0x80
1761 #define DCBX_APP_ENTRY_VALID 0x01
1762 #define DCBX_APP_ENTRY_SF_MASK 0x30
1763 #define DCBX_APP_ENTRY_SF_SHIFT 4
1764 #define DCBX_APP_SF_ETH_TYPE 0x10
1765 #define DCBX_APP_SF_PORT 0x20
1766 #elif defined(__LITTLE_ENDIAN)
1768 #define DCBX_APP_ENTRY_VALID 0x01
1769 #define DCBX_APP_ENTRY_SF_MASK 0x30
1770 #define DCBX_APP_ENTRY_SF_SHIFT 4
1771 #define DCBX_APP_SF_ETH_TYPE 0x10
1772 #define DCBX_APP_SF_PORT 0x20
1786 #elif defined(__LITTLE_ENDIAN)
1809 u8 msg_fast_tx_interval;
1813 #define LLDP_TX_ONLY 0x01
1814 #define LLDP_RX_ONLY 0x02
1815 #define LLDP_TX_RX 0x03
1816 #define LLDP_DISABLED 0x04
1821 #elif defined(__LITTLE_ENDIAN)
1823 #define LLDP_TX_ONLY 0x01
1824 #define LLDP_RX_ONLY 0x02
1825 #define LLDP_TX_RX 0x03
1826 #define LLDP_DISABLED 0x04
1829 u8 msg_fast_tx_interval;
1835 #define REM_CHASSIS_ID_STAT_LEN 4
1836 #define REM_PORT_ID_STAT_LEN 4
1844 #define LOCAL_CHASSIS_ID_STAT_LEN 2
1845 #define LOCAL_PORT_ID_STAT_LEN 2
1859 #define DCBX_ETS_CONFIG_TX_ENABLED 0x00000001
1860 #define DCBX_PFC_CONFIG_TX_ENABLED 0x00000002
1861 #define DCBX_APP_CONFIG_TX_ENABLED 0x00000004
1862 #define DCBX_ETS_RECO_TX_ENABLED 0x00000008
1863 #define DCBX_ETS_RECO_VALID 0x00000010
1864 #define DCBX_ETS_WILLING 0x00000020
1865 #define DCBX_PFC_WILLING 0x00000040
1866 #define DCBX_APP_WILLING 0x00000080
1867 #define DCBX_VERSION_CEE 0x00000100
1868 #define DCBX_VERSION_IEEE 0x00000200
1869 #define DCBX_DCBX_ENABLED 0x00000400
1870 #define DCBX_CEE_VERSION_MASK 0x0000f000
1871 #define DCBX_CEE_VERSION_SHIFT 12
1872 #define DCBX_CEE_MAX_VERSION_MASK 0x000f0000
1873 #define DCBX_CEE_MAX_VERSION_SHIFT 16
1881 #define DCBX_ETS_TLV_RX 0x00000001
1882 #define DCBX_PFC_TLV_RX 0x00000002
1883 #define DCBX_APP_TLV_RX 0x00000004
1884 #define DCBX_ETS_RX_ERROR 0x00000010
1885 #define DCBX_PFC_RX_ERROR 0x00000020
1886 #define DCBX_APP_RX_ERROR 0x00000040
1887 #define DCBX_ETS_REM_WILLING 0x00000100
1888 #define DCBX_PFC_REM_WILLING 0x00000200
1889 #define DCBX_APP_REM_WILLING 0x00000400
1890 #define DCBX_REMOTE_ETS_RECO_VALID 0x00001000
1891 #define DCBX_REMOTE_MIB_VALID 0x00002000
1901 #define DCBX_LOCAL_ETS_ERROR 0x00000001
1902 #define DCBX_LOCAL_PFC_ERROR 0x00000002
1903 #define DCBX_LOCAL_APP_ERROR 0x00000004
1904 #define DCBX_LOCAL_PFC_MISMATCH 0x00000010
1905 #define DCBX_LOCAL_APP_MISMATCH 0x00000020
1906 #define DCBX_REMOTE_MIB_ERROR 0x00000040
1907 #define DCBX_REMOTE_ETS_TLV_NOT_FOUND 0x00000080
1908 #define DCBX_REMOTE_PFC_TLV_NOT_FOUND 0x00000100
1909 #define DCBX_REMOTE_APP_TLV_NOT_FOUND 0x00000200
1918 #define SHMEM_LINK_CONFIG_SIZE 2
1921 #define REQ_DUPLEX_PHY0_MASK 0x0000ffff
1922 #define REQ_DUPLEX_PHY0_SHIFT 0
1923 #define REQ_DUPLEX_PHY1_MASK 0xffff0000
1924 #define REQ_DUPLEX_PHY1_SHIFT 16
1926 #define REQ_FLOW_CTRL_PHY0_MASK 0x0000ffff
1927 #define REQ_FLOW_CTRL_PHY0_SHIFT 0
1928 #define REQ_FLOW_CTRL_PHY1_MASK 0xffff0000
1929 #define REQ_FLOW_CTRL_PHY1_SHIFT 16
1931 #define REQ_LINE_SPD_PHY0_MASK 0x0000ffff
1932 #define REQ_LINE_SPD_PHY0_SHIFT 0
1933 #define REQ_LINE_SPD_PHY1_MASK 0xffff0000
1934 #define REQ_LINE_SPD_PHY1_SHIFT 16
1937 #define REQ_FC_AUTO_ADV_MASK 0x0000ffff
1938 #define REQ_FC_AUTO_ADV0_SHIFT 0
1939 #define NO_LFA_DUE_TO_DCC_MASK 0x00010000
1941 #define LFA_LINK_FLAP_REASON_OFFSET 0
1942 #define LFA_LINK_FLAP_REASON_MASK 0x000000ff
1943 #define LFA_LINK_DOWN 0x1
1944 #define LFA_LOOPBACK_ENABLED 0x2
1945 #define LFA_DUPLEX_MISMATCH 0x3
1946 #define LFA_MFW_IS_TOO_OLD 0x4
1947 #define LFA_LINK_SPEED_MISMATCH 0x5
1948 #define LFA_FLOW_CTRL_MISMATCH 0x6
1949 #define LFA_SPEED_CAP_MISMATCH 0x7
1950 #define LFA_DCC_LFA_DISABLED 0x8
1951 #define LFA_EEE_MISMATCH 0x9
1953 #define LINK_FLAP_AVOIDANCE_COUNT_OFFSET 8
1954 #define LINK_FLAP_AVOIDANCE_COUNT_MASK 0x0000ff00
1956 #define LINK_FLAP_COUNT_OFFSET 16
1957 #define LINK_FLAP_COUNT_MASK 0x00ff0000
1959 #define LFA_FLAGS_MASK 0xff000000
1960 #define SHMEM_LFA_DONT_CLEAR_STAT (1<<24)
1965 #define FCOE_FEATURES1_IOS_PER_CONNECTION_MASK 0x0000FFFF
1966 #define FCOE_FEATURES1_IOS_PER_CONNECTION_OFFSET 0
1968 #define FCOE_FEATURES1_LOGINS_PER_PORT_MASK 0xFFFF0000
1969 #define FCOE_FEATURES1_LOGINS_PER_PORT_OFFSET 16
1972 #define FCOE_FEATURES2_EXCHANGES_MASK 0x0000FFFF
1973 #define FCOE_FEATURES2_EXCHANGES_OFFSET 0
1975 #define FCOE_FEATURES2_NPIV_WWN_PER_PORT_MASK 0xFFFF0000
1976 #define FCOE_FEATURES2_NPIV_WWN_PER_PORT_OFFSET 16
1979 #define FCOE_FEATURES3_TARGETS_SUPPORTED_MASK 0x0000FFFF
1980 #define FCOE_FEATURES3_TARGETS_SUPPORTED_OFFSET 0
1982 #define FCOE_FEATURES3_OUTSTANDING_COMMANDS_MASK 0xFFFF0000
1983 #define FCOE_FEATURES3_OUTSTANDING_COMMANDS_OFFSET 16
1986 #define FCOE_FEATURES4_FEATURE_SETTINGS_MASK 0x0000000F
1987 #define FCOE_FEATURES4_FEATURE_SETTINGS_OFFSET 0
2000 #define SHMEM_DCC_SUPPORT_NONE 0x00000000
2001 #define SHMEM_DCC_SUPPORT_DISABLE_ENABLE_PF_TLV 0x00000001
2002 #define SHMEM_DCC_SUPPORT_BANDWIDTH_ALLOCATION_TLV 0x00000004
2003 #define SHMEM_DCC_SUPPORT_CHANGE_MAC_ADDRESS_TLV 0x00000008
2004 #define SHMEM_DCC_SUPPORT_SET_PROTOCOL_TLV 0x00000040
2005 #define SHMEM_DCC_SUPPORT_SET_PRIORITY_TLV 0x00000080
2014 #define SHMEM_MF_CFG_ADDR_NONE 0x00000000
2018 #define SHMEM_LLDP_DCBX_PARAMS_NONE 0x00000000
2020 #define SHMEM_DCBX_NEG_RES_NONE 0x00000000
2022 #define SHMEM_DCBX_REMOTE_MIB_NONE 0x00000000
2044 #define SHMEM_LLDP_DCBX_STAT_NONE 0x00000000
2056 #define EDEBUG_DRIVER_IF_OP_CODE_GET_PHYS_ADDR 1
2057 #define EDEBUG_DRIVER_IF_OP_CODE_GET_BUS_ADDR 2
2058 #define EDEBUG_DRIVER_IF_OP_CODE_DISABLE_STAT 3
2064 #define SHMEM_AFEX_VERSION_MASK 0x100f
2065 #define SHMEM_AFEX_SUPPORTED_VERSION_ONE 0x1001
2066 #define SHMEM_AFEX_REDUCED_DRV_LOADED 0x8000
2088 #define DRV_FLAGS_DCB_CONFIGURED 0x1
2101 #define SHMEM_DCBX_NEG_RES_EXT_NONE 0x00000000
2104 #define DRV_FLAGS_CAPABILITIES_LOADED_SUPPORTED 0x00000001
2105 #define DRV_FLAGS_CAPABILITIES_LOADED_L2 0x00000002
2106 #define DRV_FLAGS_CAPABILITIES_LOADED_FCOE 0x00000004
2107 #define DRV_FLAGS_CAPABILITIES_LOADED_ISCSI 0x00000008
2122 #define DRV_INFO_CONTROL_VER_MASK 0x000000ff
2123 #define DRV_INFO_CONTROL_VER_SHIFT 0
2124 #define DRV_INFO_CONTROL_OP_CODE_MASK 0x0000ff00
2125 #define DRV_INFO_CONTROL_OP_CODE_SHIFT 8
2146 #define SHMEM_EEE_TIMER_MASK 0x0000ffff
2147 #define SHMEM_EEE_SUPPORTED_MASK 0x000f0000
2148 #define SHMEM_EEE_SUPPORTED_SHIFT 16
2149 #define SHMEM_EEE_ADV_STATUS_MASK 0x00f00000
2150 #define SHMEM_EEE_100M_ADV (1<<0)
2151 #define SHMEM_EEE_1G_ADV (1<<1)
2152 #define SHMEM_EEE_10G_ADV (1<<2)
2153 #define SHMEM_EEE_ADV_STATUS_SHIFT 20
2154 #define SHMEM_EEE_LP_ADV_STATUS_MASK 0x0f000000
2155 #define SHMEM_EEE_LP_ADV_STATUS_SHIFT 24
2156 #define SHMEM_EEE_REQUESTED_BIT 0x10000000
2157 #define SHMEM_EEE_LPI_REQUESTED_BIT 0x20000000
2158 #define SHMEM_EEE_ACTIVE_BIT 0x40000000
2159 #define SHMEM_EEE_TIME_OUTPUT_BIT 0x80000000
2693 #define MAC_STX_IDX_MAX 2
2748 #define VICSTATST_UIF_INDEX 2
2791 #define BCM_5710_FW_MAJOR_VERSION 7
2792 #define BCM_5710_FW_MINOR_VERSION 8
2793 #define BCM_5710_FW_REVISION_VERSION 2
2794 #define BCM_5710_FW_ENGINEERING_VERSION 0
2795 #define BCM_5710_FW_COMPILE_FLAGS 1
2824 #define DMAE_COMMAND_SRC (0x1<<0)
2825 #define DMAE_COMMAND_SRC_SHIFT 0
2826 #define DMAE_COMMAND_DST (0x3<<1)
2827 #define DMAE_COMMAND_DST_SHIFT 1
2828 #define DMAE_COMMAND_C_DST (0x1<<3)
2829 #define DMAE_COMMAND_C_DST_SHIFT 3
2830 #define DMAE_COMMAND_C_TYPE_ENABLE (0x1<<4)
2831 #define DMAE_COMMAND_C_TYPE_ENABLE_SHIFT 4
2832 #define DMAE_COMMAND_C_TYPE_CRC_ENABLE (0x1<<5)
2833 #define DMAE_COMMAND_C_TYPE_CRC_ENABLE_SHIFT 5
2834 #define DMAE_COMMAND_C_TYPE_CRC_OFFSET (0x7<<6)
2835 #define DMAE_COMMAND_C_TYPE_CRC_OFFSET_SHIFT 6
2836 #define DMAE_COMMAND_ENDIANITY (0x3<<9)
2837 #define DMAE_COMMAND_ENDIANITY_SHIFT 9
2838 #define DMAE_COMMAND_PORT (0x1<<11)
2839 #define DMAE_COMMAND_PORT_SHIFT 11
2840 #define DMAE_COMMAND_CRC_RESET (0x1<<12)
2841 #define DMAE_COMMAND_CRC_RESET_SHIFT 12
2842 #define DMAE_COMMAND_SRC_RESET (0x1<<13)
2843 #define DMAE_COMMAND_SRC_RESET_SHIFT 13
2844 #define DMAE_COMMAND_DST_RESET (0x1<<14)
2845 #define DMAE_COMMAND_DST_RESET_SHIFT 14
2846 #define DMAE_COMMAND_E1HVN (0x3<<15)
2847 #define DMAE_COMMAND_E1HVN_SHIFT 15
2848 #define DMAE_COMMAND_DST_VN (0x3<<17)
2849 #define DMAE_COMMAND_DST_VN_SHIFT 17
2850 #define DMAE_COMMAND_C_FUNC (0x1<<19)
2851 #define DMAE_COMMAND_C_FUNC_SHIFT 19
2852 #define DMAE_COMMAND_ERR_POLICY (0x3<<20)
2853 #define DMAE_COMMAND_ERR_POLICY_SHIFT 20
2854 #define DMAE_COMMAND_RESERVED0 (0x3FF<<22)
2855 #define DMAE_COMMAND_RESERVED0_SHIFT 22
2860 #if defined(__BIG_ENDIAN)
2862 #define DMAE_COMMAND_SRC_VFID (0x3F<<0)
2863 #define DMAE_COMMAND_SRC_VFID_SHIFT 0
2864 #define DMAE_COMMAND_SRC_VFPF (0x1<<6)
2865 #define DMAE_COMMAND_SRC_VFPF_SHIFT 6
2866 #define DMAE_COMMAND_RESERVED1 (0x1<<7)
2867 #define DMAE_COMMAND_RESERVED1_SHIFT 7
2868 #define DMAE_COMMAND_DST_VFID (0x3F<<8)
2869 #define DMAE_COMMAND_DST_VFID_SHIFT 8
2870 #define DMAE_COMMAND_DST_VFPF (0x1<<14)
2871 #define DMAE_COMMAND_DST_VFPF_SHIFT 14
2872 #define DMAE_COMMAND_RESERVED2 (0x1<<15)
2873 #define DMAE_COMMAND_RESERVED2_SHIFT 15
2875 #elif defined(__LITTLE_ENDIAN)
2878 #define DMAE_COMMAND_SRC_VFID (0x3F<<0)
2879 #define DMAE_COMMAND_SRC_VFID_SHIFT 0
2880 #define DMAE_COMMAND_SRC_VFPF (0x1<<6)
2881 #define DMAE_COMMAND_SRC_VFPF_SHIFT 6
2882 #define DMAE_COMMAND_RESERVED1 (0x1<<7)
2883 #define DMAE_COMMAND_RESERVED1_SHIFT 7
2884 #define DMAE_COMMAND_DST_VFID (0x3F<<8)
2885 #define DMAE_COMMAND_DST_VFID_SHIFT 8
2886 #define DMAE_COMMAND_DST_VFPF (0x1<<14)
2887 #define DMAE_COMMAND_DST_VFPF_SHIFT 14
2888 #define DMAE_COMMAND_RESERVED2 (0x1<<15)
2889 #define DMAE_COMMAND_RESERVED2_SHIFT 15
2896 #if defined(__BIG_ENDIAN)
2899 #elif defined(__LITTLE_ENDIAN)
2903 #if defined(__BIG_ENDIAN)
2906 #elif defined(__LITTLE_ENDIAN)
2910 #if defined(__BIG_ENDIAN)
2913 #elif defined(__LITTLE_ENDIAN)
2925 #define DOORBELL_HDR_RX (0x1<<0)
2926 #define DOORBELL_HDR_RX_SHIFT 0
2927 #define DOORBELL_HDR_DB_TYPE (0x1<<1)
2928 #define DOORBELL_HDR_DB_TYPE_SHIFT 1
2929 #define DOORBELL_HDR_DPM_SIZE (0x3<<2)
2930 #define DOORBELL_HDR_DPM_SIZE_SHIFT 2
2931 #define DOORBELL_HDR_CONN_TYPE (0xF<<4)
2932 #define DOORBELL_HDR_CONN_TYPE_SHIFT 4
2939 #if defined(__BIG_ENDIAN)
2942 #define ETH_TX_DOORBELL_NUM_BDS (0x3F<<0)
2943 #define ETH_TX_DOORBELL_NUM_BDS_SHIFT 0
2944 #define ETH_TX_DOORBELL_RESERVED_TX_FIN_FLAG (0x1<<6)
2945 #define ETH_TX_DOORBELL_RESERVED_TX_FIN_FLAG_SHIFT 6
2946 #define ETH_TX_DOORBELL_SPARE (0x1<<7)
2947 #define ETH_TX_DOORBELL_SPARE_SHIFT 7
2949 #elif defined(__LITTLE_ENDIAN)
2952 #define ETH_TX_DOORBELL_NUM_BDS (0x3F<<0)
2953 #define ETH_TX_DOORBELL_NUM_BDS_SHIFT 0
2954 #define ETH_TX_DOORBELL_RESERVED_TX_FIN_FLAG (0x1<<6)
2955 #define ETH_TX_DOORBELL_RESERVED_TX_FIN_FLAG_SHIFT 6
2956 #define ETH_TX_DOORBELL_SPARE (0x1<<7)
2957 #define ETH_TX_DOORBELL_SPARE_SHIFT 7
3020 #if defined(__BIG_ENDIAN)
3021 u16 sb_id_and_flags;
3022 #define IGU_ACK_REGISTER_STATUS_BLOCK_ID (0x1F<<0)
3023 #define IGU_ACK_REGISTER_STATUS_BLOCK_ID_SHIFT 0
3024 #define IGU_ACK_REGISTER_STORM_ID (0x7<<5)
3025 #define IGU_ACK_REGISTER_STORM_ID_SHIFT 5
3026 #define IGU_ACK_REGISTER_UPDATE_INDEX (0x1<<8)
3027 #define IGU_ACK_REGISTER_UPDATE_INDEX_SHIFT 8
3028 #define IGU_ACK_REGISTER_INTERRUPT_MODE (0x3<<9)
3029 #define IGU_ACK_REGISTER_INTERRUPT_MODE_SHIFT 9
3030 #define IGU_ACK_REGISTER_RESERVED (0x1F<<11)
3031 #define IGU_ACK_REGISTER_RESERVED_SHIFT 11
3032 u16 status_block_index;
3033 #elif defined(__LITTLE_ENDIAN)
3034 u16 status_block_index;
3035 u16 sb_id_and_flags;
3036 #define IGU_ACK_REGISTER_STATUS_BLOCK_ID (0x1F<<0)
3037 #define IGU_ACK_REGISTER_STATUS_BLOCK_ID_SHIFT 0
3038 #define IGU_ACK_REGISTER_STORM_ID (0x7<<5)
3039 #define IGU_ACK_REGISTER_STORM_ID_SHIFT 5
3040 #define IGU_ACK_REGISTER_UPDATE_INDEX (0x1<<8)
3041 #define IGU_ACK_REGISTER_UPDATE_INDEX_SHIFT 8
3042 #define IGU_ACK_REGISTER_INTERRUPT_MODE (0x3<<9)
3043 #define IGU_ACK_REGISTER_INTERRUPT_MODE_SHIFT 9
3044 #define IGU_ACK_REGISTER_RESERVED (0x1F<<11)
3045 #define IGU_ACK_REGISTER_RESERVED_SHIFT 11
3055 #define IGU_BACKWARD_COMPATIBLE_SB_INDEX (0xFFFF<<0)
3056 #define IGU_BACKWARD_COMPATIBLE_SB_INDEX_SHIFT 0
3057 #define IGU_BACKWARD_COMPATIBLE_SB_SELECT (0x1F<<16)
3058 #define IGU_BACKWARD_COMPATIBLE_SB_SELECT_SHIFT 16
3059 #define IGU_BACKWARD_COMPATIBLE_SEGMENT_ACCESS (0x7<<21)
3060 #define IGU_BACKWARD_COMPATIBLE_SEGMENT_ACCESS_SHIFT 21
3061 #define IGU_BACKWARD_COMPATIBLE_BUPDATE (0x1<<24)
3062 #define IGU_BACKWARD_COMPATIBLE_BUPDATE_SHIFT 24
3063 #define IGU_BACKWARD_COMPATIBLE_ENABLE_INT (0x3<<25)
3064 #define IGU_BACKWARD_COMPATIBLE_ENABLE_INT_SHIFT 25
3065 #define IGU_BACKWARD_COMPATIBLE_RESERVED_0 (0x1F<<27)
3066 #define IGU_BACKWARD_COMPATIBLE_RESERVED_0_SHIFT 27
3076 #define IGU_REGULAR_SB_INDEX (0xFFFFF<<0)
3077 #define IGU_REGULAR_SB_INDEX_SHIFT 0
3078 #define IGU_REGULAR_RESERVED0 (0x1<<20)
3079 #define IGU_REGULAR_RESERVED0_SHIFT 20
3080 #define IGU_REGULAR_SEGMENT_ACCESS (0x7<<21)
3081 #define IGU_REGULAR_SEGMENT_ACCESS_SHIFT 21
3082 #define IGU_REGULAR_BUPDATE (0x1<<24)
3083 #define IGU_REGULAR_BUPDATE_SHIFT 24
3084 #define IGU_REGULAR_ENABLE_INT (0x3<<25)
3085 #define IGU_REGULAR_ENABLE_INT_SHIFT 25
3086 #define IGU_REGULAR_RESERVED_1 (0x1<<27)
3087 #define IGU_REGULAR_RESERVED_1_SHIFT 27
3088 #define IGU_REGULAR_CLEANUP_TYPE (0x3<<28)
3089 #define IGU_REGULAR_CLEANUP_TYPE_SHIFT 28
3090 #define IGU_REGULAR_CLEANUP_SET (0x1<<30)
3091 #define IGU_REGULAR_CLEANUP_SET_SHIFT 30
3092 #define IGU_REGULAR_BCLEANUP (0x1<<31)
3093 #define IGU_REGULAR_BCLEANUP_SHIFT 31
3121 #define IGU_CTRL_REG_ADDRESS (0xFFF<<0)
3122 #define IGU_CTRL_REG_ADDRESS_SHIFT 0
3123 #define IGU_CTRL_REG_FID (0x7F<<12)
3124 #define IGU_CTRL_REG_FID_SHIFT 12
3125 #define IGU_CTRL_REG_RESERVED (0x1<<19)
3126 #define IGU_CTRL_REG_RESERVED_SHIFT 19
3127 #define IGU_CTRL_REG_TYPE (0x1<<20)
3128 #define IGU_CTRL_REG_TYPE_SHIFT 20
3129 #define IGU_CTRL_REG_UNUSED (0x7FF<<21)
3130 #define IGU_CTRL_REG_UNUSED_SHIFT 21
3162 #define PARSING_FLAGS_ETHERNET_ADDRESS_TYPE (0x1<<0)
3163 #define PARSING_FLAGS_ETHERNET_ADDRESS_TYPE_SHIFT 0
3164 #define PARSING_FLAGS_VLAN (0x1<<1)
3165 #define PARSING_FLAGS_VLAN_SHIFT 1
3166 #define PARSING_FLAGS_EXTRA_VLAN (0x1<<2)
3167 #define PARSING_FLAGS_EXTRA_VLAN_SHIFT 2
3168 #define PARSING_FLAGS_OVER_ETHERNET_PROTOCOL (0x3<<3)
3169 #define PARSING_FLAGS_OVER_ETHERNET_PROTOCOL_SHIFT 3
3170 #define PARSING_FLAGS_IP_OPTIONS (0x1<<5)
3171 #define PARSING_FLAGS_IP_OPTIONS_SHIFT 5
3172 #define PARSING_FLAGS_FRAGMENTATION_STATUS (0x1<<6)
3173 #define PARSING_FLAGS_FRAGMENTATION_STATUS_SHIFT 6
3174 #define PARSING_FLAGS_OVER_IP_PROTOCOL (0x3<<7)
3175 #define PARSING_FLAGS_OVER_IP_PROTOCOL_SHIFT 7
3176 #define PARSING_FLAGS_PURE_ACK_INDICATION (0x1<<9)
3177 #define PARSING_FLAGS_PURE_ACK_INDICATION_SHIFT 9
3178 #define PARSING_FLAGS_TCP_OPTIONS_EXIST (0x1<<10)
3179 #define PARSING_FLAGS_TCP_OPTIONS_EXIST_SHIFT 10
3180 #define PARSING_FLAGS_TIME_STAMP_EXIST_FLAG (0x1<<11)
3181 #define PARSING_FLAGS_TIME_STAMP_EXIST_FLAG_SHIFT 11
3182 #define PARSING_FLAGS_CONNECTION_MATCH (0x1<<12)
3183 #define PARSING_FLAGS_CONNECTION_MATCH_SHIFT 12
3184 #define PARSING_FLAGS_LLC_SNAP (0x1<<13)
3185 #define PARSING_FLAGS_LLC_SNAP_SHIFT 13
3186 #define PARSING_FLAGS_RESERVED0 (0x3<<14)
3187 #define PARSING_FLAGS_RESERVED0_SHIFT 14
3239 #define SDM_OP_GEN_COMP_PARAM (0x1F<<0)
3240 #define SDM_OP_GEN_COMP_PARAM_SHIFT 0
3241 #define SDM_OP_GEN_COMP_TYPE (0x7<<5)
3242 #define SDM_OP_GEN_COMP_TYPE_SHIFT 5
3243 #define SDM_OP_GEN_AGG_VECT_IDX (0xFF<<8)
3244 #define SDM_OP_GEN_AGG_VECT_IDX_SHIFT 8
3245 #define SDM_OP_GEN_AGG_VECT_IDX_VALID (0x1<<16)
3246 #define SDM_OP_GEN_AGG_VECT_IDX_VALID_SHIFT 16
3247 #define SDM_OP_GEN_RESERVED (0x7FFF<<17)
3248 #define SDM_OP_GEN_RESERVED_SHIFT 17
3260 #define __TIMERS_BLOCK_CONTEXT_NUM_OF_ACTIVE_TIMERS (0x3<<0)
3261 #define __TIMERS_BLOCK_CONTEXT_NUM_OF_ACTIVE_TIMERS_SHIFT 0
3262 #define TIMERS_BLOCK_CONTEXT_CONN_VALID_FLG (0x1<<2)
3263 #define TIMERS_BLOCK_CONTEXT_CONN_VALID_FLG_SHIFT 2
3264 #define __TIMERS_BLOCK_CONTEXT_RESERVED0 (0x1FFFFFFF<<3)
3265 #define __TIMERS_BLOCK_CONTEXT_RESERVED0_SHIFT 3
3282 #if defined(__BIG_ENDIAN)
3286 #elif defined(__LITTLE_ENDIAN)
3300 #if defined(__BIG_ENDIAN)
3304 #elif defined(__LITTLE_ENDIAN)
3317 #if defined(__BIG_ENDIAN)
3321 #elif defined(__LITTLE_ENDIAN)
3333 #if defined(__BIG_ENDIAN)
3337 #elif defined(__LITTLE_ENDIAN)
3354 enum classify_rule {
3365 enum classify_rule_action_type {
3396 #define CLIENT_INIT_RX_DATA_TPA_EN_IPV4 (0x1<<0)
3397 #define CLIENT_INIT_RX_DATA_TPA_EN_IPV4_SHIFT 0
3398 #define CLIENT_INIT_RX_DATA_TPA_EN_IPV6 (0x1<<1)
3399 #define CLIENT_INIT_RX_DATA_TPA_EN_IPV6_SHIFT 1
3400 #define CLIENT_INIT_RX_DATA_TPA_MODE (0x1<<2)
3401 #define CLIENT_INIT_RX_DATA_TPA_MODE_SHIFT 2
3402 #define CLIENT_INIT_RX_DATA_RESERVED5 (0x1F<<3)
3403 #define CLIENT_INIT_RX_DATA_RESERVED5_SHIFT 3
3432 #define CLIENT_INIT_RX_DATA_UCAST_DROP_ALL (0x1<<0)
3433 #define CLIENT_INIT_RX_DATA_UCAST_DROP_ALL_SHIFT 0
3434 #define CLIENT_INIT_RX_DATA_UCAST_ACCEPT_ALL (0x1<<1)
3435 #define CLIENT_INIT_RX_DATA_UCAST_ACCEPT_ALL_SHIFT 1
3436 #define CLIENT_INIT_RX_DATA_UCAST_ACCEPT_UNMATCHED (0x1<<2)
3437 #define CLIENT_INIT_RX_DATA_UCAST_ACCEPT_UNMATCHED_SHIFT 2
3438 #define CLIENT_INIT_RX_DATA_MCAST_DROP_ALL (0x1<<3)
3439 #define CLIENT_INIT_RX_DATA_MCAST_DROP_ALL_SHIFT 3
3440 #define CLIENT_INIT_RX_DATA_MCAST_ACCEPT_ALL (0x1<<4)
3441 #define CLIENT_INIT_RX_DATA_MCAST_ACCEPT_ALL_SHIFT 4
3442 #define CLIENT_INIT_RX_DATA_BCAST_ACCEPT_ALL (0x1<<5)
3443 #define CLIENT_INIT_RX_DATA_BCAST_ACCEPT_ALL_SHIFT 5
3444 #define CLIENT_INIT_RX_DATA_ACCEPT_ANY_VLAN (0x1<<6)
3445 #define CLIENT_INIT_RX_DATA_ACCEPT_ANY_VLAN_SHIFT 6
3446 #define CLIENT_INIT_RX_DATA_RESERVED2 (0x1FF<<7)
3447 #define CLIENT_INIT_RX_DATA_RESERVED2_SHIFT 7
3473 #define CLIENT_INIT_TX_DATA_UCAST_ACCEPT_ALL (0x1<<0)
3474 #define CLIENT_INIT_TX_DATA_UCAST_ACCEPT_ALL_SHIFT 0
3475 #define CLIENT_INIT_TX_DATA_MCAST_ACCEPT_ALL (0x1<<1)
3476 #define CLIENT_INIT_TX_DATA_MCAST_ACCEPT_ALL_SHIFT 1
3477 #define CLIENT_INIT_TX_DATA_BCAST_ACCEPT_ALL (0x1<<2)
3478 #define CLIENT_INIT_TX_DATA_BCAST_ACCEPT_ALL_SHIFT 2
3479 #define CLIENT_INIT_TX_DATA_ACCEPT_ANY_VLAN (0x1<<3)
3480 #define CLIENT_INIT_TX_DATA_ACCEPT_ANY_VLAN_SHIFT 3
3481 #define CLIENT_INIT_TX_DATA_RESERVED1 (0xFFF<<4)
3482 #define CLIENT_INIT_TX_DATA_RESERVED1_SHIFT 4
3556 #define ETH_CLASSIFY_CMD_HEADER_RX_CMD (0x1<<0)
3557 #define ETH_CLASSIFY_CMD_HEADER_RX_CMD_SHIFT 0
3558 #define ETH_CLASSIFY_CMD_HEADER_TX_CMD (0x1<<1)
3559 #define ETH_CLASSIFY_CMD_HEADER_TX_CMD_SHIFT 1
3560 #define ETH_CLASSIFY_CMD_HEADER_OPCODE (0x3<<2)
3561 #define ETH_CLASSIFY_CMD_HEADER_OPCODE_SHIFT 2
3562 #define ETH_CLASSIFY_CMD_HEADER_IS_ADD (0x1<<4)
3563 #define ETH_CLASSIFY_CMD_HEADER_IS_ADD_SHIFT 4
3564 #define ETH_CLASSIFY_CMD_HEADER_RESERVED0 (0x7<<5)
3565 #define ETH_CLASSIFY_CMD_HEADER_RESERVED0_SHIFT 5
3697 #define ETH_END_AGG_RX_CQE_TYPE (0x3<<0)
3698 #define ETH_END_AGG_RX_CQE_TYPE_SHIFT 0
3699 #define ETH_END_AGG_RX_CQE_SGL_RAW_SEL (0x1<<2)
3700 #define ETH_END_AGG_RX_CQE_SGL_RAW_SEL_SHIFT 2
3701 #define ETH_END_AGG_RX_CQE_RESERVED0 (0x1F<<3)
3702 #define ETH_END_AGG_RX_CQE_RESERVED0_SHIFT 3
3722 #define ETH_FAST_PATH_RX_CQE_TYPE (0x3<<0)
3723 #define ETH_FAST_PATH_RX_CQE_TYPE_SHIFT 0
3724 #define ETH_FAST_PATH_RX_CQE_SGL_RAW_SEL (0x1<<2)
3725 #define ETH_FAST_PATH_RX_CQE_SGL_RAW_SEL_SHIFT 2
3726 #define ETH_FAST_PATH_RX_CQE_PHY_DECODE_ERR_FLG (0x1<<3)
3727 #define ETH_FAST_PATH_RX_CQE_PHY_DECODE_ERR_FLG_SHIFT 3
3728 #define ETH_FAST_PATH_RX_CQE_IP_BAD_XSUM_FLG (0x1<<4)
3729 #define ETH_FAST_PATH_RX_CQE_IP_BAD_XSUM_FLG_SHIFT 4
3730 #define ETH_FAST_PATH_RX_CQE_L4_BAD_XSUM_FLG (0x1<<5)
3731 #define ETH_FAST_PATH_RX_CQE_L4_BAD_XSUM_FLG_SHIFT 5
3732 #define ETH_FAST_PATH_RX_CQE_RESERVED0 (0x3<<6)
3733 #define ETH_FAST_PATH_RX_CQE_RESERVED0_SHIFT 6
3735 #define ETH_FAST_PATH_RX_CQE_RSS_HASH_TYPE (0x7<<0)
3736 #define ETH_FAST_PATH_RX_CQE_RSS_HASH_TYPE_SHIFT 0
3737 #define ETH_FAST_PATH_RX_CQE_RSS_HASH_FLG (0x1<<3)
3738 #define ETH_FAST_PATH_RX_CQE_RSS_HASH_FLG_SHIFT 3
3739 #define ETH_FAST_PATH_RX_CQE_BROADCAST_FLG (0x1<<4)
3740 #define ETH_FAST_PATH_RX_CQE_BROADCAST_FLG_SHIFT 4
3741 #define ETH_FAST_PATH_RX_CQE_MAC_MATCH_FLG (0x1<<5)
3742 #define ETH_FAST_PATH_RX_CQE_MAC_MATCH_FLG_SHIFT 5
3743 #define ETH_FAST_PATH_RX_CQE_IP_XSUM_NO_VALIDATION_FLG (0x1<<6)
3744 #define ETH_FAST_PATH_RX_CQE_IP_XSUM_NO_VALIDATION_FLG_SHIFT 6
3745 #define ETH_FAST_PATH_RX_CQE_L4_XSUM_NO_VALIDATION_FLG (0x1<<7)
3746 #define ETH_FAST_PATH_RX_CQE_L4_XSUM_NO_VALIDATION_FLG_SHIFT 7
3764 #define ETH_FILTER_RULES_CMD_RX_CMD (0x1<<0)
3765 #define ETH_FILTER_RULES_CMD_RX_CMD_SHIFT 0
3766 #define ETH_FILTER_RULES_CMD_TX_CMD (0x1<<1)
3767 #define ETH_FILTER_RULES_CMD_TX_CMD_SHIFT 1
3768 #define ETH_FILTER_RULES_CMD_RESERVED0 (0x3F<<2)
3769 #define ETH_FILTER_RULES_CMD_RESERVED0_SHIFT 2
3774 #define ETH_FILTER_RULES_CMD_UCAST_DROP_ALL (0x1<<0)
3775 #define ETH_FILTER_RULES_CMD_UCAST_DROP_ALL_SHIFT 0
3776 #define ETH_FILTER_RULES_CMD_UCAST_ACCEPT_ALL (0x1<<1)
3777 #define ETH_FILTER_RULES_CMD_UCAST_ACCEPT_ALL_SHIFT 1
3778 #define ETH_FILTER_RULES_CMD_UCAST_ACCEPT_UNMATCHED (0x1<<2)
3779 #define ETH_FILTER_RULES_CMD_UCAST_ACCEPT_UNMATCHED_SHIFT 2
3780 #define ETH_FILTER_RULES_CMD_MCAST_DROP_ALL (0x1<<3)
3781 #define ETH_FILTER_RULES_CMD_MCAST_DROP_ALL_SHIFT 3
3782 #define ETH_FILTER_RULES_CMD_MCAST_ACCEPT_ALL (0x1<<4)
3783 #define ETH_FILTER_RULES_CMD_MCAST_ACCEPT_ALL_SHIFT 4
3784 #define ETH_FILTER_RULES_CMD_BCAST_ACCEPT_ALL (0x1<<5)
3785 #define ETH_FILTER_RULES_CMD_BCAST_ACCEPT_ALL_SHIFT 5
3786 #define ETH_FILTER_RULES_CMD_ACCEPT_ANY_VLAN (0x1<<6)
3787 #define ETH_FILTER_RULES_CMD_ACCEPT_ANY_VLAN_SHIFT 6
3788 #define ETH_FILTER_RULES_CMD_RESERVED2 (0x1FF<<7)
3789 #define ETH_FILTER_RULES_CMD_RESERVED2_SHIFT 7
3827 #define ETH_MULTICAST_RULES_CMD_RX_CMD (0x1<<0)
3828 #define ETH_MULTICAST_RULES_CMD_RX_CMD_SHIFT 0
3829 #define ETH_MULTICAST_RULES_CMD_TX_CMD (0x1<<1)
3830 #define ETH_MULTICAST_RULES_CMD_TX_CMD_SHIFT 1
3831 #define ETH_MULTICAST_RULES_CMD_IS_ADD (0x1<<2)
3832 #define ETH_MULTICAST_RULES_CMD_IS_ADD_SHIFT 2
3833 #define ETH_MULTICAST_RULES_CMD_RESERVED0 (0x1F<<3)
3834 #define ETH_MULTICAST_RULES_CMD_RESERVED0_SHIFT 3
3903 #define ETH_RSS_UPDATE_RAMROD_DATA_IPV4_CAPABILITY (0x1<<0)
3904 #define ETH_RSS_UPDATE_RAMROD_DATA_IPV4_CAPABILITY_SHIFT 0
3905 #define ETH_RSS_UPDATE_RAMROD_DATA_IPV4_TCP_CAPABILITY (0x1<<1)
3906 #define ETH_RSS_UPDATE_RAMROD_DATA_IPV4_TCP_CAPABILITY_SHIFT 1
3907 #define ETH_RSS_UPDATE_RAMROD_DATA_IPV4_UDP_CAPABILITY (0x1<<2)
3908 #define ETH_RSS_UPDATE_RAMROD_DATA_IPV4_UDP_CAPABILITY_SHIFT 2
3909 #define ETH_RSS_UPDATE_RAMROD_DATA_IPV6_CAPABILITY (0x1<<3)
3910 #define ETH_RSS_UPDATE_RAMROD_DATA_IPV6_CAPABILITY_SHIFT 3
3911 #define ETH_RSS_UPDATE_RAMROD_DATA_IPV6_TCP_CAPABILITY (0x1<<4)
3912 #define ETH_RSS_UPDATE_RAMROD_DATA_IPV6_TCP_CAPABILITY_SHIFT 4
3913 #define ETH_RSS_UPDATE_RAMROD_DATA_IPV6_UDP_CAPABILITY (0x1<<5)
3914 #define ETH_RSS_UPDATE_RAMROD_DATA_IPV6_UDP_CAPABILITY_SHIFT 5
3915 #define ETH_RSS_UPDATE_RAMROD_DATA_UPDATE_RSS_KEY (0x1<<7)
3916 #define ETH_RSS_UPDATE_RAMROD_DATA_UPDATE_RSS_KEY_SHIFT 7
3941 #define COMMON_RAMROD_ETH_RX_CQE_TYPE (0x3<<0)
3942 #define COMMON_RAMROD_ETH_RX_CQE_TYPE_SHIFT 0
3943 #define COMMON_RAMROD_ETH_RX_CQE_ERROR (0x1<<2)
3944 #define COMMON_RAMROD_ETH_RX_CQE_ERROR_SHIFT 2
3945 #define COMMON_RAMROD_ETH_RX_CQE_RESERVED0 (0x1F<<3)
3946 #define COMMON_RAMROD_ETH_RX_CQE_RESERVED0_SHIFT 3
3950 #define COMMON_RAMROD_ETH_RX_CQE_CID (0xFFFFFF<<0)
3951 #define COMMON_RAMROD_ETH_RX_CQE_CID_SHIFT 0
3952 #define COMMON_RAMROD_ETH_RX_CQE_CMD_ID (0xFF<<24)
3953 #define COMMON_RAMROD_ETH_RX_CQE_CMD_ID_SHIFT 24
4015 #define SPE_HDR_CID (0xFFFFFF<<0)
4016 #define SPE_HDR_CID_SHIFT 0
4017 #define SPE_HDR_CMD_ID (0xFF<<24)
4018 #define SPE_HDR_CMD_ID_SHIFT 24
4020 #define SPE_HDR_CONN_TYPE (0xFF<<0)
4021 #define SPE_HDR_CONN_TYPE_SHIFT 0
4022 #define SPE_HDR_FUNCTION_ID (0xFF<<8)
4023 #define SPE_HDR_FUNCTION_ID_SHIFT 8
4101 #define ETH_TX_BD_FLAGS_IP_CSUM (0x1<<0)
4102 #define ETH_TX_BD_FLAGS_IP_CSUM_SHIFT 0
4103 #define ETH_TX_BD_FLAGS_L4_CSUM (0x1<<1)
4104 #define ETH_TX_BD_FLAGS_L4_CSUM_SHIFT 1
4105 #define ETH_TX_BD_FLAGS_VLAN_MODE (0x3<<2)
4106 #define ETH_TX_BD_FLAGS_VLAN_MODE_SHIFT 2
4107 #define ETH_TX_BD_FLAGS_START_BD (0x1<<4)
4108 #define ETH_TX_BD_FLAGS_START_BD_SHIFT 4
4109 #define ETH_TX_BD_FLAGS_IS_UDP (0x1<<5)
4110 #define ETH_TX_BD_FLAGS_IS_UDP_SHIFT 5
4111 #define ETH_TX_BD_FLAGS_SW_LSO (0x1<<6)
4112 #define ETH_TX_BD_FLAGS_SW_LSO_SHIFT 6
4113 #define ETH_TX_BD_FLAGS_IPV6 (0x1<<7)
4114 #define ETH_TX_BD_FLAGS_IPV6_SHIFT 7
4128 #define ETH_TX_START_BD_HDR_NBDS (0xF<<0)
4129 #define ETH_TX_START_BD_HDR_NBDS_SHIFT 0
4130 #define ETH_TX_START_BD_FORCE_VLAN_MODE (0x1<<4)
4131 #define ETH_TX_START_BD_FORCE_VLAN_MODE_SHIFT 4
4132 #define ETH_TX_START_BD_PARSE_NBDS (0x3<<5)
4133 #define ETH_TX_START_BD_PARSE_NBDS_SHIFT 5
4134 #define ETH_TX_START_BD_RESREVED (0x1<<7)
4135 #define ETH_TX_START_BD_RESREVED_SHIFT 7
4143 #define ETH_TX_PARSE_BD_E1X_IP_HDR_START_OFFSET_W (0xF<<0)
4144 #define ETH_TX_PARSE_BD_E1X_IP_HDR_START_OFFSET_W_SHIFT 0
4145 #define ETH_TX_PARSE_BD_E1X_ETH_ADDR_TYPE (0x3<<4)
4146 #define ETH_TX_PARSE_BD_E1X_ETH_ADDR_TYPE_SHIFT 4
4147 #define ETH_TX_PARSE_BD_E1X_PSEUDO_CS_WITHOUT_LEN (0x1<<6)
4148 #define ETH_TX_PARSE_BD_E1X_PSEUDO_CS_WITHOUT_LEN_SHIFT 6
4149 #define ETH_TX_PARSE_BD_E1X_LLC_SNAP_EN (0x1<<7)
4150 #define ETH_TX_PARSE_BD_E1X_LLC_SNAP_EN_SHIFT 7
4151 #define ETH_TX_PARSE_BD_E1X_NS_FLG (0x1<<8)
4152 #define ETH_TX_PARSE_BD_E1X_NS_FLG_SHIFT 8
4153 #define ETH_TX_PARSE_BD_E1X_RESERVED0 (0x7F<<9)
4154 #define ETH_TX_PARSE_BD_E1X_RESERVED0_SHIFT 9
4156 #define ETH_TX_PARSE_BD_E1X_FIN_FLG (0x1<<0)
4157 #define ETH_TX_PARSE_BD_E1X_FIN_FLG_SHIFT 0
4158 #define ETH_TX_PARSE_BD_E1X_SYN_FLG (0x1<<1)
4159 #define ETH_TX_PARSE_BD_E1X_SYN_FLG_SHIFT 1
4160 #define ETH_TX_PARSE_BD_E1X_RST_FLG (0x1<<2)
4161 #define ETH_TX_PARSE_BD_E1X_RST_FLG_SHIFT 2
4162 #define ETH_TX_PARSE_BD_E1X_PSH_FLG (0x1<<3)
4163 #define ETH_TX_PARSE_BD_E1X_PSH_FLG_SHIFT 3
4164 #define ETH_TX_PARSE_BD_E1X_ACK_FLG (0x1<<4)
4165 #define ETH_TX_PARSE_BD_E1X_ACK_FLG_SHIFT 4
4166 #define ETH_TX_PARSE_BD_E1X_URG_FLG (0x1<<5)
4167 #define ETH_TX_PARSE_BD_E1X_URG_FLG_SHIFT 5
4168 #define ETH_TX_PARSE_BD_E1X_ECE_FLG (0x1<<6)
4169 #define ETH_TX_PARSE_BD_E1X_ECE_FLG_SHIFT 6
4170 #define ETH_TX_PARSE_BD_E1X_CWR_FLG (0x1<<7)
4171 #define ETH_TX_PARSE_BD_E1X_CWR_FLG_SHIFT 7
4191 #define ETH_TX_PARSE_BD_E2_TCP_HDR_START_OFFSET_W (0x7FF<<0)
4192 #define ETH_TX_PARSE_BD_E2_TCP_HDR_START_OFFSET_W_SHIFT 0
4193 #define ETH_TX_PARSE_BD_E2_TCP_HDR_LENGTH_DW (0xF<<11)
4194 #define ETH_TX_PARSE_BD_E2_TCP_HDR_LENGTH_DW_SHIFT 11
4195 #define ETH_TX_PARSE_BD_E2_IPV6_WITH_EXT_HDR (0x1<<15)
4196 #define ETH_TX_PARSE_BD_E2_IPV6_WITH_EXT_HDR_SHIFT 15
4197 #define ETH_TX_PARSE_BD_E2_LSO_MSS (0x3FFF<<16)
4198 #define ETH_TX_PARSE_BD_E2_LSO_MSS_SHIFT 16
4199 #define ETH_TX_PARSE_BD_E2_ETH_ADDR_TYPE (0x3<<30)
4200 #define ETH_TX_PARSE_BD_E2_ETH_ADDR_TYPE_SHIFT 30
4274 #define MAC_CONFIGURATION_ENTRY_ACTION_TYPE (0x1<<0)
4275 #define MAC_CONFIGURATION_ENTRY_ACTION_TYPE_SHIFT 0
4276 #define MAC_CONFIGURATION_ENTRY_RDMA_MAC (0x1<<1)
4277 #define MAC_CONFIGURATION_ENTRY_RDMA_MAC_SHIFT 1
4278 #define MAC_CONFIGURATION_ENTRY_VLAN_FILTERING_MODE (0x3<<2)
4279 #define MAC_CONFIGURATION_ENTRY_VLAN_FILTERING_MODE_SHIFT 2
4280 #define MAC_CONFIGURATION_ENTRY_OVERRIDE_VLAN_REMOVAL (0x1<<4)
4281 #define MAC_CONFIGURATION_ENTRY_OVERRIDE_VLAN_REMOVAL_SHIFT 4
4282 #define MAC_CONFIGURATION_ENTRY_BROADCAST (0x1<<5)
4283 #define MAC_CONFIGURATION_ENTRY_BROADCAST_SHIFT 5
4284 #define MAC_CONFIGURATION_ENTRY_RESERVED1 (0x3<<6)
4285 #define MAC_CONFIGURATION_ENTRY_RESERVED1_SHIFT 6
4352 #define TSTORM_ETH_FUNCTION_COMMON_CONFIG_RSS_IPV4_CAPABILITY (0x1<<0)
4353 #define TSTORM_ETH_FUNCTION_COMMON_CONFIG_RSS_IPV4_CAPABILITY_SHIFT 0
4354 #define TSTORM_ETH_FUNCTION_COMMON_CONFIG_RSS_IPV4_TCP_CAPABILITY (0x1<<1)
4355 #define TSTORM_ETH_FUNCTION_COMMON_CONFIG_RSS_IPV4_TCP_CAPABILITY_SHIFT 1
4356 #define TSTORM_ETH_FUNCTION_COMMON_CONFIG_RSS_IPV6_CAPABILITY (0x1<<2)
4357 #define TSTORM_ETH_FUNCTION_COMMON_CONFIG_RSS_IPV6_CAPABILITY_SHIFT 2
4358 #define TSTORM_ETH_FUNCTION_COMMON_CONFIG_RSS_IPV6_TCP_CAPABILITY (0x1<<3)
4359 #define TSTORM_ETH_FUNCTION_COMMON_CONFIG_RSS_IPV6_TCP_CAPABILITY_SHIFT 3
4360 #define TSTORM_ETH_FUNCTION_COMMON_CONFIG_RSS_MODE (0x7<<4)
4361 #define TSTORM_ETH_FUNCTION_COMMON_CONFIG_RSS_MODE_SHIFT 4
4362 #define TSTORM_ETH_FUNCTION_COMMON_CONFIG_VLAN_FILTERING_ENABLE (0x1<<7)
4363 #define TSTORM_ETH_FUNCTION_COMMON_CONFIG_VLAN_FILTERING_ENABLE_SHIFT 7
4364 #define __TSTORM_ETH_FUNCTION_COMMON_CONFIG_RESERVED0 (0xFF<<8)
4365 #define __TSTORM_ETH_FUNCTION_COMMON_CONFIG_RESERVED0_SHIFT 8
4399 #if defined(__BIG_ENDIAN)
4402 #elif defined(__LITTLE_ENDIAN)
4406 #if defined(__BIG_ENDIAN)
4409 #elif defined(__LITTLE_ENDIAN)
4498 #define CMNG_FLAGS_PER_PORT_FAIRNESS_VN (0x1<<0)
4499 #define CMNG_FLAGS_PER_PORT_FAIRNESS_VN_SHIFT 0
4500 #define CMNG_FLAGS_PER_PORT_RATE_SHAPING_VN (0x1<<1)
4501 #define CMNG_FLAGS_PER_PORT_RATE_SHAPING_VN_SHIFT 1
4502 #define CMNG_FLAGS_PER_PORT_FAIRNESS_COS (0x1<<2)
4503 #define CMNG_FLAGS_PER_PORT_FAIRNESS_COS_SHIFT 2
4504 #define CMNG_FLAGS_PER_PORT_FAIRNESS_COS_MODE (0x1<<3)
4505 #define CMNG_FLAGS_PER_PORT_FAIRNESS_COS_MODE_SHIFT 3
4506 #define __CMNG_FLAGS_PER_PORT_RESERVED0 (0xFFFFFFF<<4)
4507 #define __CMNG_FLAGS_PER_PORT_RESERVED0_SHIFT 4
4534 #if defined(__BIG_ENDIAN)
4537 u8 safc_timeout_usec;
4538 #elif defined(__LITTLE_ENDIAN)
4539 u8 safc_timeout_usec;
4562 #if defined(__BIG_ENDIAN)
4565 #elif defined(__LITTLE_ENDIAN)
4705 #if defined(__BIG_ENDIAN)
4709 #elif defined(__LITTLE_ENDIAN)
4747 #if defined(__BIG_ENDIAN)
4749 #define E2_INTEG_DATA_TESTING_EN (0x1<<0)
4750 #define E2_INTEG_DATA_TESTING_EN_SHIFT 0
4751 #define E2_INTEG_DATA_LB_TX (0x1<<1)
4752 #define E2_INTEG_DATA_LB_TX_SHIFT 1
4753 #define E2_INTEG_DATA_COS_TX (0x1<<2)
4754 #define E2_INTEG_DATA_COS_TX_SHIFT 2
4755 #define E2_INTEG_DATA_OPPORTUNISTICQM (0x1<<3)
4756 #define E2_INTEG_DATA_OPPORTUNISTICQM_SHIFT 3
4757 #define E2_INTEG_DATA_DPMTESTRELEASEDQ (0x1<<4)
4758 #define E2_INTEG_DATA_DPMTESTRELEASEDQ_SHIFT 4
4759 #define E2_INTEG_DATA_RESERVED (0x7<<5)
4760 #define E2_INTEG_DATA_RESERVED_SHIFT 5
4764 #elif defined(__LITTLE_ENDIAN)
4769 #define E2_INTEG_DATA_TESTING_EN (0x1<<0)
4770 #define E2_INTEG_DATA_TESTING_EN_SHIFT 0
4771 #define E2_INTEG_DATA_LB_TX (0x1<<1)
4772 #define E2_INTEG_DATA_LB_TX_SHIFT 1
4773 #define E2_INTEG_DATA_COS_TX (0x1<<2)
4774 #define E2_INTEG_DATA_COS_TX_SHIFT 2
4775 #define E2_INTEG_DATA_OPPORTUNISTICQM (0x1<<3)
4776 #define E2_INTEG_DATA_OPPORTUNISTICQM_SHIFT 3
4777 #define E2_INTEG_DATA_DPMTESTRELEASEDQ (0x1<<4)
4778 #define E2_INTEG_DATA_DPMTESTRELEASEDQ_SHIFT 4
4779 #define E2_INTEG_DATA_RESERVED (0x7<<5)
4780 #define E2_INTEG_DATA_RESERVED_SHIFT 5
4782 #if defined(__BIG_ENDIAN)
4786 #elif defined(__LITTLE_ENDIAN)
4866 #if defined(__BIG_ENDIAN)
4870 #elif defined(__LITTLE_ENDIAN)
4996 #if defined(__BIG_ENDIAN)
5001 #elif defined(__LITTLE_ENDIAN)
5008 #define FW_VERSION_OPTIMIZED (0x1<<0)
5009 #define FW_VERSION_OPTIMIZED_SHIFT 0
5010 #define FW_VERSION_BIG_ENDIEN (0x1<<1)
5011 #define FW_VERSION_BIG_ENDIEN_SHIFT 1
5012 #define FW_VERSION_CHIP_VERSION (0x3<<2)
5013 #define FW_VERSION_CHIP_VERSION_SHIFT 2
5014 #define __FW_VERSION_RESERVED (0xFFFFFFF<<4)
5015 #define __FW_VERSION_RESERVED_SHIFT 4
5031 #if defined(__BIG_ENDIAN)
5033 #define HC_INDEX_DATA_SM_ID (0x1<<0)
5034 #define HC_INDEX_DATA_SM_ID_SHIFT 0
5035 #define HC_INDEX_DATA_HC_ENABLED (0x1<<1)
5036 #define HC_INDEX_DATA_HC_ENABLED_SHIFT 1
5037 #define HC_INDEX_DATA_DYNAMIC_HC_ENABLED (0x1<<2)
5038 #define HC_INDEX_DATA_DYNAMIC_HC_ENABLED_SHIFT 2
5039 #define HC_INDEX_DATA_RESERVE (0x1F<<3)
5040 #define HC_INDEX_DATA_RESERVE_SHIFT 3
5042 #elif defined(__LITTLE_ENDIAN)
5045 #define HC_INDEX_DATA_SM_ID (0x1<<0)
5046 #define HC_INDEX_DATA_SM_ID_SHIFT 0
5047 #define HC_INDEX_DATA_HC_ENABLED (0x1<<1)
5048 #define HC_INDEX_DATA_HC_ENABLED_SHIFT 1
5049 #define HC_INDEX_DATA_DYNAMIC_HC_ENABLED (0x1<<2)
5050 #define HC_INDEX_DATA_DYNAMIC_HC_ENABLED_SHIFT 2
5051 #define HC_INDEX_DATA_RESERVE (0x1F<<3)
5052 #define HC_INDEX_DATA_RESERVE_SHIFT 3
5061 #if defined(__BIG_ENDIAN)
5066 #elif defined(__LITTLE_ENDIAN)
5079 #if defined(__BIG_ENDIAN)
5084 #elif defined(__LITTLE_ENDIAN)
5099 #if defined(__BIG_ENDIAN)
5104 #elif defined(__LITTLE_ENDIAN)
5129 #if defined(__BIG_ENDIAN)
5134 #elif defined(__LITTLE_ENDIAN)
5294 #define PRAM_FW_VERSION_OPTIMIZED (0x1<<0)
5295 #define PRAM_FW_VERSION_OPTIMIZED_SHIFT 0
5296 #define PRAM_FW_VERSION_STORM_ID (0x3<<1)
5297 #define PRAM_FW_VERSION_STORM_ID_SHIFT 1
5298 #define PRAM_FW_VERSION_BIG_ENDIEN (0x1<<3)
5299 #define PRAM_FW_VERSION_BIG_ENDIEN_SHIFT 3
5300 #define PRAM_FW_VERSION_CHIP_VERSION (0x3<<4)
5301 #define PRAM_FW_VERSION_CHIP_VERSION_SHIFT 4
5302 #define __PRAM_FW_VERSION_RESERVED0 (0x3<<6)
5303 #define __PRAM_FW_VERSION_RESERVED0_SHIFT 6
5470 #if defined(__BIG_ENDIAN)
5474 #elif defined(__LITTLE_ENDIAN)