2 * Copyright (c) 2016 QLogic Corporation.
6 * See LICENSE.qede_pmd for copyright and licensing details.
9 /****************************************************************************
13 * Description: NVM config file - Generated file from nvm cfg excel.
18 ****************************************************************************/
23 #define NVM_CFG_version 0x81805
25 #define NVM_CFG_new_option_seq 15
27 #define NVM_CFG_removed_option_seq 0
29 #define NVM_CFG_updated_value_seq 1
31 struct nvm_cfg_mac_address {
33 #define NVM_CFG_MAC_ADDRESS_HI_MASK 0x0000FFFF
34 #define NVM_CFG_MAC_ADDRESS_HI_OFFSET 0
38 /******************************************
40 ******************************************/
41 struct nvm_cfg1_glob {
42 u32 generic_cont0; /* 0x0 */
43 #define NVM_CFG1_GLOB_BOARD_SWAP_MASK 0x0000000F
44 #define NVM_CFG1_GLOB_BOARD_SWAP_OFFSET 0
45 #define NVM_CFG1_GLOB_BOARD_SWAP_NONE 0x0
46 #define NVM_CFG1_GLOB_BOARD_SWAP_PATH 0x1
47 #define NVM_CFG1_GLOB_BOARD_SWAP_PORT 0x2
48 #define NVM_CFG1_GLOB_BOARD_SWAP_BOTH 0x3
49 #define NVM_CFG1_GLOB_MF_MODE_MASK 0x00000FF0
50 #define NVM_CFG1_GLOB_MF_MODE_OFFSET 4
51 #define NVM_CFG1_GLOB_MF_MODE_MF_ALLOWED 0x0
52 #define NVM_CFG1_GLOB_MF_MODE_DEFAULT 0x1
53 #define NVM_CFG1_GLOB_MF_MODE_SPIO4 0x2
54 #define NVM_CFG1_GLOB_MF_MODE_NPAR1_0 0x3
55 #define NVM_CFG1_GLOB_MF_MODE_NPAR1_5 0x4
56 #define NVM_CFG1_GLOB_MF_MODE_NPAR2_0 0x5
57 #define NVM_CFG1_GLOB_MF_MODE_BD 0x6
58 #define NVM_CFG1_GLOB_MF_MODE_UFP 0x7
59 #define NVM_CFG1_GLOB_FAN_FAILURE_ENFORCEMENT_MASK 0x00001000
60 #define NVM_CFG1_GLOB_FAN_FAILURE_ENFORCEMENT_OFFSET 12
61 #define NVM_CFG1_GLOB_FAN_FAILURE_ENFORCEMENT_DISABLED 0x0
62 #define NVM_CFG1_GLOB_FAN_FAILURE_ENFORCEMENT_ENABLED 0x1
63 #define NVM_CFG1_GLOB_AVS_MARGIN_LOW_MASK 0x001FE000
64 #define NVM_CFG1_GLOB_AVS_MARGIN_LOW_OFFSET 13
65 #define NVM_CFG1_GLOB_AVS_MARGIN_HIGH_MASK 0x1FE00000
66 #define NVM_CFG1_GLOB_AVS_MARGIN_HIGH_OFFSET 21
67 #define NVM_CFG1_GLOB_ENABLE_SRIOV_MASK 0x20000000
68 #define NVM_CFG1_GLOB_ENABLE_SRIOV_OFFSET 29
69 #define NVM_CFG1_GLOB_ENABLE_SRIOV_DISABLED 0x0
70 #define NVM_CFG1_GLOB_ENABLE_SRIOV_ENABLED 0x1
71 #define NVM_CFG1_GLOB_ENABLE_ATC_MASK 0x40000000
72 #define NVM_CFG1_GLOB_ENABLE_ATC_OFFSET 30
73 #define NVM_CFG1_GLOB_ENABLE_ATC_DISABLED 0x0
74 #define NVM_CFG1_GLOB_ENABLE_ATC_ENABLED 0x1
75 #define NVM_CFG1_GLOB_RESERVED__M_WAS_CLOCK_SLOWDOWN_MASK \
77 #define NVM_CFG1_GLOB_RESERVED__M_WAS_CLOCK_SLOWDOWN_OFFSET 31
78 #define NVM_CFG1_GLOB_RESERVED__M_WAS_CLOCK_SLOWDOWN_DISABLED \
80 #define NVM_CFG1_GLOB_RESERVED__M_WAS_CLOCK_SLOWDOWN_ENABLED 0x1
81 u32 engineering_change[3]; /* 0x4 */
82 u32 manufacturing_id; /* 0x10 */
83 u32 serial_number[4]; /* 0x14 */
84 u32 pcie_cfg; /* 0x24 */
85 #define NVM_CFG1_GLOB_PCI_GEN_MASK 0x00000003
86 #define NVM_CFG1_GLOB_PCI_GEN_OFFSET 0
87 #define NVM_CFG1_GLOB_PCI_GEN_PCI_GEN1 0x0
88 #define NVM_CFG1_GLOB_PCI_GEN_PCI_GEN2 0x1
89 #define NVM_CFG1_GLOB_PCI_GEN_PCI_GEN3 0x2
90 #define NVM_CFG1_GLOB_BEACON_WOL_ENABLED_MASK 0x00000004
91 #define NVM_CFG1_GLOB_BEACON_WOL_ENABLED_OFFSET 2
92 #define NVM_CFG1_GLOB_BEACON_WOL_ENABLED_DISABLED 0x0
93 #define NVM_CFG1_GLOB_BEACON_WOL_ENABLED_ENABLED 0x1
94 #define NVM_CFG1_GLOB_ASPM_SUPPORT_MASK 0x00000018
95 #define NVM_CFG1_GLOB_ASPM_SUPPORT_OFFSET 3
96 #define NVM_CFG1_GLOB_ASPM_SUPPORT_L0S_L1_ENABLED 0x0
97 #define NVM_CFG1_GLOB_ASPM_SUPPORT_L0S_DISABLED 0x1
98 #define NVM_CFG1_GLOB_ASPM_SUPPORT_L1_DISABLED 0x2
99 #define NVM_CFG1_GLOB_ASPM_SUPPORT_L0S_L1_DISABLED 0x3
100 #define NVM_CFG1_GLOB_RESERVED_MPREVENT_PCIE_L1_MENTRY_MASK \
102 #define NVM_CFG1_GLOB_RESERVED_MPREVENT_PCIE_L1_MENTRY_OFFSET 5
103 #define NVM_CFG1_GLOB_PCIE_G2_TX_AMPLITUDE_MASK 0x000003C0
104 #define NVM_CFG1_GLOB_PCIE_G2_TX_AMPLITUDE_OFFSET 6
105 #define NVM_CFG1_GLOB_PCIE_PREEMPHASIS_MASK 0x00001C00
106 #define NVM_CFG1_GLOB_PCIE_PREEMPHASIS_OFFSET 10
107 #define NVM_CFG1_GLOB_PCIE_PREEMPHASIS_HW 0x0
108 #define NVM_CFG1_GLOB_PCIE_PREEMPHASIS_0DB 0x1
109 #define NVM_CFG1_GLOB_PCIE_PREEMPHASIS_3_5DB 0x2
110 #define NVM_CFG1_GLOB_PCIE_PREEMPHASIS_6_0DB 0x3
111 #define NVM_CFG1_GLOB_WWN_NODE_PREFIX0_MASK 0x001FE000
112 #define NVM_CFG1_GLOB_WWN_NODE_PREFIX0_OFFSET 13
113 #define NVM_CFG1_GLOB_WWN_NODE_PREFIX1_MASK 0x1FE00000
114 #define NVM_CFG1_GLOB_WWN_NODE_PREFIX1_OFFSET 21
115 #define NVM_CFG1_GLOB_NCSI_PACKAGE_ID_MASK 0x60000000
116 #define NVM_CFG1_GLOB_NCSI_PACKAGE_ID_OFFSET 29
117 /* Set the duration, in sec, fan failure signal should be sampled */
118 #define NVM_CFG1_GLOB_RESERVED_FAN_FAILURE_DURATION_MASK \
120 #define NVM_CFG1_GLOB_RESERVED_FAN_FAILURE_DURATION_OFFSET 31
121 u32 mgmt_traffic; /* 0x28 */
122 #define NVM_CFG1_GLOB_RESERVED60_MASK 0x00000001
123 #define NVM_CFG1_GLOB_RESERVED60_OFFSET 0
124 #define NVM_CFG1_GLOB_WWN_PORT_PREFIX0_MASK 0x000001FE
125 #define NVM_CFG1_GLOB_WWN_PORT_PREFIX0_OFFSET 1
126 #define NVM_CFG1_GLOB_WWN_PORT_PREFIX1_MASK 0x0001FE00
127 #define NVM_CFG1_GLOB_WWN_PORT_PREFIX1_OFFSET 9
128 #define NVM_CFG1_GLOB_SMBUS_ADDRESS_MASK 0x01FE0000
129 #define NVM_CFG1_GLOB_SMBUS_ADDRESS_OFFSET 17
130 #define NVM_CFG1_GLOB_SIDEBAND_MODE_MASK 0x06000000
131 #define NVM_CFG1_GLOB_SIDEBAND_MODE_OFFSET 25
132 #define NVM_CFG1_GLOB_SIDEBAND_MODE_DISABLED 0x0
133 #define NVM_CFG1_GLOB_SIDEBAND_MODE_RMII 0x1
134 #define NVM_CFG1_GLOB_SIDEBAND_MODE_SGMII 0x2
135 #define NVM_CFG1_GLOB_AUX_MODE_MASK 0x78000000
136 #define NVM_CFG1_GLOB_AUX_MODE_OFFSET 27
137 #define NVM_CFG1_GLOB_AUX_MODE_DEFAULT 0x0
138 #define NVM_CFG1_GLOB_AUX_MODE_SMBUS_ONLY 0x1
139 /* Indicates whether external thermal sonsor is available */
140 #define NVM_CFG1_GLOB_EXTERNAL_THERMAL_SENSOR_MASK 0x80000000
141 #define NVM_CFG1_GLOB_EXTERNAL_THERMAL_SENSOR_OFFSET 31
142 #define NVM_CFG1_GLOB_EXTERNAL_THERMAL_SENSOR_DISABLED 0x0
143 #define NVM_CFG1_GLOB_EXTERNAL_THERMAL_SENSOR_ENABLED 0x1
144 u32 core_cfg; /* 0x2C */
145 #define NVM_CFG1_GLOB_NETWORK_PORT_MODE_MASK 0x000000FF
146 #define NVM_CFG1_GLOB_NETWORK_PORT_MODE_OFFSET 0
147 #define NVM_CFG1_GLOB_NETWORK_PORT_MODE_BB_2X40G 0x0
148 #define NVM_CFG1_GLOB_NETWORK_PORT_MODE_2X50G 0x1
149 #define NVM_CFG1_GLOB_NETWORK_PORT_MODE_BB_1X100G 0x2
150 #define NVM_CFG1_GLOB_NETWORK_PORT_MODE_4X10G_F 0x3
151 #define NVM_CFG1_GLOB_NETWORK_PORT_MODE_BB_4X10G_E 0x4
152 #define NVM_CFG1_GLOB_NETWORK_PORT_MODE_BB_4X20G 0x5
153 #define NVM_CFG1_GLOB_NETWORK_PORT_MODE_1X40G 0xB
154 #define NVM_CFG1_GLOB_NETWORK_PORT_MODE_2X25G 0xC
155 #define NVM_CFG1_GLOB_NETWORK_PORT_MODE_1X25G 0xD
156 #define NVM_CFG1_GLOB_NETWORK_PORT_MODE_4X25G 0xE
157 #define NVM_CFG1_GLOB_NETWORK_PORT_MODE_2X10G 0xF
158 #define NVM_CFG1_GLOB_MPS10_ENFORCE_TX_FIR_CFG_MASK 0x00000100
159 #define NVM_CFG1_GLOB_MPS10_ENFORCE_TX_FIR_CFG_OFFSET 8
160 #define NVM_CFG1_GLOB_MPS10_ENFORCE_TX_FIR_CFG_DISABLED 0x0
161 #define NVM_CFG1_GLOB_MPS10_ENFORCE_TX_FIR_CFG_ENABLED 0x1
162 #define NVM_CFG1_GLOB_MPS25_ENFORCE_TX_FIR_CFG_MASK 0x00000200
163 #define NVM_CFG1_GLOB_MPS25_ENFORCE_TX_FIR_CFG_OFFSET 9
164 #define NVM_CFG1_GLOB_MPS25_ENFORCE_TX_FIR_CFG_DISABLED 0x0
165 #define NVM_CFG1_GLOB_MPS25_ENFORCE_TX_FIR_CFG_ENABLED 0x1
166 #define NVM_CFG1_GLOB_MPS10_CORE_ADDR_MASK 0x0003FC00
167 #define NVM_CFG1_GLOB_MPS10_CORE_ADDR_OFFSET 10
168 #define NVM_CFG1_GLOB_MPS25_CORE_ADDR_MASK 0x03FC0000
169 #define NVM_CFG1_GLOB_MPS25_CORE_ADDR_OFFSET 18
170 #define NVM_CFG1_GLOB_AVS_MODE_MASK 0x1C000000
171 #define NVM_CFG1_GLOB_AVS_MODE_OFFSET 26
172 #define NVM_CFG1_GLOB_AVS_MODE_CLOSE_LOOP 0x0
173 #define NVM_CFG1_GLOB_AVS_MODE_OPEN_LOOP_CFG 0x1
174 #define NVM_CFG1_GLOB_AVS_MODE_OPEN_LOOP_OTP 0x2
175 #define NVM_CFG1_GLOB_AVS_MODE_DISABLED 0x3
176 #define NVM_CFG1_GLOB_OVERRIDE_SECURE_MODE_MASK 0x60000000
177 #define NVM_CFG1_GLOB_OVERRIDE_SECURE_MODE_OFFSET 29
178 #define NVM_CFG1_GLOB_OVERRIDE_SECURE_MODE_DISABLED 0x0
179 #define NVM_CFG1_GLOB_OVERRIDE_SECURE_MODE_ENABLED 0x1
180 u32 e_lane_cfg1; /* 0x30 */
181 #define NVM_CFG1_GLOB_RX_LANE0_SWAP_MASK 0x0000000F
182 #define NVM_CFG1_GLOB_RX_LANE0_SWAP_OFFSET 0
183 #define NVM_CFG1_GLOB_RX_LANE1_SWAP_MASK 0x000000F0
184 #define NVM_CFG1_GLOB_RX_LANE1_SWAP_OFFSET 4
185 #define NVM_CFG1_GLOB_RX_LANE2_SWAP_MASK 0x00000F00
186 #define NVM_CFG1_GLOB_RX_LANE2_SWAP_OFFSET 8
187 #define NVM_CFG1_GLOB_RX_LANE3_SWAP_MASK 0x0000F000
188 #define NVM_CFG1_GLOB_RX_LANE3_SWAP_OFFSET 12
189 #define NVM_CFG1_GLOB_TX_LANE0_SWAP_MASK 0x000F0000
190 #define NVM_CFG1_GLOB_TX_LANE0_SWAP_OFFSET 16
191 #define NVM_CFG1_GLOB_TX_LANE1_SWAP_MASK 0x00F00000
192 #define NVM_CFG1_GLOB_TX_LANE1_SWAP_OFFSET 20
193 #define NVM_CFG1_GLOB_TX_LANE2_SWAP_MASK 0x0F000000
194 #define NVM_CFG1_GLOB_TX_LANE2_SWAP_OFFSET 24
195 #define NVM_CFG1_GLOB_TX_LANE3_SWAP_MASK 0xF0000000
196 #define NVM_CFG1_GLOB_TX_LANE3_SWAP_OFFSET 28
197 u32 e_lane_cfg2; /* 0x34 */
198 #define NVM_CFG1_GLOB_RX_LANE0_POL_FLIP_MASK 0x00000001
199 #define NVM_CFG1_GLOB_RX_LANE0_POL_FLIP_OFFSET 0
200 #define NVM_CFG1_GLOB_RX_LANE1_POL_FLIP_MASK 0x00000002
201 #define NVM_CFG1_GLOB_RX_LANE1_POL_FLIP_OFFSET 1
202 #define NVM_CFG1_GLOB_RX_LANE2_POL_FLIP_MASK 0x00000004
203 #define NVM_CFG1_GLOB_RX_LANE2_POL_FLIP_OFFSET 2
204 #define NVM_CFG1_GLOB_RX_LANE3_POL_FLIP_MASK 0x00000008
205 #define NVM_CFG1_GLOB_RX_LANE3_POL_FLIP_OFFSET 3
206 #define NVM_CFG1_GLOB_TX_LANE0_POL_FLIP_MASK 0x00000010
207 #define NVM_CFG1_GLOB_TX_LANE0_POL_FLIP_OFFSET 4
208 #define NVM_CFG1_GLOB_TX_LANE1_POL_FLIP_MASK 0x00000020
209 #define NVM_CFG1_GLOB_TX_LANE1_POL_FLIP_OFFSET 5
210 #define NVM_CFG1_GLOB_TX_LANE2_POL_FLIP_MASK 0x00000040
211 #define NVM_CFG1_GLOB_TX_LANE2_POL_FLIP_OFFSET 6
212 #define NVM_CFG1_GLOB_TX_LANE3_POL_FLIP_MASK 0x00000080
213 #define NVM_CFG1_GLOB_TX_LANE3_POL_FLIP_OFFSET 7
214 #define NVM_CFG1_GLOB_SMBUS_MODE_MASK 0x00000F00
215 #define NVM_CFG1_GLOB_SMBUS_MODE_OFFSET 8
216 #define NVM_CFG1_GLOB_SMBUS_MODE_DISABLED 0x0
217 #define NVM_CFG1_GLOB_SMBUS_MODE_100KHZ 0x1
218 #define NVM_CFG1_GLOB_SMBUS_MODE_400KHZ 0x2
219 #define NVM_CFG1_GLOB_NCSI_MASK 0x0000F000
220 #define NVM_CFG1_GLOB_NCSI_OFFSET 12
221 #define NVM_CFG1_GLOB_NCSI_DISABLED 0x0
222 #define NVM_CFG1_GLOB_NCSI_ENABLED 0x1
223 /* Maximum advertised pcie link width */
224 #define NVM_CFG1_GLOB_MAX_LINK_WIDTH_MASK 0x000F0000
225 #define NVM_CFG1_GLOB_MAX_LINK_WIDTH_OFFSET 16
226 #define NVM_CFG1_GLOB_MAX_LINK_WIDTH_BB_16_LANES 0x0
227 #define NVM_CFG1_GLOB_MAX_LINK_WIDTH_1_LANE 0x1
228 #define NVM_CFG1_GLOB_MAX_LINK_WIDTH_2_LANES 0x2
229 #define NVM_CFG1_GLOB_MAX_LINK_WIDTH_4_LANES 0x3
230 #define NVM_CFG1_GLOB_MAX_LINK_WIDTH_8_LANES 0x4
232 #define NVM_CFG1_GLOB_ASPM_L1_MODE_MASK 0x00300000
233 #define NVM_CFG1_GLOB_ASPM_L1_MODE_OFFSET 20
234 #define NVM_CFG1_GLOB_ASPM_L1_MODE_FORCED 0x0
235 #define NVM_CFG1_GLOB_ASPM_L1_MODE_DYNAMIC_LOW_LATENCY 0x1
236 #define NVM_CFG1_GLOB_ON_CHIP_SENSOR_MODE_MASK 0x01C00000
237 #define NVM_CFG1_GLOB_ON_CHIP_SENSOR_MODE_OFFSET 22
238 #define NVM_CFG1_GLOB_ON_CHIP_SENSOR_MODE_DISABLED 0x0
239 #define NVM_CFG1_GLOB_ON_CHIP_SENSOR_MODE_INT_EXT_I2C 0x1
240 #define NVM_CFG1_GLOB_ON_CHIP_SENSOR_MODE_INT_ONLY 0x2
241 #define NVM_CFG1_GLOB_ON_CHIP_SENSOR_MODE_INT_EXT_SMBUS 0x3
242 #define NVM_CFG1_GLOB_TEMPERATURE_MONITORING_MODE_MASK \
244 #define NVM_CFG1_GLOB_TEMPERATURE_MONITORING_MODE_OFFSET 25
245 #define NVM_CFG1_GLOB_TEMPERATURE_MONITORING_MODE_DISABLE 0x0
246 #define NVM_CFG1_GLOB_TEMPERATURE_MONITORING_MODE_INTERNAL 0x1
247 #define NVM_CFG1_GLOB_TEMPERATURE_MONITORING_MODE_EXTERNAL 0x2
248 #define NVM_CFG1_GLOB_TEMPERATURE_MONITORING_MODE_BOTH 0x3
249 /* Set the PLDM sensor modes */
250 #define NVM_CFG1_GLOB_PLDM_SENSOR_MODE_MASK 0x38000000
251 #define NVM_CFG1_GLOB_PLDM_SENSOR_MODE_OFFSET 27
252 #define NVM_CFG1_GLOB_PLDM_SENSOR_MODE_INTERNAL 0x0
253 #define NVM_CFG1_GLOB_PLDM_SENSOR_MODE_EXTERNAL 0x1
254 #define NVM_CFG1_GLOB_PLDM_SENSOR_MODE_BOTH 0x2
256 #define NVM_CFG1_GLOB_RESET_ON_LAN_MASK 0x80000000
257 #define NVM_CFG1_GLOB_RESET_ON_LAN_OFFSET 31
258 #define NVM_CFG1_GLOB_RESET_ON_LAN_DISABLED 0x0
259 #define NVM_CFG1_GLOB_RESET_ON_LAN_ENABLED 0x1
260 u32 f_lane_cfg1; /* 0x38 */
261 #define NVM_CFG1_GLOB_RX_LANE0_SWAP_MASK 0x0000000F
262 #define NVM_CFG1_GLOB_RX_LANE0_SWAP_OFFSET 0
263 #define NVM_CFG1_GLOB_RX_LANE1_SWAP_MASK 0x000000F0
264 #define NVM_CFG1_GLOB_RX_LANE1_SWAP_OFFSET 4
265 #define NVM_CFG1_GLOB_RX_LANE2_SWAP_MASK 0x00000F00
266 #define NVM_CFG1_GLOB_RX_LANE2_SWAP_OFFSET 8
267 #define NVM_CFG1_GLOB_RX_LANE3_SWAP_MASK 0x0000F000
268 #define NVM_CFG1_GLOB_RX_LANE3_SWAP_OFFSET 12
269 #define NVM_CFG1_GLOB_TX_LANE0_SWAP_MASK 0x000F0000
270 #define NVM_CFG1_GLOB_TX_LANE0_SWAP_OFFSET 16
271 #define NVM_CFG1_GLOB_TX_LANE1_SWAP_MASK 0x00F00000
272 #define NVM_CFG1_GLOB_TX_LANE1_SWAP_OFFSET 20
273 #define NVM_CFG1_GLOB_TX_LANE2_SWAP_MASK 0x0F000000
274 #define NVM_CFG1_GLOB_TX_LANE2_SWAP_OFFSET 24
275 #define NVM_CFG1_GLOB_TX_LANE3_SWAP_MASK 0xF0000000
276 #define NVM_CFG1_GLOB_TX_LANE3_SWAP_OFFSET 28
277 u32 f_lane_cfg2; /* 0x3C */
278 #define NVM_CFG1_GLOB_RX_LANE0_POL_FLIP_MASK 0x00000001
279 #define NVM_CFG1_GLOB_RX_LANE0_POL_FLIP_OFFSET 0
280 #define NVM_CFG1_GLOB_RX_LANE1_POL_FLIP_MASK 0x00000002
281 #define NVM_CFG1_GLOB_RX_LANE1_POL_FLIP_OFFSET 1
282 #define NVM_CFG1_GLOB_RX_LANE2_POL_FLIP_MASK 0x00000004
283 #define NVM_CFG1_GLOB_RX_LANE2_POL_FLIP_OFFSET 2
284 #define NVM_CFG1_GLOB_RX_LANE3_POL_FLIP_MASK 0x00000008
285 #define NVM_CFG1_GLOB_RX_LANE3_POL_FLIP_OFFSET 3
286 #define NVM_CFG1_GLOB_TX_LANE0_POL_FLIP_MASK 0x00000010
287 #define NVM_CFG1_GLOB_TX_LANE0_POL_FLIP_OFFSET 4
288 #define NVM_CFG1_GLOB_TX_LANE1_POL_FLIP_MASK 0x00000020
289 #define NVM_CFG1_GLOB_TX_LANE1_POL_FLIP_OFFSET 5
290 #define NVM_CFG1_GLOB_TX_LANE2_POL_FLIP_MASK 0x00000040
291 #define NVM_CFG1_GLOB_TX_LANE2_POL_FLIP_OFFSET 6
292 #define NVM_CFG1_GLOB_TX_LANE3_POL_FLIP_MASK 0x00000080
293 #define NVM_CFG1_GLOB_TX_LANE3_POL_FLIP_OFFSET 7
294 /* Control the period between two successive checks */
295 #define NVM_CFG1_GLOB_TEMPERATURE_PERIOD_BETWEEN_CHECKS_MASK \
297 #define NVM_CFG1_GLOB_TEMPERATURE_PERIOD_BETWEEN_CHECKS_OFFSET 8
298 /* Set shutdown temperature */
299 #define NVM_CFG1_GLOB_SHUTDOWN_THRESHOLD_TEMPERATURE_MASK \
301 #define NVM_CFG1_GLOB_SHUTDOWN_THRESHOLD_TEMPERATURE_OFFSET 16
302 /* Set max. count for over operational temperature */
303 #define NVM_CFG1_GLOB_MAX_COUNT_OPER_THRESHOLD_MASK 0xFF000000
304 #define NVM_CFG1_GLOB_MAX_COUNT_OPER_THRESHOLD_OFFSET 24
305 u32 mps10_preemphasis; /* 0x40 */
306 #define NVM_CFG1_GLOB_LANE0_PREEMP_MASK 0x000000FF
307 #define NVM_CFG1_GLOB_LANE0_PREEMP_OFFSET 0
308 #define NVM_CFG1_GLOB_LANE1_PREEMP_MASK 0x0000FF00
309 #define NVM_CFG1_GLOB_LANE1_PREEMP_OFFSET 8
310 #define NVM_CFG1_GLOB_LANE2_PREEMP_MASK 0x00FF0000
311 #define NVM_CFG1_GLOB_LANE2_PREEMP_OFFSET 16
312 #define NVM_CFG1_GLOB_LANE3_PREEMP_MASK 0xFF000000
313 #define NVM_CFG1_GLOB_LANE3_PREEMP_OFFSET 24
314 u32 mps10_driver_current; /* 0x44 */
315 #define NVM_CFG1_GLOB_LANE0_AMP_MASK 0x000000FF
316 #define NVM_CFG1_GLOB_LANE0_AMP_OFFSET 0
317 #define NVM_CFG1_GLOB_LANE1_AMP_MASK 0x0000FF00
318 #define NVM_CFG1_GLOB_LANE1_AMP_OFFSET 8
319 #define NVM_CFG1_GLOB_LANE2_AMP_MASK 0x00FF0000
320 #define NVM_CFG1_GLOB_LANE2_AMP_OFFSET 16
321 #define NVM_CFG1_GLOB_LANE3_AMP_MASK 0xFF000000
322 #define NVM_CFG1_GLOB_LANE3_AMP_OFFSET 24
323 u32 mps25_preemphasis; /* 0x48 */
324 #define NVM_CFG1_GLOB_LANE0_PREEMP_MASK 0x000000FF
325 #define NVM_CFG1_GLOB_LANE0_PREEMP_OFFSET 0
326 #define NVM_CFG1_GLOB_LANE1_PREEMP_MASK 0x0000FF00
327 #define NVM_CFG1_GLOB_LANE1_PREEMP_OFFSET 8
328 #define NVM_CFG1_GLOB_LANE2_PREEMP_MASK 0x00FF0000
329 #define NVM_CFG1_GLOB_LANE2_PREEMP_OFFSET 16
330 #define NVM_CFG1_GLOB_LANE3_PREEMP_MASK 0xFF000000
331 #define NVM_CFG1_GLOB_LANE3_PREEMP_OFFSET 24
332 u32 mps25_driver_current; /* 0x4C */
333 #define NVM_CFG1_GLOB_LANE0_AMP_MASK 0x000000FF
334 #define NVM_CFG1_GLOB_LANE0_AMP_OFFSET 0
335 #define NVM_CFG1_GLOB_LANE1_AMP_MASK 0x0000FF00
336 #define NVM_CFG1_GLOB_LANE1_AMP_OFFSET 8
337 #define NVM_CFG1_GLOB_LANE2_AMP_MASK 0x00FF0000
338 #define NVM_CFG1_GLOB_LANE2_AMP_OFFSET 16
339 #define NVM_CFG1_GLOB_LANE3_AMP_MASK 0xFF000000
340 #define NVM_CFG1_GLOB_LANE3_AMP_OFFSET 24
341 u32 pci_id; /* 0x50 */
342 #define NVM_CFG1_GLOB_VENDOR_ID_MASK 0x0000FFFF
343 #define NVM_CFG1_GLOB_VENDOR_ID_OFFSET 0
344 /* Set caution temperature */
345 #define NVM_CFG1_GLOB_CAUTION_THRESHOLD_TEMPERATURE_MASK \
347 #define NVM_CFG1_GLOB_CAUTION_THRESHOLD_TEMPERATURE_OFFSET 16
348 /* Set external thermal sensor I2C address */
349 #define NVM_CFG1_GLOB_EXTERNAL_THERMAL_SENSOR_ADDRESS_MASK \
351 #define NVM_CFG1_GLOB_EXTERNAL_THERMAL_SENSOR_ADDRESS_OFFSET 24
352 u32 pci_subsys_id; /* 0x54 */
353 #define NVM_CFG1_GLOB_SUBSYSTEM_VENDOR_ID_MASK 0x0000FFFF
354 #define NVM_CFG1_GLOB_SUBSYSTEM_VENDOR_ID_OFFSET 0
355 #define NVM_CFG1_GLOB_SUBSYSTEM_DEVICE_ID_MASK 0xFFFF0000
356 #define NVM_CFG1_GLOB_SUBSYSTEM_DEVICE_ID_OFFSET 16
358 #define NVM_CFG1_GLOB_EXPANSION_ROM_SIZE_MASK 0x0000000F
359 #define NVM_CFG1_GLOB_EXPANSION_ROM_SIZE_OFFSET 0
360 #define NVM_CFG1_GLOB_EXPANSION_ROM_SIZE_DISABLED 0x0
361 #define NVM_CFG1_GLOB_EXPANSION_ROM_SIZE_2K 0x1
362 #define NVM_CFG1_GLOB_EXPANSION_ROM_SIZE_4K 0x2
363 #define NVM_CFG1_GLOB_EXPANSION_ROM_SIZE_8K 0x3
364 #define NVM_CFG1_GLOB_EXPANSION_ROM_SIZE_16K 0x4
365 #define NVM_CFG1_GLOB_EXPANSION_ROM_SIZE_32K 0x5
366 #define NVM_CFG1_GLOB_EXPANSION_ROM_SIZE_64K 0x6
367 #define NVM_CFG1_GLOB_EXPANSION_ROM_SIZE_128K 0x7
368 #define NVM_CFG1_GLOB_EXPANSION_ROM_SIZE_256K 0x8
369 #define NVM_CFG1_GLOB_EXPANSION_ROM_SIZE_512K 0x9
370 #define NVM_CFG1_GLOB_EXPANSION_ROM_SIZE_1M 0xA
371 #define NVM_CFG1_GLOB_EXPANSION_ROM_SIZE_2M 0xB
372 #define NVM_CFG1_GLOB_EXPANSION_ROM_SIZE_4M 0xC
373 #define NVM_CFG1_GLOB_EXPANSION_ROM_SIZE_8M 0xD
374 #define NVM_CFG1_GLOB_EXPANSION_ROM_SIZE_16M 0xE
375 #define NVM_CFG1_GLOB_EXPANSION_ROM_SIZE_32M 0xF
376 /* BB VF BAR2 size */
377 #define NVM_CFG1_GLOB_VF_PCI_BAR2_SIZE_MASK 0x000000F0
378 #define NVM_CFG1_GLOB_VF_PCI_BAR2_SIZE_OFFSET 4
379 #define NVM_CFG1_GLOB_VF_PCI_BAR2_SIZE_DISABLED 0x0
380 #define NVM_CFG1_GLOB_VF_PCI_BAR2_SIZE_4K 0x1
381 #define NVM_CFG1_GLOB_VF_PCI_BAR2_SIZE_8K 0x2
382 #define NVM_CFG1_GLOB_VF_PCI_BAR2_SIZE_16K 0x3
383 #define NVM_CFG1_GLOB_VF_PCI_BAR2_SIZE_32K 0x4
384 #define NVM_CFG1_GLOB_VF_PCI_BAR2_SIZE_64K 0x5
385 #define NVM_CFG1_GLOB_VF_PCI_BAR2_SIZE_128K 0x6
386 #define NVM_CFG1_GLOB_VF_PCI_BAR2_SIZE_256K 0x7
387 #define NVM_CFG1_GLOB_VF_PCI_BAR2_SIZE_512K 0x8
388 #define NVM_CFG1_GLOB_VF_PCI_BAR2_SIZE_1M 0x9
389 #define NVM_CFG1_GLOB_VF_PCI_BAR2_SIZE_2M 0xA
390 #define NVM_CFG1_GLOB_VF_PCI_BAR2_SIZE_4M 0xB
391 #define NVM_CFG1_GLOB_VF_PCI_BAR2_SIZE_8M 0xC
392 #define NVM_CFG1_GLOB_VF_PCI_BAR2_SIZE_16M 0xD
393 #define NVM_CFG1_GLOB_VF_PCI_BAR2_SIZE_32M 0xE
394 #define NVM_CFG1_GLOB_VF_PCI_BAR2_SIZE_64M 0xF
395 /* BB BAR2 size (global) */
396 #define NVM_CFG1_GLOB_BAR2_SIZE_MASK 0x00000F00
397 #define NVM_CFG1_GLOB_BAR2_SIZE_OFFSET 8
398 #define NVM_CFG1_GLOB_BAR2_SIZE_DISABLED 0x0
399 #define NVM_CFG1_GLOB_BAR2_SIZE_64K 0x1
400 #define NVM_CFG1_GLOB_BAR2_SIZE_128K 0x2
401 #define NVM_CFG1_GLOB_BAR2_SIZE_256K 0x3
402 #define NVM_CFG1_GLOB_BAR2_SIZE_512K 0x4
403 #define NVM_CFG1_GLOB_BAR2_SIZE_1M 0x5
404 #define NVM_CFG1_GLOB_BAR2_SIZE_2M 0x6
405 #define NVM_CFG1_GLOB_BAR2_SIZE_4M 0x7
406 #define NVM_CFG1_GLOB_BAR2_SIZE_8M 0x8
407 #define NVM_CFG1_GLOB_BAR2_SIZE_16M 0x9
408 #define NVM_CFG1_GLOB_BAR2_SIZE_32M 0xA
409 #define NVM_CFG1_GLOB_BAR2_SIZE_64M 0xB
410 #define NVM_CFG1_GLOB_BAR2_SIZE_128M 0xC
411 #define NVM_CFG1_GLOB_BAR2_SIZE_256M 0xD
412 #define NVM_CFG1_GLOB_BAR2_SIZE_512M 0xE
413 #define NVM_CFG1_GLOB_BAR2_SIZE_1G 0xF
414 /* Set the duration, in secs, fan failure signal should be sampled */
415 #define NVM_CFG1_GLOB_FAN_FAILURE_DURATION_MASK 0x0000F000
416 #define NVM_CFG1_GLOB_FAN_FAILURE_DURATION_OFFSET 12
417 /* This field defines the board total budget for bar2 when disabled
418 * the regular bar size is used.
420 #define NVM_CFG1_GLOB_BAR2_TOTAL_BUDGET_MASK 0x00FF0000
421 #define NVM_CFG1_GLOB_BAR2_TOTAL_BUDGET_OFFSET 16
422 #define NVM_CFG1_GLOB_BAR2_TOTAL_BUDGET_DISABLED 0x0
423 #define NVM_CFG1_GLOB_BAR2_TOTAL_BUDGET_64K 0x1
424 #define NVM_CFG1_GLOB_BAR2_TOTAL_BUDGET_128K 0x2
425 #define NVM_CFG1_GLOB_BAR2_TOTAL_BUDGET_256K 0x3
426 #define NVM_CFG1_GLOB_BAR2_TOTAL_BUDGET_512K 0x4
427 #define NVM_CFG1_GLOB_BAR2_TOTAL_BUDGET_1M 0x5
428 #define NVM_CFG1_GLOB_BAR2_TOTAL_BUDGET_2M 0x6
429 #define NVM_CFG1_GLOB_BAR2_TOTAL_BUDGET_4M 0x7
430 #define NVM_CFG1_GLOB_BAR2_TOTAL_BUDGET_8M 0x8
431 #define NVM_CFG1_GLOB_BAR2_TOTAL_BUDGET_16M 0x9
432 #define NVM_CFG1_GLOB_BAR2_TOTAL_BUDGET_32M 0xA
433 #define NVM_CFG1_GLOB_BAR2_TOTAL_BUDGET_64M 0xB
434 #define NVM_CFG1_GLOB_BAR2_TOTAL_BUDGET_128M 0xC
435 #define NVM_CFG1_GLOB_BAR2_TOTAL_BUDGET_256M 0xD
436 #define NVM_CFG1_GLOB_BAR2_TOTAL_BUDGET_512M 0xE
437 #define NVM_CFG1_GLOB_BAR2_TOTAL_BUDGET_1G 0xF
438 /* Enable/Disable Crash dump triggers */
439 #define NVM_CFG1_GLOB_CRASH_DUMP_TRIGGER_ENABLE_MASK 0xFF000000
440 #define NVM_CFG1_GLOB_CRASH_DUMP_TRIGGER_ENABLE_OFFSET 24
441 u32 mps10_txfir_main; /* 0x5C */
442 #define NVM_CFG1_GLOB_LANE0_TXFIR_MAIN_MASK 0x000000FF
443 #define NVM_CFG1_GLOB_LANE0_TXFIR_MAIN_OFFSET 0
444 #define NVM_CFG1_GLOB_LANE1_TXFIR_MAIN_MASK 0x0000FF00
445 #define NVM_CFG1_GLOB_LANE1_TXFIR_MAIN_OFFSET 8
446 #define NVM_CFG1_GLOB_LANE2_TXFIR_MAIN_MASK 0x00FF0000
447 #define NVM_CFG1_GLOB_LANE2_TXFIR_MAIN_OFFSET 16
448 #define NVM_CFG1_GLOB_LANE3_TXFIR_MAIN_MASK 0xFF000000
449 #define NVM_CFG1_GLOB_LANE3_TXFIR_MAIN_OFFSET 24
450 u32 mps10_txfir_post; /* 0x60 */
451 #define NVM_CFG1_GLOB_LANE0_TXFIR_POST_MASK 0x000000FF
452 #define NVM_CFG1_GLOB_LANE0_TXFIR_POST_OFFSET 0
453 #define NVM_CFG1_GLOB_LANE1_TXFIR_POST_MASK 0x0000FF00
454 #define NVM_CFG1_GLOB_LANE1_TXFIR_POST_OFFSET 8
455 #define NVM_CFG1_GLOB_LANE2_TXFIR_POST_MASK 0x00FF0000
456 #define NVM_CFG1_GLOB_LANE2_TXFIR_POST_OFFSET 16
457 #define NVM_CFG1_GLOB_LANE3_TXFIR_POST_MASK 0xFF000000
458 #define NVM_CFG1_GLOB_LANE3_TXFIR_POST_OFFSET 24
459 u32 mps25_txfir_main; /* 0x64 */
460 #define NVM_CFG1_GLOB_LANE0_TXFIR_MAIN_MASK 0x000000FF
461 #define NVM_CFG1_GLOB_LANE0_TXFIR_MAIN_OFFSET 0
462 #define NVM_CFG1_GLOB_LANE1_TXFIR_MAIN_MASK 0x0000FF00
463 #define NVM_CFG1_GLOB_LANE1_TXFIR_MAIN_OFFSET 8
464 #define NVM_CFG1_GLOB_LANE2_TXFIR_MAIN_MASK 0x00FF0000
465 #define NVM_CFG1_GLOB_LANE2_TXFIR_MAIN_OFFSET 16
466 #define NVM_CFG1_GLOB_LANE3_TXFIR_MAIN_MASK 0xFF000000
467 #define NVM_CFG1_GLOB_LANE3_TXFIR_MAIN_OFFSET 24
468 u32 mps25_txfir_post; /* 0x68 */
469 #define NVM_CFG1_GLOB_LANE0_TXFIR_POST_MASK 0x000000FF
470 #define NVM_CFG1_GLOB_LANE0_TXFIR_POST_OFFSET 0
471 #define NVM_CFG1_GLOB_LANE1_TXFIR_POST_MASK 0x0000FF00
472 #define NVM_CFG1_GLOB_LANE1_TXFIR_POST_OFFSET 8
473 #define NVM_CFG1_GLOB_LANE2_TXFIR_POST_MASK 0x00FF0000
474 #define NVM_CFG1_GLOB_LANE2_TXFIR_POST_OFFSET 16
475 #define NVM_CFG1_GLOB_LANE3_TXFIR_POST_MASK 0xFF000000
476 #define NVM_CFG1_GLOB_LANE3_TXFIR_POST_OFFSET 24
477 u32 manufacture_ver; /* 0x6C */
478 #define NVM_CFG1_GLOB_MANUF0_VER_MASK 0x0000003F
479 #define NVM_CFG1_GLOB_MANUF0_VER_OFFSET 0
480 #define NVM_CFG1_GLOB_MANUF1_VER_MASK 0x00000FC0
481 #define NVM_CFG1_GLOB_MANUF1_VER_OFFSET 6
482 #define NVM_CFG1_GLOB_MANUF2_VER_MASK 0x0003F000
483 #define NVM_CFG1_GLOB_MANUF2_VER_OFFSET 12
484 #define NVM_CFG1_GLOB_MANUF3_VER_MASK 0x00FC0000
485 #define NVM_CFG1_GLOB_MANUF3_VER_OFFSET 18
486 #define NVM_CFG1_GLOB_MANUF4_VER_MASK 0x3F000000
487 #define NVM_CFG1_GLOB_MANUF4_VER_OFFSET 24
488 /* Select package id method */
489 #define NVM_CFG1_GLOB_NCSI_PACKAGE_ID_IO_MASK 0x40000000
490 #define NVM_CFG1_GLOB_NCSI_PACKAGE_ID_IO_OFFSET 30
491 #define NVM_CFG1_GLOB_NCSI_PACKAGE_ID_IO_NVRAM 0x0
492 #define NVM_CFG1_GLOB_NCSI_PACKAGE_ID_IO_IO_PINS 0x1
493 #define NVM_CFG1_GLOB_RECOVERY_MODE_MASK 0x80000000
494 #define NVM_CFG1_GLOB_RECOVERY_MODE_OFFSET 31
495 #define NVM_CFG1_GLOB_RECOVERY_MODE_DISABLED 0x0
496 #define NVM_CFG1_GLOB_RECOVERY_MODE_ENABLED 0x1
497 u32 manufacture_time; /* 0x70 */
498 #define NVM_CFG1_GLOB_MANUF0_TIME_MASK 0x0000003F
499 #define NVM_CFG1_GLOB_MANUF0_TIME_OFFSET 0
500 #define NVM_CFG1_GLOB_MANUF1_TIME_MASK 0x00000FC0
501 #define NVM_CFG1_GLOB_MANUF1_TIME_OFFSET 6
502 #define NVM_CFG1_GLOB_MANUF2_TIME_MASK 0x0003F000
503 #define NVM_CFG1_GLOB_MANUF2_TIME_OFFSET 12
504 /* Max MSIX for Ethernet in default mode */
505 #define NVM_CFG1_GLOB_MAX_MSIX_MASK 0x03FC0000
506 #define NVM_CFG1_GLOB_MAX_MSIX_OFFSET 18
508 #define NVM_CFG1_GLOB_PF_MAPPING_MASK 0x0C000000
509 #define NVM_CFG1_GLOB_PF_MAPPING_OFFSET 26
510 #define NVM_CFG1_GLOB_PF_MAPPING_CONTINUOUS 0x0
511 #define NVM_CFG1_GLOB_PF_MAPPING_FIXED 0x1
512 u32 led_global_settings; /* 0x74 */
513 #define NVM_CFG1_GLOB_LED_SWAP_0_MASK 0x0000000F
514 #define NVM_CFG1_GLOB_LED_SWAP_0_OFFSET 0
515 #define NVM_CFG1_GLOB_LED_SWAP_1_MASK 0x000000F0
516 #define NVM_CFG1_GLOB_LED_SWAP_1_OFFSET 4
517 #define NVM_CFG1_GLOB_LED_SWAP_2_MASK 0x00000F00
518 #define NVM_CFG1_GLOB_LED_SWAP_2_OFFSET 8
519 #define NVM_CFG1_GLOB_LED_SWAP_3_MASK 0x0000F000
520 #define NVM_CFG1_GLOB_LED_SWAP_3_OFFSET 12
521 /* Max. continues operating temperature */
522 #define NVM_CFG1_GLOB_MAX_CONT_OPERATING_TEMP_MASK 0x00FF0000
523 #define NVM_CFG1_GLOB_MAX_CONT_OPERATING_TEMP_OFFSET 16
524 /* GPIO which triggers run-time port swap according to the map
525 * specified in option 205
527 #define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_MASK 0xFF000000
528 #define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_OFFSET 24
529 #define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_NA 0x0
530 #define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO0 0x1
531 #define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO1 0x2
532 #define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO2 0x3
533 #define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO3 0x4
534 #define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO4 0x5
535 #define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO5 0x6
536 #define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO6 0x7
537 #define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO7 0x8
538 #define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO8 0x9
539 #define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO9 0xA
540 #define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO10 0xB
541 #define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO11 0xC
542 #define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO12 0xD
543 #define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO13 0xE
544 #define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO14 0xF
545 #define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO15 0x10
546 #define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO16 0x11
547 #define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO17 0x12
548 #define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO18 0x13
549 #define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO19 0x14
550 #define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO20 0x15
551 #define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO21 0x16
552 #define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO22 0x17
553 #define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO23 0x18
554 #define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO24 0x19
555 #define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO25 0x1A
556 #define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO26 0x1B
557 #define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO27 0x1C
558 #define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO28 0x1D
559 #define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO29 0x1E
560 #define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO30 0x1F
561 #define NVM_CFG1_GLOB_RUNTIME_PORT_SWAP_GPIO_GPIO31 0x20
562 u32 generic_cont1; /* 0x78 */
563 #define NVM_CFG1_GLOB_AVS_DAC_CODE_MASK 0x000003FF
564 #define NVM_CFG1_GLOB_AVS_DAC_CODE_OFFSET 0
565 #define NVM_CFG1_GLOB_LANE0_SWAP_MASK 0x00000C00
566 #define NVM_CFG1_GLOB_LANE0_SWAP_OFFSET 10
567 #define NVM_CFG1_GLOB_LANE1_SWAP_MASK 0x00003000
568 #define NVM_CFG1_GLOB_LANE1_SWAP_OFFSET 12
569 #define NVM_CFG1_GLOB_LANE2_SWAP_MASK 0x0000C000
570 #define NVM_CFG1_GLOB_LANE2_SWAP_OFFSET 14
571 #define NVM_CFG1_GLOB_LANE3_SWAP_MASK 0x00030000
572 #define NVM_CFG1_GLOB_LANE3_SWAP_OFFSET 16
573 /* Enable option 195 - Overriding the PCIe Preset value */
574 #define NVM_CFG1_GLOB_OVERRIDE_PCIE_PRESET_EQUAL_MASK 0x00040000
575 #define NVM_CFG1_GLOB_OVERRIDE_PCIE_PRESET_EQUAL_OFFSET 18
576 #define NVM_CFG1_GLOB_OVERRIDE_PCIE_PRESET_EQUAL_DISABLED 0x0
577 #define NVM_CFG1_GLOB_OVERRIDE_PCIE_PRESET_EQUAL_ENABLED 0x1
578 /* PCIe Preset value - applies only if option 194 is enabled */
579 #define NVM_CFG1_GLOB_PCIE_PRESET_VALUE_MASK 0x00780000
580 #define NVM_CFG1_GLOB_PCIE_PRESET_VALUE_OFFSET 19
581 /* Port mapping to be used when the run-time GPIO for port-swap is
584 #define NVM_CFG1_GLOB_RUNTIME_PORT0_SWAP_MAP_MASK 0x01800000
585 #define NVM_CFG1_GLOB_RUNTIME_PORT0_SWAP_MAP_OFFSET 23
586 #define NVM_CFG1_GLOB_RUNTIME_PORT1_SWAP_MAP_MASK 0x06000000
587 #define NVM_CFG1_GLOB_RUNTIME_PORT1_SWAP_MAP_OFFSET 25
588 #define NVM_CFG1_GLOB_RUNTIME_PORT2_SWAP_MAP_MASK 0x18000000
589 #define NVM_CFG1_GLOB_RUNTIME_PORT2_SWAP_MAP_OFFSET 27
590 #define NVM_CFG1_GLOB_RUNTIME_PORT3_SWAP_MAP_MASK 0x60000000
591 #define NVM_CFG1_GLOB_RUNTIME_PORT3_SWAP_MAP_OFFSET 29
592 u32 mbi_version; /* 0x7C */
593 #define NVM_CFG1_GLOB_MBI_VERSION_0_MASK 0x000000FF
594 #define NVM_CFG1_GLOB_MBI_VERSION_0_OFFSET 0
595 #define NVM_CFG1_GLOB_MBI_VERSION_1_MASK 0x0000FF00
596 #define NVM_CFG1_GLOB_MBI_VERSION_1_OFFSET 8
597 #define NVM_CFG1_GLOB_MBI_VERSION_2_MASK 0x00FF0000
598 #define NVM_CFG1_GLOB_MBI_VERSION_2_OFFSET 16
599 /* If set to other than NA, 0 - Normal operation, 1 - Thermal event
602 #define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_MASK 0xFF000000
603 #define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_OFFSET 24
604 #define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_NA 0x0
605 #define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO0 0x1
606 #define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO1 0x2
607 #define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO2 0x3
608 #define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO3 0x4
609 #define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO4 0x5
610 #define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO5 0x6
611 #define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO6 0x7
612 #define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO7 0x8
613 #define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO8 0x9
614 #define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO9 0xA
615 #define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO10 0xB
616 #define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO11 0xC
617 #define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO12 0xD
618 #define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO13 0xE
619 #define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO14 0xF
620 #define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO15 0x10
621 #define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO16 0x11
622 #define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO17 0x12
623 #define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO18 0x13
624 #define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO19 0x14
625 #define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO20 0x15
626 #define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO21 0x16
627 #define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO22 0x17
628 #define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO23 0x18
629 #define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO24 0x19
630 #define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO25 0x1A
631 #define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO26 0x1B
632 #define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO27 0x1C
633 #define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO28 0x1D
634 #define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO29 0x1E
635 #define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO30 0x1F
636 #define NVM_CFG1_GLOB_THERMAL_EVENT_GPIO_GPIO31 0x20
637 u32 mbi_date; /* 0x80 */
638 u32 misc_sig; /* 0x84 */
639 /* Define the GPIO mapping to switch i2c mux */
640 #define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO_0_MASK 0x000000FF
641 #define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO_0_OFFSET 0
642 #define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO_1_MASK 0x0000FF00
643 #define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO_1_OFFSET 8
644 #define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__NA 0x0
645 #define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO0 0x1
646 #define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO1 0x2
647 #define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO2 0x3
648 #define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO3 0x4
649 #define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO4 0x5
650 #define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO5 0x6
651 #define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO6 0x7
652 #define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO7 0x8
653 #define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO8 0x9
654 #define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO9 0xA
655 #define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO10 0xB
656 #define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO11 0xC
657 #define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO12 0xD
658 #define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO13 0xE
659 #define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO14 0xF
660 #define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO15 0x10
661 #define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO16 0x11
662 #define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO17 0x12
663 #define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO18 0x13
664 #define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO19 0x14
665 #define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO20 0x15
666 #define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO21 0x16
667 #define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO22 0x17
668 #define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO23 0x18
669 #define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO24 0x19
670 #define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO25 0x1A
671 #define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO26 0x1B
672 #define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO27 0x1C
673 #define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO28 0x1D
674 #define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO29 0x1E
675 #define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO30 0x1F
676 #define NVM_CFG1_GLOB_I2C_MUX_SEL_GPIO__GPIO31 0x20
677 /* Interrupt signal used for SMBus/I2C management interface
678 * 0 = Interrupt event occurred
681 #define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_MASK 0x00FF0000
682 #define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_OFFSET 16
683 #define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_NA 0x0
684 #define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO0 0x1
685 #define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO1 0x2
686 #define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO2 0x3
687 #define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO3 0x4
688 #define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO4 0x5
689 #define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO5 0x6
690 #define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO6 0x7
691 #define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO7 0x8
692 #define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO8 0x9
693 #define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO9 0xA
694 #define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO10 0xB
695 #define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO11 0xC
696 #define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO12 0xD
697 #define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO13 0xE
698 #define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO14 0xF
699 #define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO15 0x10
700 #define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO16 0x11
701 #define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO17 0x12
702 #define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO18 0x13
703 #define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO19 0x14
704 #define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO20 0x15
705 #define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO21 0x16
706 #define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO22 0x17
707 #define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO23 0x18
708 #define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO24 0x19
709 #define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO25 0x1A
710 #define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO26 0x1B
711 #define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO27 0x1C
712 #define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO28 0x1D
713 #define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO29 0x1E
714 #define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO30 0x1F
715 #define NVM_CFG1_GLOB_I2C_INTERRUPT_GPIO_GPIO31 0x20
716 /* Set aLOM FAN on GPIO */
717 #define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_MASK 0xFF000000
718 #define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_OFFSET 24
719 #define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_NA 0x0
720 #define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO0 0x1
721 #define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO1 0x2
722 #define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO2 0x3
723 #define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO3 0x4
724 #define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO4 0x5
725 #define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO5 0x6
726 #define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO6 0x7
727 #define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO7 0x8
728 #define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO8 0x9
729 #define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO9 0xA
730 #define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO10 0xB
731 #define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO11 0xC
732 #define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO12 0xD
733 #define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO13 0xE
734 #define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO14 0xF
735 #define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO15 0x10
736 #define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO16 0x11
737 #define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO17 0x12
738 #define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO18 0x13
739 #define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO19 0x14
740 #define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO20 0x15
741 #define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO21 0x16
742 #define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO22 0x17
743 #define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO23 0x18
744 #define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO24 0x19
745 #define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO25 0x1A
746 #define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO26 0x1B
747 #define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO27 0x1C
748 #define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO28 0x1D
749 #define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO29 0x1E
750 #define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO30 0x1F
751 #define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_GPIO_GPIO31 0x20
752 u32 device_capabilities; /* 0x88 */
753 #define NVM_CFG1_GLOB_DEVICE_CAPABILITIES_ETHERNET 0x1
754 #define NVM_CFG1_GLOB_DEVICE_CAPABILITIES_FCOE 0x2
755 #define NVM_CFG1_GLOB_DEVICE_CAPABILITIES_ISCSI 0x4
756 #define NVM_CFG1_GLOB_DEVICE_CAPABILITIES_ROCE 0x8
757 #define NVM_CFG1_GLOB_DEVICE_CAPABILITIES_IWARP 0x10
758 u32 power_dissipated; /* 0x8C */
759 #define NVM_CFG1_GLOB_POWER_DIS_D0_MASK 0x000000FF
760 #define NVM_CFG1_GLOB_POWER_DIS_D0_OFFSET 0
761 #define NVM_CFG1_GLOB_POWER_DIS_D1_MASK 0x0000FF00
762 #define NVM_CFG1_GLOB_POWER_DIS_D1_OFFSET 8
763 #define NVM_CFG1_GLOB_POWER_DIS_D2_MASK 0x00FF0000
764 #define NVM_CFG1_GLOB_POWER_DIS_D2_OFFSET 16
765 #define NVM_CFG1_GLOB_POWER_DIS_D3_MASK 0xFF000000
766 #define NVM_CFG1_GLOB_POWER_DIS_D3_OFFSET 24
767 u32 power_consumed; /* 0x90 */
768 #define NVM_CFG1_GLOB_POWER_CONS_D0_MASK 0x000000FF
769 #define NVM_CFG1_GLOB_POWER_CONS_D0_OFFSET 0
770 #define NVM_CFG1_GLOB_POWER_CONS_D1_MASK 0x0000FF00
771 #define NVM_CFG1_GLOB_POWER_CONS_D1_OFFSET 8
772 #define NVM_CFG1_GLOB_POWER_CONS_D2_MASK 0x00FF0000
773 #define NVM_CFG1_GLOB_POWER_CONS_D2_OFFSET 16
774 #define NVM_CFG1_GLOB_POWER_CONS_D3_MASK 0xFF000000
775 #define NVM_CFG1_GLOB_POWER_CONS_D3_OFFSET 24
776 u32 efi_version; /* 0x94 */
777 u32 multi_network_modes_capability; /* 0x98 */
778 #define NVM_CFG1_GLOB_MULTI_NETWORK_MODES_CAPABILITY_4X10G 0x1
779 #define NVM_CFG1_GLOB_MULTI_NETWORK_MODES_CAPABILITY_1X25G 0x2
780 #define NVM_CFG1_GLOB_MULTI_NETWORK_MODES_CAPABILITY_2X25G 0x4
781 #define NVM_CFG1_GLOB_MULTI_NETWORK_MODES_CAPABILITY_4X25G 0x8
782 #define NVM_CFG1_GLOB_MULTI_NETWORK_MODES_CAPABILITY_1X40G 0x10
783 #define NVM_CFG1_GLOB_MULTI_NETWORK_MODES_CAPABILITY_2X40G 0x20
784 #define NVM_CFG1_GLOB_MULTI_NETWORK_MODES_CAPABILITY_2X50G 0x40
785 #define NVM_CFG1_GLOB_MULTI_NETWORK_MODES_CAPABILITY_BB_1X100G \
787 #define NVM_CFG1_GLOB_MULTI_NETWORK_MODES_CAPABILITY_2X10G 0x100
789 u32 reserved1[12]; /* 0x9C */
790 u32 oem1_number[8]; /* 0xCC */
791 u32 oem2_number[8]; /* 0xEC */
792 u32 mps25_active_txfir_pre; /* 0x10C */
793 #define NVM_CFG1_GLOB_LANE0_ACT_TXFIR_PRE_MASK 0x000000FF
794 #define NVM_CFG1_GLOB_LANE0_ACT_TXFIR_PRE_OFFSET 0
795 #define NVM_CFG1_GLOB_LANE1_ACT_TXFIR_PRE_MASK 0x0000FF00
796 #define NVM_CFG1_GLOB_LANE1_ACT_TXFIR_PRE_OFFSET 8
797 #define NVM_CFG1_GLOB_LANE2_ACT_TXFIR_PRE_MASK 0x00FF0000
798 #define NVM_CFG1_GLOB_LANE2_ACT_TXFIR_PRE_OFFSET 16
799 #define NVM_CFG1_GLOB_LANE3_ACT_TXFIR_PRE_MASK 0xFF000000
800 #define NVM_CFG1_GLOB_LANE3_ACT_TXFIR_PRE_OFFSET 24
801 u32 mps25_active_txfir_main; /* 0x110 */
802 #define NVM_CFG1_GLOB_LANE0_ACT_TXFIR_MAIN_MASK 0x000000FF
803 #define NVM_CFG1_GLOB_LANE0_ACT_TXFIR_MAIN_OFFSET 0
804 #define NVM_CFG1_GLOB_LANE1_ACT_TXFIR_MAIN_MASK 0x0000FF00
805 #define NVM_CFG1_GLOB_LANE1_ACT_TXFIR_MAIN_OFFSET 8
806 #define NVM_CFG1_GLOB_LANE2_ACT_TXFIR_MAIN_MASK 0x00FF0000
807 #define NVM_CFG1_GLOB_LANE2_ACT_TXFIR_MAIN_OFFSET 16
808 #define NVM_CFG1_GLOB_LANE3_ACT_TXFIR_MAIN_MASK 0xFF000000
809 #define NVM_CFG1_GLOB_LANE3_ACT_TXFIR_MAIN_OFFSET 24
810 u32 mps25_active_txfir_post; /* 0x114 */
811 #define NVM_CFG1_GLOB_LANE0_ACT_TXFIR_POST_MASK 0x000000FF
812 #define NVM_CFG1_GLOB_LANE0_ACT_TXFIR_POST_OFFSET 0
813 #define NVM_CFG1_GLOB_LANE1_ACT_TXFIR_POST_MASK 0x0000FF00
814 #define NVM_CFG1_GLOB_LANE1_ACT_TXFIR_POST_OFFSET 8
815 #define NVM_CFG1_GLOB_LANE2_ACT_TXFIR_POST_MASK 0x00FF0000
816 #define NVM_CFG1_GLOB_LANE2_ACT_TXFIR_POST_OFFSET 16
817 #define NVM_CFG1_GLOB_LANE3_ACT_TXFIR_POST_MASK 0xFF000000
818 #define NVM_CFG1_GLOB_LANE3_ACT_TXFIR_POST_OFFSET 24
819 u32 features; /* 0x118 */
820 /* Set the Aux Fan on temperature */
821 #define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_VALUE_MASK 0x000000FF
822 #define NVM_CFG1_GLOB_ALOM_FAN_ON_AUX_VALUE_OFFSET 0
823 /* Set NC-SI package ID */
824 #define NVM_CFG1_GLOB_SLOT_ID_GPIO_MASK 0x0000FF00
825 #define NVM_CFG1_GLOB_SLOT_ID_GPIO_OFFSET 8
826 #define NVM_CFG1_GLOB_SLOT_ID_GPIO_NA 0x0
827 #define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO0 0x1
828 #define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO1 0x2
829 #define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO2 0x3
830 #define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO3 0x4
831 #define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO4 0x5
832 #define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO5 0x6
833 #define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO6 0x7
834 #define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO7 0x8
835 #define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO8 0x9
836 #define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO9 0xA
837 #define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO10 0xB
838 #define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO11 0xC
839 #define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO12 0xD
840 #define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO13 0xE
841 #define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO14 0xF
842 #define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO15 0x10
843 #define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO16 0x11
844 #define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO17 0x12
845 #define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO18 0x13
846 #define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO19 0x14
847 #define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO20 0x15
848 #define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO21 0x16
849 #define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO22 0x17
850 #define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO23 0x18
851 #define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO24 0x19
852 #define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO25 0x1A
853 #define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO26 0x1B
854 #define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO27 0x1C
855 #define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO28 0x1D
856 #define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO29 0x1E
857 #define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO30 0x1F
858 #define NVM_CFG1_GLOB_SLOT_ID_GPIO_GPIO31 0x20
859 /* PMBUS Clock GPIO */
860 #define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_MASK 0x00FF0000
861 #define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_OFFSET 16
862 #define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_NA 0x0
863 #define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO0 0x1
864 #define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO1 0x2
865 #define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO2 0x3
866 #define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO3 0x4
867 #define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO4 0x5
868 #define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO5 0x6
869 #define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO6 0x7
870 #define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO7 0x8
871 #define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO8 0x9
872 #define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO9 0xA
873 #define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO10 0xB
874 #define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO11 0xC
875 #define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO12 0xD
876 #define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO13 0xE
877 #define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO14 0xF
878 #define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO15 0x10
879 #define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO16 0x11
880 #define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO17 0x12
881 #define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO18 0x13
882 #define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO19 0x14
883 #define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO20 0x15
884 #define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO21 0x16
885 #define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO22 0x17
886 #define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO23 0x18
887 #define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO24 0x19
888 #define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO25 0x1A
889 #define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO26 0x1B
890 #define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO27 0x1C
891 #define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO28 0x1D
892 #define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO29 0x1E
893 #define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO30 0x1F
894 #define NVM_CFG1_GLOB_PMBUS_SCL_GPIO_GPIO31 0x20
895 /* PMBUS Data GPIO */
896 #define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_MASK 0xFF000000
897 #define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_OFFSET 24
898 #define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_NA 0x0
899 #define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO0 0x1
900 #define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO1 0x2
901 #define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO2 0x3
902 #define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO3 0x4
903 #define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO4 0x5
904 #define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO5 0x6
905 #define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO6 0x7
906 #define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO7 0x8
907 #define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO8 0x9
908 #define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO9 0xA
909 #define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO10 0xB
910 #define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO11 0xC
911 #define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO12 0xD
912 #define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO13 0xE
913 #define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO14 0xF
914 #define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO15 0x10
915 #define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO16 0x11
916 #define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO17 0x12
917 #define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO18 0x13
918 #define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO19 0x14
919 #define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO20 0x15
920 #define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO21 0x16
921 #define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO22 0x17
922 #define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO23 0x18
923 #define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO24 0x19
924 #define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO25 0x1A
925 #define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO26 0x1B
926 #define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO27 0x1C
927 #define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO28 0x1D
928 #define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO29 0x1E
929 #define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO30 0x1F
930 #define NVM_CFG1_GLOB_PMBUS_SDA_GPIO_GPIO31 0x20
931 u32 tx_rx_eq_25g_hlpc; /* 0x11C */
932 #define NVM_CFG1_GLOB_INDEX0_RX_TX_EQ_25G_HLPC_MASK 0x000000FF
933 #define NVM_CFG1_GLOB_INDEX0_RX_TX_EQ_25G_HLPC_OFFSET 0
934 #define NVM_CFG1_GLOB_INDEX1_RX_TX_EQ_25G_HLPC_MASK 0x0000FF00
935 #define NVM_CFG1_GLOB_INDEX1_RX_TX_EQ_25G_HLPC_OFFSET 8
936 #define NVM_CFG1_GLOB_INDEX2_RX_TX_EQ_25G_HLPC_MASK 0x00FF0000
937 #define NVM_CFG1_GLOB_INDEX2_RX_TX_EQ_25G_HLPC_OFFSET 16
938 #define NVM_CFG1_GLOB_INDEX3_RX_TX_EQ_25G_HLPC_MASK 0xFF000000
939 #define NVM_CFG1_GLOB_INDEX3_RX_TX_EQ_25G_HLPC_OFFSET 24
940 u32 tx_rx_eq_25g_llpc; /* 0x120 */
941 #define NVM_CFG1_GLOB_INDEX0_RX_TX_EQ_25G_LLPC_MASK 0x000000FF
942 #define NVM_CFG1_GLOB_INDEX0_RX_TX_EQ_25G_LLPC_OFFSET 0
943 #define NVM_CFG1_GLOB_INDEX1_RX_TX_EQ_25G_LLPC_MASK 0x0000FF00
944 #define NVM_CFG1_GLOB_INDEX1_RX_TX_EQ_25G_LLPC_OFFSET 8
945 #define NVM_CFG1_GLOB_INDEX2_RX_TX_EQ_25G_LLPC_MASK 0x00FF0000
946 #define NVM_CFG1_GLOB_INDEX2_RX_TX_EQ_25G_LLPC_OFFSET 16
947 #define NVM_CFG1_GLOB_INDEX3_RX_TX_EQ_25G_LLPC_MASK 0xFF000000
948 #define NVM_CFG1_GLOB_INDEX3_RX_TX_EQ_25G_LLPC_OFFSET 24
949 u32 tx_rx_eq_25g_ac; /* 0x124 */
950 #define NVM_CFG1_GLOB_INDEX0_RX_TX_EQ_25G_AC_MASK 0x000000FF
951 #define NVM_CFG1_GLOB_INDEX0_RX_TX_EQ_25G_AC_OFFSET 0
952 #define NVM_CFG1_GLOB_INDEX1_RX_TX_EQ_25G_AC_MASK 0x0000FF00
953 #define NVM_CFG1_GLOB_INDEX1_RX_TX_EQ_25G_AC_OFFSET 8
954 #define NVM_CFG1_GLOB_INDEX2_RX_TX_EQ_25G_AC_MASK 0x00FF0000
955 #define NVM_CFG1_GLOB_INDEX2_RX_TX_EQ_25G_AC_OFFSET 16
956 #define NVM_CFG1_GLOB_INDEX3_RX_TX_EQ_25G_AC_MASK 0xFF000000
957 #define NVM_CFG1_GLOB_INDEX3_RX_TX_EQ_25G_AC_OFFSET 24
958 u32 tx_rx_eq_10g_pc; /* 0x128 */
959 #define NVM_CFG1_GLOB_INDEX0_RX_TX_EQ_10G_PC_MASK 0x000000FF
960 #define NVM_CFG1_GLOB_INDEX0_RX_TX_EQ_10G_PC_OFFSET 0
961 #define NVM_CFG1_GLOB_INDEX1_RX_TX_EQ_10G_PC_MASK 0x0000FF00
962 #define NVM_CFG1_GLOB_INDEX1_RX_TX_EQ_10G_PC_OFFSET 8
963 #define NVM_CFG1_GLOB_INDEX2_RX_TX_EQ_10G_PC_MASK 0x00FF0000
964 #define NVM_CFG1_GLOB_INDEX2_RX_TX_EQ_10G_PC_OFFSET 16
965 #define NVM_CFG1_GLOB_INDEX3_RX_TX_EQ_10G_PC_MASK 0xFF000000
966 #define NVM_CFG1_GLOB_INDEX3_RX_TX_EQ_10G_PC_OFFSET 24
967 u32 tx_rx_eq_10g_ac; /* 0x12C */
968 #define NVM_CFG1_GLOB_INDEX0_RX_TX_EQ_10G_AC_MASK 0x000000FF
969 #define NVM_CFG1_GLOB_INDEX0_RX_TX_EQ_10G_AC_OFFSET 0
970 #define NVM_CFG1_GLOB_INDEX1_RX_TX_EQ_10G_AC_MASK 0x0000FF00
971 #define NVM_CFG1_GLOB_INDEX1_RX_TX_EQ_10G_AC_OFFSET 8
972 #define NVM_CFG1_GLOB_INDEX2_RX_TX_EQ_10G_AC_MASK 0x00FF0000
973 #define NVM_CFG1_GLOB_INDEX2_RX_TX_EQ_10G_AC_OFFSET 16
974 #define NVM_CFG1_GLOB_INDEX3_RX_TX_EQ_10G_AC_MASK 0xFF000000
975 #define NVM_CFG1_GLOB_INDEX3_RX_TX_EQ_10G_AC_OFFSET 24
976 u32 tx_rx_eq_1g; /* 0x130 */
977 #define NVM_CFG1_GLOB_INDEX0_RX_TX_EQ_1G_MASK 0x000000FF
978 #define NVM_CFG1_GLOB_INDEX0_RX_TX_EQ_1G_OFFSET 0
979 #define NVM_CFG1_GLOB_INDEX1_RX_TX_EQ_1G_MASK 0x0000FF00
980 #define NVM_CFG1_GLOB_INDEX1_RX_TX_EQ_1G_OFFSET 8
981 #define NVM_CFG1_GLOB_INDEX2_RX_TX_EQ_1G_MASK 0x00FF0000
982 #define NVM_CFG1_GLOB_INDEX2_RX_TX_EQ_1G_OFFSET 16
983 #define NVM_CFG1_GLOB_INDEX3_RX_TX_EQ_1G_MASK 0xFF000000
984 #define NVM_CFG1_GLOB_INDEX3_RX_TX_EQ_1G_OFFSET 24
985 u32 tx_rx_eq_25g_bt; /* 0x134 */
986 #define NVM_CFG1_GLOB_INDEX0_RX_TX_EQ_25G_BT_MASK 0x000000FF
987 #define NVM_CFG1_GLOB_INDEX0_RX_TX_EQ_25G_BT_OFFSET 0
988 #define NVM_CFG1_GLOB_INDEX1_RX_TX_EQ_25G_BT_MASK 0x0000FF00
989 #define NVM_CFG1_GLOB_INDEX1_RX_TX_EQ_25G_BT_OFFSET 8
990 #define NVM_CFG1_GLOB_INDEX2_RX_TX_EQ_25G_BT_MASK 0x00FF0000
991 #define NVM_CFG1_GLOB_INDEX2_RX_TX_EQ_25G_BT_OFFSET 16
992 #define NVM_CFG1_GLOB_INDEX3_RX_TX_EQ_25G_BT_MASK 0xFF000000
993 #define NVM_CFG1_GLOB_INDEX3_RX_TX_EQ_25G_BT_OFFSET 24
994 u32 tx_rx_eq_10g_bt; /* 0x138 */
995 #define NVM_CFG1_GLOB_INDEX0_RX_TX_EQ_10G_BT_MASK 0x000000FF
996 #define NVM_CFG1_GLOB_INDEX0_RX_TX_EQ_10G_BT_OFFSET 0
997 #define NVM_CFG1_GLOB_INDEX1_RX_TX_EQ_10G_BT_MASK 0x0000FF00
998 #define NVM_CFG1_GLOB_INDEX1_RX_TX_EQ_10G_BT_OFFSET 8
999 #define NVM_CFG1_GLOB_INDEX2_RX_TX_EQ_10G_BT_MASK 0x00FF0000
1000 #define NVM_CFG1_GLOB_INDEX2_RX_TX_EQ_10G_BT_OFFSET 16
1001 #define NVM_CFG1_GLOB_INDEX3_RX_TX_EQ_10G_BT_MASK 0xFF000000
1002 #define NVM_CFG1_GLOB_INDEX3_RX_TX_EQ_10G_BT_OFFSET 24
1003 u32 generic_cont4; /* 0x13C */
1004 #define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_MASK 0x000000FF
1005 #define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_OFFSET 0
1006 #define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_NA 0x0
1007 #define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO0 0x1
1008 #define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO1 0x2
1009 #define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO2 0x3
1010 #define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO3 0x4
1011 #define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO4 0x5
1012 #define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO5 0x6
1013 #define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO6 0x7
1014 #define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO7 0x8
1015 #define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO8 0x9
1016 #define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO9 0xA
1017 #define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO10 0xB
1018 #define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO11 0xC
1019 #define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO12 0xD
1020 #define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO13 0xE
1021 #define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO14 0xF
1022 #define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO15 0x10
1023 #define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO16 0x11
1024 #define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO17 0x12
1025 #define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO18 0x13
1026 #define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO19 0x14
1027 #define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO20 0x15
1028 #define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO21 0x16
1029 #define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO22 0x17
1030 #define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO23 0x18
1031 #define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO24 0x19
1032 #define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO25 0x1A
1033 #define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO26 0x1B
1034 #define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO27 0x1C
1035 #define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO28 0x1D
1036 #define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO29 0x1E
1037 #define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO30 0x1F
1038 #define NVM_CFG1_GLOB_THERMAL_ALARM_GPIO_GPIO31 0x20
1039 u32 reserved[58]; /* 0x140 */
1042 struct nvm_cfg1_path {
1043 u32 reserved[1]; /* 0x0 */
1046 struct nvm_cfg1_port {
1047 u32 reserved__m_relocated_to_option_123; /* 0x0 */
1048 u32 reserved__m_relocated_to_option_124; /* 0x4 */
1049 u32 generic_cont0; /* 0x8 */
1050 #define NVM_CFG1_PORT_LED_MODE_MASK 0x000000FF
1051 #define NVM_CFG1_PORT_LED_MODE_OFFSET 0
1052 #define NVM_CFG1_PORT_LED_MODE_MAC1 0x0
1053 #define NVM_CFG1_PORT_LED_MODE_PHY1 0x1
1054 #define NVM_CFG1_PORT_LED_MODE_PHY2 0x2
1055 #define NVM_CFG1_PORT_LED_MODE_PHY3 0x3
1056 #define NVM_CFG1_PORT_LED_MODE_MAC2 0x4
1057 #define NVM_CFG1_PORT_LED_MODE_PHY4 0x5
1058 #define NVM_CFG1_PORT_LED_MODE_PHY5 0x6
1059 #define NVM_CFG1_PORT_LED_MODE_PHY6 0x7
1060 #define NVM_CFG1_PORT_LED_MODE_MAC3 0x8
1061 #define NVM_CFG1_PORT_LED_MODE_PHY7 0x9
1062 #define NVM_CFG1_PORT_LED_MODE_PHY8 0xA
1063 #define NVM_CFG1_PORT_LED_MODE_PHY9 0xB
1064 #define NVM_CFG1_PORT_LED_MODE_MAC4 0xC
1065 #define NVM_CFG1_PORT_LED_MODE_PHY10 0xD
1066 #define NVM_CFG1_PORT_LED_MODE_PHY11 0xE
1067 #define NVM_CFG1_PORT_LED_MODE_PHY12 0xF
1068 #define NVM_CFG1_PORT_LED_MODE_BREAKOUT 0x10
1069 #define NVM_CFG1_PORT_ROCE_PRIORITY_MASK 0x0000FF00
1070 #define NVM_CFG1_PORT_ROCE_PRIORITY_OFFSET 8
1071 #define NVM_CFG1_PORT_DCBX_MODE_MASK 0x000F0000
1072 #define NVM_CFG1_PORT_DCBX_MODE_OFFSET 16
1073 #define NVM_CFG1_PORT_DCBX_MODE_DISABLED 0x0
1074 #define NVM_CFG1_PORT_DCBX_MODE_IEEE 0x1
1075 #define NVM_CFG1_PORT_DCBX_MODE_CEE 0x2
1076 #define NVM_CFG1_PORT_DCBX_MODE_DYNAMIC 0x3
1077 #define NVM_CFG1_PORT_DEFAULT_ENABLED_PROTOCOLS_MASK 0x00F00000
1078 #define NVM_CFG1_PORT_DEFAULT_ENABLED_PROTOCOLS_OFFSET 20
1079 #define NVM_CFG1_PORT_DEFAULT_ENABLED_PROTOCOLS_ETHERNET 0x1
1080 #define NVM_CFG1_PORT_DEFAULT_ENABLED_PROTOCOLS_FCOE 0x2
1081 #define NVM_CFG1_PORT_DEFAULT_ENABLED_PROTOCOLS_ISCSI 0x4
1082 /* GPIO for HW reset the PHY. In case it is the same for all ports,
1083 * need to set same value for all ports
1085 #define NVM_CFG1_PORT_EXT_PHY_RESET_MASK 0xFF000000
1086 #define NVM_CFG1_PORT_EXT_PHY_RESET_OFFSET 24
1087 #define NVM_CFG1_PORT_EXT_PHY_RESET_NA 0x0
1088 #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO0 0x1
1089 #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO1 0x2
1090 #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO2 0x3
1091 #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO3 0x4
1092 #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO4 0x5
1093 #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO5 0x6
1094 #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO6 0x7
1095 #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO7 0x8
1096 #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO8 0x9
1097 #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO9 0xA
1098 #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO10 0xB
1099 #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO11 0xC
1100 #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO12 0xD
1101 #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO13 0xE
1102 #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO14 0xF
1103 #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO15 0x10
1104 #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO16 0x11
1105 #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO17 0x12
1106 #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO18 0x13
1107 #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO19 0x14
1108 #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO20 0x15
1109 #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO21 0x16
1110 #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO22 0x17
1111 #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO23 0x18
1112 #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO24 0x19
1113 #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO25 0x1A
1114 #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO26 0x1B
1115 #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO27 0x1C
1116 #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO28 0x1D
1117 #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO29 0x1E
1118 #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO30 0x1F
1119 #define NVM_CFG1_PORT_EXT_PHY_RESET_GPIO31 0x20
1120 u32 pcie_cfg; /* 0xC */
1121 #define NVM_CFG1_PORT_RESERVED15_MASK 0x00000007
1122 #define NVM_CFG1_PORT_RESERVED15_OFFSET 0
1123 u32 features; /* 0x10 */
1124 #define NVM_CFG1_PORT_ENABLE_WOL_ON_ACPI_PATTERN_MASK 0x00000001
1125 #define NVM_CFG1_PORT_ENABLE_WOL_ON_ACPI_PATTERN_OFFSET 0
1126 #define NVM_CFG1_PORT_ENABLE_WOL_ON_ACPI_PATTERN_DISABLED 0x0
1127 #define NVM_CFG1_PORT_ENABLE_WOL_ON_ACPI_PATTERN_ENABLED 0x1
1128 #define NVM_CFG1_PORT_MAGIC_PACKET_WOL_MASK 0x00000002
1129 #define NVM_CFG1_PORT_MAGIC_PACKET_WOL_OFFSET 1
1130 #define NVM_CFG1_PORT_MAGIC_PACKET_WOL_DISABLED 0x0
1131 #define NVM_CFG1_PORT_MAGIC_PACKET_WOL_ENABLED 0x1
1132 u32 speed_cap_mask; /* 0x14 */
1133 #define NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_MASK 0x0000FFFF
1134 #define NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_OFFSET 0
1135 #define NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_1G 0x1
1136 #define NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_10G 0x2
1137 #define NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_25G 0x8
1138 #define NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_40G 0x10
1139 #define NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_50G 0x20
1140 #define NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_BB_100G 0x40
1141 #define NVM_CFG1_PORT_MFW_SPEED_CAPABILITY_MASK_MASK 0xFFFF0000
1142 #define NVM_CFG1_PORT_MFW_SPEED_CAPABILITY_MASK_OFFSET 16
1143 #define NVM_CFG1_PORT_MFW_SPEED_CAPABILITY_MASK_1G 0x1
1144 #define NVM_CFG1_PORT_MFW_SPEED_CAPABILITY_MASK_10G 0x2
1145 #define NVM_CFG1_PORT_MFW_SPEED_CAPABILITY_MASK_25G 0x8
1146 #define NVM_CFG1_PORT_MFW_SPEED_CAPABILITY_MASK_40G 0x10
1147 #define NVM_CFG1_PORT_MFW_SPEED_CAPABILITY_MASK_50G 0x20
1148 #define NVM_CFG1_PORT_MFW_SPEED_CAPABILITY_MASK_BB_100G 0x40
1149 u32 link_settings; /* 0x18 */
1150 #define NVM_CFG1_PORT_DRV_LINK_SPEED_MASK 0x0000000F
1151 #define NVM_CFG1_PORT_DRV_LINK_SPEED_OFFSET 0
1152 #define NVM_CFG1_PORT_DRV_LINK_SPEED_AUTONEG 0x0
1153 #define NVM_CFG1_PORT_DRV_LINK_SPEED_1G 0x1
1154 #define NVM_CFG1_PORT_DRV_LINK_SPEED_10G 0x2
1155 #define NVM_CFG1_PORT_DRV_LINK_SPEED_25G 0x4
1156 #define NVM_CFG1_PORT_DRV_LINK_SPEED_40G 0x5
1157 #define NVM_CFG1_PORT_DRV_LINK_SPEED_50G 0x6
1158 #define NVM_CFG1_PORT_DRV_LINK_SPEED_BB_100G 0x7
1159 #define NVM_CFG1_PORT_DRV_LINK_SPEED_SMARTLINQ 0x8
1160 #define NVM_CFG1_PORT_DRV_FLOW_CONTROL_MASK 0x00000070
1161 #define NVM_CFG1_PORT_DRV_FLOW_CONTROL_OFFSET 4
1162 #define NVM_CFG1_PORT_DRV_FLOW_CONTROL_AUTONEG 0x1
1163 #define NVM_CFG1_PORT_DRV_FLOW_CONTROL_RX 0x2
1164 #define NVM_CFG1_PORT_DRV_FLOW_CONTROL_TX 0x4
1165 #define NVM_CFG1_PORT_MFW_LINK_SPEED_MASK 0x00000780
1166 #define NVM_CFG1_PORT_MFW_LINK_SPEED_OFFSET 7
1167 #define NVM_CFG1_PORT_MFW_LINK_SPEED_AUTONEG 0x0
1168 #define NVM_CFG1_PORT_MFW_LINK_SPEED_1G 0x1
1169 #define NVM_CFG1_PORT_MFW_LINK_SPEED_10G 0x2
1170 #define NVM_CFG1_PORT_MFW_LINK_SPEED_25G 0x4
1171 #define NVM_CFG1_PORT_MFW_LINK_SPEED_40G 0x5
1172 #define NVM_CFG1_PORT_MFW_LINK_SPEED_50G 0x6
1173 #define NVM_CFG1_PORT_MFW_LINK_SPEED_BB_100G 0x7
1174 #define NVM_CFG1_PORT_MFW_LINK_SPEED_SMARTLINQ 0x8
1175 #define NVM_CFG1_PORT_MFW_FLOW_CONTROL_MASK 0x00003800
1176 #define NVM_CFG1_PORT_MFW_FLOW_CONTROL_OFFSET 11
1177 #define NVM_CFG1_PORT_MFW_FLOW_CONTROL_AUTONEG 0x1
1178 #define NVM_CFG1_PORT_MFW_FLOW_CONTROL_RX 0x2
1179 #define NVM_CFG1_PORT_MFW_FLOW_CONTROL_TX 0x4
1180 #define NVM_CFG1_PORT_OPTIC_MODULE_VENDOR_ENFORCEMENT_MASK \
1182 #define NVM_CFG1_PORT_OPTIC_MODULE_VENDOR_ENFORCEMENT_OFFSET 14
1183 #define NVM_CFG1_PORT_OPTIC_MODULE_VENDOR_ENFORCEMENT_DISABLED \
1185 #define NVM_CFG1_PORT_OPTIC_MODULE_VENDOR_ENFORCEMENT_ENABLED \
1187 #define NVM_CFG1_PORT_AN_25G_50G_OUI_MASK 0x00018000
1188 #define NVM_CFG1_PORT_AN_25G_50G_OUI_OFFSET 15
1189 #define NVM_CFG1_PORT_AN_25G_50G_OUI_CONSORTIUM 0x0
1190 #define NVM_CFG1_PORT_AN_25G_50G_OUI_BAM 0x1
1191 #define NVM_CFG1_PORT_FEC_FORCE_MODE_MASK 0x000E0000
1192 #define NVM_CFG1_PORT_FEC_FORCE_MODE_OFFSET 17
1193 #define NVM_CFG1_PORT_FEC_FORCE_MODE_NONE 0x0
1194 #define NVM_CFG1_PORT_FEC_FORCE_MODE_FIRECODE 0x1
1195 #define NVM_CFG1_PORT_FEC_FORCE_MODE_RS 0x2
1196 #define NVM_CFG1_PORT_FEC_FORCE_MODE_AUTO 0x7
1197 #define NVM_CFG1_PORT_FEC_AN_MODE_MASK 0x00700000
1198 #define NVM_CFG1_PORT_FEC_AN_MODE_OFFSET 20
1199 #define NVM_CFG1_PORT_FEC_AN_MODE_NONE 0x0
1200 #define NVM_CFG1_PORT_FEC_AN_MODE_10G_FIRECODE 0x1
1201 #define NVM_CFG1_PORT_FEC_AN_MODE_25G_FIRECODE 0x2
1202 #define NVM_CFG1_PORT_FEC_AN_MODE_10G_AND_25G_FIRECODE 0x3
1203 #define NVM_CFG1_PORT_FEC_AN_MODE_25G_RS 0x4
1204 #define NVM_CFG1_PORT_FEC_AN_MODE_25G_FIRECODE_AND_RS 0x5
1205 #define NVM_CFG1_PORT_FEC_AN_MODE_ALL 0x6
1206 u32 phy_cfg; /* 0x1C */
1207 #define NVM_CFG1_PORT_OPTIONAL_LINK_MODES_MASK 0x0000FFFF
1208 #define NVM_CFG1_PORT_OPTIONAL_LINK_MODES_OFFSET 0
1209 #define NVM_CFG1_PORT_OPTIONAL_LINK_MODES_HIGIG 0x1
1210 #define NVM_CFG1_PORT_OPTIONAL_LINK_MODES_SCRAMBLER 0x2
1211 #define NVM_CFG1_PORT_OPTIONAL_LINK_MODES_FIBER 0x4
1212 #define NVM_CFG1_PORT_OPTIONAL_LINK_MODES_DISABLE_CL72_AN 0x8
1213 #define NVM_CFG1_PORT_OPTIONAL_LINK_MODES_DISABLE_FEC_AN 0x10
1214 #define NVM_CFG1_PORT_SERDES_NET_INTERFACE_MASK 0x00FF0000
1215 #define NVM_CFG1_PORT_SERDES_NET_INTERFACE_OFFSET 16
1216 #define NVM_CFG1_PORT_SERDES_NET_INTERFACE_BYPASS 0x0
1217 #define NVM_CFG1_PORT_SERDES_NET_INTERFACE_KR 0x2
1218 #define NVM_CFG1_PORT_SERDES_NET_INTERFACE_KR2 0x3
1219 #define NVM_CFG1_PORT_SERDES_NET_INTERFACE_KR4 0x4
1220 #define NVM_CFG1_PORT_SERDES_NET_INTERFACE_XFI 0x8
1221 #define NVM_CFG1_PORT_SERDES_NET_INTERFACE_SFI 0x9
1222 #define NVM_CFG1_PORT_SERDES_NET_INTERFACE_1000X 0xB
1223 #define NVM_CFG1_PORT_SERDES_NET_INTERFACE_SGMII 0xC
1224 #define NVM_CFG1_PORT_SERDES_NET_INTERFACE_XLAUI 0x11
1225 #define NVM_CFG1_PORT_SERDES_NET_INTERFACE_XLPPI 0x12
1226 #define NVM_CFG1_PORT_SERDES_NET_INTERFACE_CAUI 0x21
1227 #define NVM_CFG1_PORT_SERDES_NET_INTERFACE_CPPI 0x22
1228 #define NVM_CFG1_PORT_SERDES_NET_INTERFACE_25GAUI 0x31
1229 #define NVM_CFG1_PORT_AN_MODE_MASK 0xFF000000
1230 #define NVM_CFG1_PORT_AN_MODE_OFFSET 24
1231 #define NVM_CFG1_PORT_AN_MODE_NONE 0x0
1232 #define NVM_CFG1_PORT_AN_MODE_CL73 0x1
1233 #define NVM_CFG1_PORT_AN_MODE_CL37 0x2
1234 #define NVM_CFG1_PORT_AN_MODE_CL73_BAM 0x3
1235 #define NVM_CFG1_PORT_AN_MODE_BB_CL37_BAM 0x4
1236 #define NVM_CFG1_PORT_AN_MODE_BB_HPAM 0x5
1237 #define NVM_CFG1_PORT_AN_MODE_BB_SGMII 0x6
1238 u32 mgmt_traffic; /* 0x20 */
1239 #define NVM_CFG1_PORT_RESERVED61_MASK 0x0000000F
1240 #define NVM_CFG1_PORT_RESERVED61_OFFSET 0
1241 u32 ext_phy; /* 0x24 */
1242 #define NVM_CFG1_PORT_EXTERNAL_PHY_TYPE_MASK 0x000000FF
1243 #define NVM_CFG1_PORT_EXTERNAL_PHY_TYPE_OFFSET 0
1244 #define NVM_CFG1_PORT_EXTERNAL_PHY_TYPE_NONE 0x0
1245 #define NVM_CFG1_PORT_EXTERNAL_PHY_TYPE_BCM8485X 0x1
1246 #define NVM_CFG1_PORT_EXTERNAL_PHY_ADDRESS_MASK 0x0000FF00
1247 #define NVM_CFG1_PORT_EXTERNAL_PHY_ADDRESS_OFFSET 8
1248 /* EEE power saving mode */
1249 #define NVM_CFG1_PORT_EEE_POWER_SAVING_MODE_MASK 0x00FF0000
1250 #define NVM_CFG1_PORT_EEE_POWER_SAVING_MODE_OFFSET 16
1251 #define NVM_CFG1_PORT_EEE_POWER_SAVING_MODE_DISABLED 0x0
1252 #define NVM_CFG1_PORT_EEE_POWER_SAVING_MODE_BALANCED 0x1
1253 #define NVM_CFG1_PORT_EEE_POWER_SAVING_MODE_AGGRESSIVE 0x2
1254 #define NVM_CFG1_PORT_EEE_POWER_SAVING_MODE_LOW_LATENCY 0x3
1255 u32 mba_cfg1; /* 0x28 */
1256 #define NVM_CFG1_PORT_PREBOOT_OPROM_MASK 0x00000001
1257 #define NVM_CFG1_PORT_PREBOOT_OPROM_OFFSET 0
1258 #define NVM_CFG1_PORT_PREBOOT_OPROM_DISABLED 0x0
1259 #define NVM_CFG1_PORT_PREBOOT_OPROM_ENABLED 0x1
1260 #define NVM_CFG1_PORT_RESERVED__M_MBA_BOOT_TYPE_MASK 0x00000006
1261 #define NVM_CFG1_PORT_RESERVED__M_MBA_BOOT_TYPE_OFFSET 1
1262 #define NVM_CFG1_PORT_MBA_DELAY_TIME_MASK 0x00000078
1263 #define NVM_CFG1_PORT_MBA_DELAY_TIME_OFFSET 3
1264 #define NVM_CFG1_PORT_MBA_SETUP_HOT_KEY_MASK 0x00000080
1265 #define NVM_CFG1_PORT_MBA_SETUP_HOT_KEY_OFFSET 7
1266 #define NVM_CFG1_PORT_MBA_SETUP_HOT_KEY_CTRL_S 0x0
1267 #define NVM_CFG1_PORT_MBA_SETUP_HOT_KEY_CTRL_B 0x1
1268 #define NVM_CFG1_PORT_MBA_HIDE_SETUP_PROMPT_MASK 0x00000100
1269 #define NVM_CFG1_PORT_MBA_HIDE_SETUP_PROMPT_OFFSET 8
1270 #define NVM_CFG1_PORT_MBA_HIDE_SETUP_PROMPT_DISABLED 0x0
1271 #define NVM_CFG1_PORT_MBA_HIDE_SETUP_PROMPT_ENABLED 0x1
1272 #define NVM_CFG1_PORT_RESERVED5_MASK 0x0001FE00
1273 #define NVM_CFG1_PORT_RESERVED5_OFFSET 9
1274 #define NVM_CFG1_PORT_PREBOOT_LINK_SPEED_MASK 0x001E0000
1275 #define NVM_CFG1_PORT_PREBOOT_LINK_SPEED_OFFSET 17
1276 #define NVM_CFG1_PORT_PREBOOT_LINK_SPEED_AUTONEG 0x0
1277 #define NVM_CFG1_PORT_PREBOOT_LINK_SPEED_1G 0x1
1278 #define NVM_CFG1_PORT_PREBOOT_LINK_SPEED_10G 0x2
1279 #define NVM_CFG1_PORT_PREBOOT_LINK_SPEED_25G 0x4
1280 #define NVM_CFG1_PORT_PREBOOT_LINK_SPEED_40G 0x5
1281 #define NVM_CFG1_PORT_PREBOOT_LINK_SPEED_50G 0x6
1282 #define NVM_CFG1_PORT_PREBOOT_LINK_SPEED_BB_100G 0x7
1283 #define NVM_CFG1_PORT_PREBOOT_LINK_SPEED_SMARTLINQ 0x8
1284 #define NVM_CFG1_PORT_RESERVED__M_MBA_BOOT_RETRY_COUNT_MASK \
1286 #define NVM_CFG1_PORT_RESERVED__M_MBA_BOOT_RETRY_COUNT_OFFSET 21
1287 u32 mba_cfg2; /* 0x2C */
1288 #define NVM_CFG1_PORT_RESERVED65_MASK 0x0000FFFF
1289 #define NVM_CFG1_PORT_RESERVED65_OFFSET 0
1290 #define NVM_CFG1_PORT_RESERVED66_MASK 0x00010000
1291 #define NVM_CFG1_PORT_RESERVED66_OFFSET 16
1292 u32 vf_cfg; /* 0x30 */
1293 #define NVM_CFG1_PORT_RESERVED8_MASK 0x0000FFFF
1294 #define NVM_CFG1_PORT_RESERVED8_OFFSET 0
1295 #define NVM_CFG1_PORT_RESERVED6_MASK 0x000F0000
1296 #define NVM_CFG1_PORT_RESERVED6_OFFSET 16
1297 struct nvm_cfg_mac_address lldp_mac_address; /* 0x34 */
1298 u32 led_port_settings; /* 0x3C */
1299 #define NVM_CFG1_PORT_LANE_LED_SPD_0_SEL_MASK 0x000000FF
1300 #define NVM_CFG1_PORT_LANE_LED_SPD_0_SEL_OFFSET 0
1301 #define NVM_CFG1_PORT_LANE_LED_SPD_1_SEL_MASK 0x0000FF00
1302 #define NVM_CFG1_PORT_LANE_LED_SPD_1_SEL_OFFSET 8
1303 #define NVM_CFG1_PORT_LANE_LED_SPD_2_SEL_MASK 0x00FF0000
1304 #define NVM_CFG1_PORT_LANE_LED_SPD_2_SEL_OFFSET 16
1305 #define NVM_CFG1_PORT_LANE_LED_SPD__SEL_1G 0x1
1306 #define NVM_CFG1_PORT_LANE_LED_SPD__SEL_10G 0x2
1307 #define NVM_CFG1_PORT_LANE_LED_SPD__SEL_25G 0x8
1308 #define NVM_CFG1_PORT_LANE_LED_SPD__SEL_40G 0x10
1309 #define NVM_CFG1_PORT_LANE_LED_SPD__SEL_50G 0x20
1310 #define NVM_CFG1_PORT_LANE_LED_SPD__SEL_BB_100G 0x40
1311 u32 transceiver_00; /* 0x40 */
1312 /* Define for mapping of transceiver signal module absent */
1313 #define NVM_CFG1_PORT_TRANS_MODULE_ABS_MASK 0x000000FF
1314 #define NVM_CFG1_PORT_TRANS_MODULE_ABS_OFFSET 0
1315 #define NVM_CFG1_PORT_TRANS_MODULE_ABS_NA 0x0
1316 #define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO0 0x1
1317 #define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO1 0x2
1318 #define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO2 0x3
1319 #define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO3 0x4
1320 #define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO4 0x5
1321 #define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO5 0x6
1322 #define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO6 0x7
1323 #define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO7 0x8
1324 #define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO8 0x9
1325 #define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO9 0xA
1326 #define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO10 0xB
1327 #define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO11 0xC
1328 #define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO12 0xD
1329 #define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO13 0xE
1330 #define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO14 0xF
1331 #define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO15 0x10
1332 #define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO16 0x11
1333 #define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO17 0x12
1334 #define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO18 0x13
1335 #define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO19 0x14
1336 #define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO20 0x15
1337 #define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO21 0x16
1338 #define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO22 0x17
1339 #define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO23 0x18
1340 #define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO24 0x19
1341 #define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO25 0x1A
1342 #define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO26 0x1B
1343 #define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO27 0x1C
1344 #define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO28 0x1D
1345 #define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO29 0x1E
1346 #define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO30 0x1F
1347 #define NVM_CFG1_PORT_TRANS_MODULE_ABS_GPIO31 0x20
1348 /* Define the GPIO mux settings to switch i2c mux to this port */
1349 #define NVM_CFG1_PORT_I2C_MUX_SEL_VALUE_0_MASK 0x00000F00
1350 #define NVM_CFG1_PORT_I2C_MUX_SEL_VALUE_0_OFFSET 8
1351 #define NVM_CFG1_PORT_I2C_MUX_SEL_VALUE_1_MASK 0x0000F000
1352 #define NVM_CFG1_PORT_I2C_MUX_SEL_VALUE_1_OFFSET 12
1353 u32 device_ids; /* 0x44 */
1354 #define NVM_CFG1_PORT_ETH_DID_SUFFIX_MASK 0x000000FF
1355 #define NVM_CFG1_PORT_ETH_DID_SUFFIX_OFFSET 0
1356 #define NVM_CFG1_PORT_FCOE_DID_SUFFIX_MASK 0x0000FF00
1357 #define NVM_CFG1_PORT_FCOE_DID_SUFFIX_OFFSET 8
1358 #define NVM_CFG1_PORT_ISCSI_DID_SUFFIX_MASK 0x00FF0000
1359 #define NVM_CFG1_PORT_ISCSI_DID_SUFFIX_OFFSET 16
1360 #define NVM_CFG1_PORT_RESERVED_DID_SUFFIX_MASK 0xFF000000
1361 #define NVM_CFG1_PORT_RESERVED_DID_SUFFIX_OFFSET 24
1362 u32 board_cfg; /* 0x48 */
1363 /* This field defines the board technology
1364 * (backpane,transceiver,external PHY)
1366 #define NVM_CFG1_PORT_PORT_TYPE_MASK 0x000000FF
1367 #define NVM_CFG1_PORT_PORT_TYPE_OFFSET 0
1368 #define NVM_CFG1_PORT_PORT_TYPE_UNDEFINED 0x0
1369 #define NVM_CFG1_PORT_PORT_TYPE_MODULE 0x1
1370 #define NVM_CFG1_PORT_PORT_TYPE_BACKPLANE 0x2
1371 #define NVM_CFG1_PORT_PORT_TYPE_EXT_PHY 0x3
1372 #define NVM_CFG1_PORT_PORT_TYPE_MODULE_SLAVE 0x4
1373 /* This field defines the GPIO mapped to tx_disable signal in SFP */
1374 #define NVM_CFG1_PORT_TX_DISABLE_MASK 0x0000FF00
1375 #define NVM_CFG1_PORT_TX_DISABLE_OFFSET 8
1376 #define NVM_CFG1_PORT_TX_DISABLE_NA 0x0
1377 #define NVM_CFG1_PORT_TX_DISABLE_GPIO0 0x1
1378 #define NVM_CFG1_PORT_TX_DISABLE_GPIO1 0x2
1379 #define NVM_CFG1_PORT_TX_DISABLE_GPIO2 0x3
1380 #define NVM_CFG1_PORT_TX_DISABLE_GPIO3 0x4
1381 #define NVM_CFG1_PORT_TX_DISABLE_GPIO4 0x5
1382 #define NVM_CFG1_PORT_TX_DISABLE_GPIO5 0x6
1383 #define NVM_CFG1_PORT_TX_DISABLE_GPIO6 0x7
1384 #define NVM_CFG1_PORT_TX_DISABLE_GPIO7 0x8
1385 #define NVM_CFG1_PORT_TX_DISABLE_GPIO8 0x9
1386 #define NVM_CFG1_PORT_TX_DISABLE_GPIO9 0xA
1387 #define NVM_CFG1_PORT_TX_DISABLE_GPIO10 0xB
1388 #define NVM_CFG1_PORT_TX_DISABLE_GPIO11 0xC
1389 #define NVM_CFG1_PORT_TX_DISABLE_GPIO12 0xD
1390 #define NVM_CFG1_PORT_TX_DISABLE_GPIO13 0xE
1391 #define NVM_CFG1_PORT_TX_DISABLE_GPIO14 0xF
1392 #define NVM_CFG1_PORT_TX_DISABLE_GPIO15 0x10
1393 #define NVM_CFG1_PORT_TX_DISABLE_GPIO16 0x11
1394 #define NVM_CFG1_PORT_TX_DISABLE_GPIO17 0x12
1395 #define NVM_CFG1_PORT_TX_DISABLE_GPIO18 0x13
1396 #define NVM_CFG1_PORT_TX_DISABLE_GPIO19 0x14
1397 #define NVM_CFG1_PORT_TX_DISABLE_GPIO20 0x15
1398 #define NVM_CFG1_PORT_TX_DISABLE_GPIO21 0x16
1399 #define NVM_CFG1_PORT_TX_DISABLE_GPIO22 0x17
1400 #define NVM_CFG1_PORT_TX_DISABLE_GPIO23 0x18
1401 #define NVM_CFG1_PORT_TX_DISABLE_GPIO24 0x19
1402 #define NVM_CFG1_PORT_TX_DISABLE_GPIO25 0x1A
1403 #define NVM_CFG1_PORT_TX_DISABLE_GPIO26 0x1B
1404 #define NVM_CFG1_PORT_TX_DISABLE_GPIO27 0x1C
1405 #define NVM_CFG1_PORT_TX_DISABLE_GPIO28 0x1D
1406 #define NVM_CFG1_PORT_TX_DISABLE_GPIO29 0x1E
1407 #define NVM_CFG1_PORT_TX_DISABLE_GPIO30 0x1F
1408 #define NVM_CFG1_PORT_TX_DISABLE_GPIO31 0x20
1409 u32 mnm_10g_cap; /* 0x4C */
1410 #define NVM_CFG1_PORT_MNM_10G_DRV_SPEED_CAPABILITY_MASK_MASK \
1412 #define NVM_CFG1_PORT_MNM_10G_DRV_SPEED_CAPABILITY_MASK_OFFSET 0
1413 #define NVM_CFG1_PORT_MNM_10G_DRV_SPEED_CAPABILITY_MASK_1G 0x1
1414 #define NVM_CFG1_PORT_MNM_10G_DRV_SPEED_CAPABILITY_MASK_10G 0x2
1415 #define NVM_CFG1_PORT_MNM_10G_DRV_SPEED_CAPABILITY_MASK_25G 0x8
1416 #define NVM_CFG1_PORT_MNM_10G_DRV_SPEED_CAPABILITY_MASK_40G 0x10
1417 #define NVM_CFG1_PORT_MNM_10G_DRV_SPEED_CAPABILITY_MASK_50G 0x20
1419 NVM_CFG1_PORT_MNM_10G_DRV_SPEED_CAPABILITY_MASK_BB_100G 0x40
1420 #define NVM_CFG1_PORT_MNM_10G_MFW_SPEED_CAPABILITY_MASK_MASK \
1422 #define NVM_CFG1_PORT_MNM_10G_MFW_SPEED_CAPABILITY_MASK_OFFSET \
1424 #define NVM_CFG1_PORT_MNM_10G_MFW_SPEED_CAPABILITY_MASK_1G 0x1
1425 #define NVM_CFG1_PORT_MNM_10G_MFW_SPEED_CAPABILITY_MASK_10G 0x2
1426 #define NVM_CFG1_PORT_MNM_10G_MFW_SPEED_CAPABILITY_MASK_25G 0x8
1427 #define NVM_CFG1_PORT_MNM_10G_MFW_SPEED_CAPABILITY_MASK_40G 0x10
1428 #define NVM_CFG1_PORT_MNM_10G_MFW_SPEED_CAPABILITY_MASK_50G 0x20
1430 NVM_CFG1_PORT_MNM_10G_MFW_SPEED_CAPABILITY_MASK_BB_100G 0x40
1431 u32 mnm_10g_ctrl; /* 0x50 */
1432 #define NVM_CFG1_PORT_MNM_10G_DRV_LINK_SPEED_MASK 0x0000000F
1433 #define NVM_CFG1_PORT_MNM_10G_DRV_LINK_SPEED_OFFSET 0
1434 #define NVM_CFG1_PORT_MNM_10G_DRV_LINK_SPEED_AUTONEG 0x0
1435 #define NVM_CFG1_PORT_MNM_10G_DRV_LINK_SPEED_1G 0x1
1436 #define NVM_CFG1_PORT_MNM_10G_DRV_LINK_SPEED_10G 0x2
1437 #define NVM_CFG1_PORT_MNM_10G_DRV_LINK_SPEED_25G 0x4
1438 #define NVM_CFG1_PORT_MNM_10G_DRV_LINK_SPEED_40G 0x5
1439 #define NVM_CFG1_PORT_MNM_10G_DRV_LINK_SPEED_50G 0x6
1440 #define NVM_CFG1_PORT_MNM_10G_DRV_LINK_SPEED_BB_100G 0x7
1441 #define NVM_CFG1_PORT_MNM_10G_DRV_LINK_SPEED_SMARTLINQ 0x8
1442 #define NVM_CFG1_PORT_MNM_10G_MFW_LINK_SPEED_MASK 0x000000F0
1443 #define NVM_CFG1_PORT_MNM_10G_MFW_LINK_SPEED_OFFSET 4
1444 #define NVM_CFG1_PORT_MNM_10G_MFW_LINK_SPEED_AUTONEG 0x0
1445 #define NVM_CFG1_PORT_MNM_10G_MFW_LINK_SPEED_1G 0x1
1446 #define NVM_CFG1_PORT_MNM_10G_MFW_LINK_SPEED_10G 0x2
1447 #define NVM_CFG1_PORT_MNM_10G_MFW_LINK_SPEED_25G 0x4
1448 #define NVM_CFG1_PORT_MNM_10G_MFW_LINK_SPEED_40G 0x5
1449 #define NVM_CFG1_PORT_MNM_10G_MFW_LINK_SPEED_50G 0x6
1450 #define NVM_CFG1_PORT_MNM_10G_MFW_LINK_SPEED_BB_100G 0x7
1451 #define NVM_CFG1_PORT_MNM_10G_MFW_LINK_SPEED_SMARTLINQ 0x8
1452 /* This field defines the board technology
1453 * (backpane,transceiver,external PHY)
1455 #define NVM_CFG1_PORT_MNM_10G_PORT_TYPE_MASK 0x0000FF00
1456 #define NVM_CFG1_PORT_MNM_10G_PORT_TYPE_OFFSET 8
1457 #define NVM_CFG1_PORT_MNM_10G_PORT_TYPE_UNDEFINED 0x0
1458 #define NVM_CFG1_PORT_MNM_10G_PORT_TYPE_MODULE 0x1
1459 #define NVM_CFG1_PORT_MNM_10G_PORT_TYPE_BACKPLANE 0x2
1460 #define NVM_CFG1_PORT_MNM_10G_PORT_TYPE_EXT_PHY 0x3
1461 #define NVM_CFG1_PORT_MNM_10G_PORT_TYPE_MODULE_SLAVE 0x4
1462 #define NVM_CFG1_PORT_MNM_10G_SERDES_NET_INTERFACE_MASK \
1464 #define NVM_CFG1_PORT_MNM_10G_SERDES_NET_INTERFACE_OFFSET 16
1465 #define NVM_CFG1_PORT_MNM_10G_SERDES_NET_INTERFACE_BYPASS 0x0
1466 #define NVM_CFG1_PORT_MNM_10G_SERDES_NET_INTERFACE_KR 0x2
1467 #define NVM_CFG1_PORT_MNM_10G_SERDES_NET_INTERFACE_KR2 0x3
1468 #define NVM_CFG1_PORT_MNM_10G_SERDES_NET_INTERFACE_KR4 0x4
1469 #define NVM_CFG1_PORT_MNM_10G_SERDES_NET_INTERFACE_XFI 0x8
1470 #define NVM_CFG1_PORT_MNM_10G_SERDES_NET_INTERFACE_SFI 0x9
1471 #define NVM_CFG1_PORT_MNM_10G_SERDES_NET_INTERFACE_1000X 0xB
1472 #define NVM_CFG1_PORT_MNM_10G_SERDES_NET_INTERFACE_SGMII 0xC
1473 #define NVM_CFG1_PORT_MNM_10G_SERDES_NET_INTERFACE_XLAUI 0x11
1474 #define NVM_CFG1_PORT_MNM_10G_SERDES_NET_INTERFACE_XLPPI 0x12
1475 #define NVM_CFG1_PORT_MNM_10G_SERDES_NET_INTERFACE_CAUI 0x21
1476 #define NVM_CFG1_PORT_MNM_10G_SERDES_NET_INTERFACE_CPPI 0x22
1477 #define NVM_CFG1_PORT_MNM_10G_SERDES_NET_INTERFACE_25GAUI 0x31
1478 #define NVM_CFG1_PORT_MNM_10G_ETH_DID_SUFFIX_MASK 0xFF000000
1479 #define NVM_CFG1_PORT_MNM_10G_ETH_DID_SUFFIX_OFFSET 24
1480 u32 mnm_10g_misc; /* 0x54 */
1481 #define NVM_CFG1_PORT_MNM_10G_FEC_FORCE_MODE_MASK 0x00000007
1482 #define NVM_CFG1_PORT_MNM_10G_FEC_FORCE_MODE_OFFSET 0
1483 #define NVM_CFG1_PORT_MNM_10G_FEC_FORCE_MODE_NONE 0x0
1484 #define NVM_CFG1_PORT_MNM_10G_FEC_FORCE_MODE_FIRECODE 0x1
1485 #define NVM_CFG1_PORT_MNM_10G_FEC_FORCE_MODE_RS 0x2
1486 #define NVM_CFG1_PORT_MNM_10G_FEC_FORCE_MODE_AUTO 0x7
1487 u32 mnm_25g_cap; /* 0x58 */
1488 #define NVM_CFG1_PORT_MNM_25G_DRV_SPEED_CAPABILITY_MASK_MASK \
1490 #define NVM_CFG1_PORT_MNM_25G_DRV_SPEED_CAPABILITY_MASK_OFFSET 0
1491 #define NVM_CFG1_PORT_MNM_25G_DRV_SPEED_CAPABILITY_MASK_1G 0x1
1492 #define NVM_CFG1_PORT_MNM_25G_DRV_SPEED_CAPABILITY_MASK_10G 0x2
1493 #define NVM_CFG1_PORT_MNM_25G_DRV_SPEED_CAPABILITY_MASK_25G 0x8
1494 #define NVM_CFG1_PORT_MNM_25G_DRV_SPEED_CAPABILITY_MASK_40G 0x10
1495 #define NVM_CFG1_PORT_MNM_25G_DRV_SPEED_CAPABILITY_MASK_50G 0x20
1497 NVM_CFG1_PORT_MNM_25G_DRV_SPEED_CAPABILITY_MASK_BB_100G 0x40
1498 #define NVM_CFG1_PORT_MNM_25G_MFW_SPEED_CAPABILITY_MASK_MASK \
1500 #define NVM_CFG1_PORT_MNM_25G_MFW_SPEED_CAPABILITY_MASK_OFFSET \
1502 #define NVM_CFG1_PORT_MNM_25G_MFW_SPEED_CAPABILITY_MASK_1G 0x1
1503 #define NVM_CFG1_PORT_MNM_25G_MFW_SPEED_CAPABILITY_MASK_10G 0x2
1504 #define NVM_CFG1_PORT_MNM_25G_MFW_SPEED_CAPABILITY_MASK_25G 0x8
1505 #define NVM_CFG1_PORT_MNM_25G_MFW_SPEED_CAPABILITY_MASK_40G 0x10
1506 #define NVM_CFG1_PORT_MNM_25G_MFW_SPEED_CAPABILITY_MASK_50G 0x20
1508 NVM_CFG1_PORT_MNM_25G_MFW_SPEED_CAPABILITY_MASK_BB_100G 0x40
1509 u32 mnm_25g_ctrl; /* 0x5C */
1510 #define NVM_CFG1_PORT_MNM_25G_DRV_LINK_SPEED_MASK 0x0000000F
1511 #define NVM_CFG1_PORT_MNM_25G_DRV_LINK_SPEED_OFFSET 0
1512 #define NVM_CFG1_PORT_MNM_25G_DRV_LINK_SPEED_AUTONEG 0x0
1513 #define NVM_CFG1_PORT_MNM_25G_DRV_LINK_SPEED_1G 0x1
1514 #define NVM_CFG1_PORT_MNM_25G_DRV_LINK_SPEED_10G 0x2
1515 #define NVM_CFG1_PORT_MNM_25G_DRV_LINK_SPEED_25G 0x4
1516 #define NVM_CFG1_PORT_MNM_25G_DRV_LINK_SPEED_40G 0x5
1517 #define NVM_CFG1_PORT_MNM_25G_DRV_LINK_SPEED_50G 0x6
1518 #define NVM_CFG1_PORT_MNM_25G_DRV_LINK_SPEED_BB_100G 0x7
1519 #define NVM_CFG1_PORT_MNM_25G_DRV_LINK_SPEED_SMARTLINQ 0x8
1520 #define NVM_CFG1_PORT_MNM_25G_MFW_LINK_SPEED_MASK 0x000000F0
1521 #define NVM_CFG1_PORT_MNM_25G_MFW_LINK_SPEED_OFFSET 4
1522 #define NVM_CFG1_PORT_MNM_25G_MFW_LINK_SPEED_AUTONEG 0x0
1523 #define NVM_CFG1_PORT_MNM_25G_MFW_LINK_SPEED_1G 0x1
1524 #define NVM_CFG1_PORT_MNM_25G_MFW_LINK_SPEED_10G 0x2
1525 #define NVM_CFG1_PORT_MNM_25G_MFW_LINK_SPEED_25G 0x4
1526 #define NVM_CFG1_PORT_MNM_25G_MFW_LINK_SPEED_40G 0x5
1527 #define NVM_CFG1_PORT_MNM_25G_MFW_LINK_SPEED_50G 0x6
1528 #define NVM_CFG1_PORT_MNM_25G_MFW_LINK_SPEED_BB_100G 0x7
1529 #define NVM_CFG1_PORT_MNM_25G_MFW_LINK_SPEED_SMARTLINQ 0x8
1530 /* This field defines the board technology
1531 * (backpane,transceiver,external PHY)
1533 #define NVM_CFG1_PORT_MNM_25G_PORT_TYPE_MASK 0x0000FF00
1534 #define NVM_CFG1_PORT_MNM_25G_PORT_TYPE_OFFSET 8
1535 #define NVM_CFG1_PORT_MNM_25G_PORT_TYPE_UNDEFINED 0x0
1536 #define NVM_CFG1_PORT_MNM_25G_PORT_TYPE_MODULE 0x1
1537 #define NVM_CFG1_PORT_MNM_25G_PORT_TYPE_BACKPLANE 0x2
1538 #define NVM_CFG1_PORT_MNM_25G_PORT_TYPE_EXT_PHY 0x3
1539 #define NVM_CFG1_PORT_MNM_25G_PORT_TYPE_MODULE_SLAVE 0x4
1540 #define NVM_CFG1_PORT_MNM_25G_SERDES_NET_INTERFACE_MASK \
1542 #define NVM_CFG1_PORT_MNM_25G_SERDES_NET_INTERFACE_OFFSET 16
1543 #define NVM_CFG1_PORT_MNM_25G_SERDES_NET_INTERFACE_BYPASS 0x0
1544 #define NVM_CFG1_PORT_MNM_25G_SERDES_NET_INTERFACE_KR 0x2
1545 #define NVM_CFG1_PORT_MNM_25G_SERDES_NET_INTERFACE_KR2 0x3
1546 #define NVM_CFG1_PORT_MNM_25G_SERDES_NET_INTERFACE_KR4 0x4
1547 #define NVM_CFG1_PORT_MNM_25G_SERDES_NET_INTERFACE_XFI 0x8
1548 #define NVM_CFG1_PORT_MNM_25G_SERDES_NET_INTERFACE_SFI 0x9
1549 #define NVM_CFG1_PORT_MNM_25G_SERDES_NET_INTERFACE_1000X 0xB
1550 #define NVM_CFG1_PORT_MNM_25G_SERDES_NET_INTERFACE_SGMII 0xC
1551 #define NVM_CFG1_PORT_MNM_25G_SERDES_NET_INTERFACE_XLAUI 0x11
1552 #define NVM_CFG1_PORT_MNM_25G_SERDES_NET_INTERFACE_XLPPI 0x12
1553 #define NVM_CFG1_PORT_MNM_25G_SERDES_NET_INTERFACE_CAUI 0x21
1554 #define NVM_CFG1_PORT_MNM_25G_SERDES_NET_INTERFACE_CPPI 0x22
1555 #define NVM_CFG1_PORT_MNM_25G_SERDES_NET_INTERFACE_25GAUI 0x31
1556 #define NVM_CFG1_PORT_MNM_25G_ETH_DID_SUFFIX_MASK 0xFF000000
1557 #define NVM_CFG1_PORT_MNM_25G_ETH_DID_SUFFIX_OFFSET 24
1558 u32 mnm_25g_misc; /* 0x60 */
1559 #define NVM_CFG1_PORT_MNM_25G_FEC_FORCE_MODE_MASK 0x00000007
1560 #define NVM_CFG1_PORT_MNM_25G_FEC_FORCE_MODE_OFFSET 0
1561 #define NVM_CFG1_PORT_MNM_25G_FEC_FORCE_MODE_NONE 0x0
1562 #define NVM_CFG1_PORT_MNM_25G_FEC_FORCE_MODE_FIRECODE 0x1
1563 #define NVM_CFG1_PORT_MNM_25G_FEC_FORCE_MODE_RS 0x2
1564 #define NVM_CFG1_PORT_MNM_25G_FEC_FORCE_MODE_AUTO 0x7
1565 u32 mnm_40g_cap; /* 0x64 */
1566 #define NVM_CFG1_PORT_MNM_40G_DRV_SPEED_CAPABILITY_MASK_MASK \
1568 #define NVM_CFG1_PORT_MNM_40G_DRV_SPEED_CAPABILITY_MASK_OFFSET 0
1569 #define NVM_CFG1_PORT_MNM_40G_DRV_SPEED_CAPABILITY_MASK_1G 0x1
1570 #define NVM_CFG1_PORT_MNM_40G_DRV_SPEED_CAPABILITY_MASK_10G 0x2
1571 #define NVM_CFG1_PORT_MNM_40G_DRV_SPEED_CAPABILITY_MASK_25G 0x8
1572 #define NVM_CFG1_PORT_MNM_40G_DRV_SPEED_CAPABILITY_MASK_40G 0x10
1573 #define NVM_CFG1_PORT_MNM_40G_DRV_SPEED_CAPABILITY_MASK_50G 0x20
1575 NVM_CFG1_PORT_MNM_40G_DRV_SPEED_CAPABILITY_MASK_BB_100G 0x40
1576 #define NVM_CFG1_PORT_MNM_40G_MFW_SPEED_CAPABILITY_MASK_MASK \
1578 #define NVM_CFG1_PORT_MNM_40G_MFW_SPEED_CAPABILITY_MASK_OFFSET \
1580 #define NVM_CFG1_PORT_MNM_40G_MFW_SPEED_CAPABILITY_MASK_1G 0x1
1581 #define NVM_CFG1_PORT_MNM_40G_MFW_SPEED_CAPABILITY_MASK_10G 0x2
1582 #define NVM_CFG1_PORT_MNM_40G_MFW_SPEED_CAPABILITY_MASK_25G 0x8
1583 #define NVM_CFG1_PORT_MNM_40G_MFW_SPEED_CAPABILITY_MASK_40G 0x10
1584 #define NVM_CFG1_PORT_MNM_40G_MFW_SPEED_CAPABILITY_MASK_50G 0x20
1586 NVM_CFG1_PORT_MNM_40G_MFW_SPEED_CAPABILITY_MASK_BB_100G 0x40
1587 u32 mnm_40g_ctrl; /* 0x68 */
1588 #define NVM_CFG1_PORT_MNM_40G_DRV_LINK_SPEED_MASK 0x0000000F
1589 #define NVM_CFG1_PORT_MNM_40G_DRV_LINK_SPEED_OFFSET 0
1590 #define NVM_CFG1_PORT_MNM_40G_DRV_LINK_SPEED_AUTONEG 0x0
1591 #define NVM_CFG1_PORT_MNM_40G_DRV_LINK_SPEED_1G 0x1
1592 #define NVM_CFG1_PORT_MNM_40G_DRV_LINK_SPEED_10G 0x2
1593 #define NVM_CFG1_PORT_MNM_40G_DRV_LINK_SPEED_25G 0x4
1594 #define NVM_CFG1_PORT_MNM_40G_DRV_LINK_SPEED_40G 0x5
1595 #define NVM_CFG1_PORT_MNM_40G_DRV_LINK_SPEED_50G 0x6
1596 #define NVM_CFG1_PORT_MNM_40G_DRV_LINK_SPEED_BB_100G 0x7
1597 #define NVM_CFG1_PORT_MNM_40G_DRV_LINK_SPEED_SMARTLINQ 0x8
1598 #define NVM_CFG1_PORT_MNM_40G_MFW_LINK_SPEED_MASK 0x000000F0
1599 #define NVM_CFG1_PORT_MNM_40G_MFW_LINK_SPEED_OFFSET 4
1600 #define NVM_CFG1_PORT_MNM_40G_MFW_LINK_SPEED_AUTONEG 0x0
1601 #define NVM_CFG1_PORT_MNM_40G_MFW_LINK_SPEED_1G 0x1
1602 #define NVM_CFG1_PORT_MNM_40G_MFW_LINK_SPEED_10G 0x2
1603 #define NVM_CFG1_PORT_MNM_40G_MFW_LINK_SPEED_25G 0x4
1604 #define NVM_CFG1_PORT_MNM_40G_MFW_LINK_SPEED_40G 0x5
1605 #define NVM_CFG1_PORT_MNM_40G_MFW_LINK_SPEED_50G 0x6
1606 #define NVM_CFG1_PORT_MNM_40G_MFW_LINK_SPEED_BB_100G 0x7
1607 #define NVM_CFG1_PORT_MNM_40G_MFW_LINK_SPEED_SMARTLINQ 0x8
1608 /* This field defines the board technology
1609 * (backpane,transceiver,external PHY)
1611 #define NVM_CFG1_PORT_MNM_40G_PORT_TYPE_MASK 0x0000FF00
1612 #define NVM_CFG1_PORT_MNM_40G_PORT_TYPE_OFFSET 8
1613 #define NVM_CFG1_PORT_MNM_40G_PORT_TYPE_UNDEFINED 0x0
1614 #define NVM_CFG1_PORT_MNM_40G_PORT_TYPE_MODULE 0x1
1615 #define NVM_CFG1_PORT_MNM_40G_PORT_TYPE_BACKPLANE 0x2
1616 #define NVM_CFG1_PORT_MNM_40G_PORT_TYPE_EXT_PHY 0x3
1617 #define NVM_CFG1_PORT_MNM_40G_PORT_TYPE_MODULE_SLAVE 0x4
1618 #define NVM_CFG1_PORT_MNM_40G_SERDES_NET_INTERFACE_MASK \
1620 #define NVM_CFG1_PORT_MNM_40G_SERDES_NET_INTERFACE_OFFSET 16
1621 #define NVM_CFG1_PORT_MNM_40G_SERDES_NET_INTERFACE_BYPASS 0x0
1622 #define NVM_CFG1_PORT_MNM_40G_SERDES_NET_INTERFACE_KR 0x2
1623 #define NVM_CFG1_PORT_MNM_40G_SERDES_NET_INTERFACE_KR2 0x3
1624 #define NVM_CFG1_PORT_MNM_40G_SERDES_NET_INTERFACE_KR4 0x4
1625 #define NVM_CFG1_PORT_MNM_40G_SERDES_NET_INTERFACE_XFI 0x8
1626 #define NVM_CFG1_PORT_MNM_40G_SERDES_NET_INTERFACE_SFI 0x9
1627 #define NVM_CFG1_PORT_MNM_40G_SERDES_NET_INTERFACE_1000X 0xB
1628 #define NVM_CFG1_PORT_MNM_40G_SERDES_NET_INTERFACE_SGMII 0xC
1629 #define NVM_CFG1_PORT_MNM_40G_SERDES_NET_INTERFACE_XLAUI 0x11
1630 #define NVM_CFG1_PORT_MNM_40G_SERDES_NET_INTERFACE_XLPPI 0x12
1631 #define NVM_CFG1_PORT_MNM_40G_SERDES_NET_INTERFACE_CAUI 0x21
1632 #define NVM_CFG1_PORT_MNM_40G_SERDES_NET_INTERFACE_CPPI 0x22
1633 #define NVM_CFG1_PORT_MNM_40G_SERDES_NET_INTERFACE_25GAUI 0x31
1634 #define NVM_CFG1_PORT_MNM_40G_ETH_DID_SUFFIX_MASK 0xFF000000
1635 #define NVM_CFG1_PORT_MNM_40G_ETH_DID_SUFFIX_OFFSET 24
1636 u32 mnm_40g_misc; /* 0x6C */
1637 #define NVM_CFG1_PORT_MNM_40G_FEC_FORCE_MODE_MASK 0x00000007
1638 #define NVM_CFG1_PORT_MNM_40G_FEC_FORCE_MODE_OFFSET 0
1639 #define NVM_CFG1_PORT_MNM_40G_FEC_FORCE_MODE_NONE 0x0
1640 #define NVM_CFG1_PORT_MNM_40G_FEC_FORCE_MODE_FIRECODE 0x1
1641 #define NVM_CFG1_PORT_MNM_40G_FEC_FORCE_MODE_RS 0x2
1642 #define NVM_CFG1_PORT_MNM_40G_FEC_FORCE_MODE_AUTO 0x7
1643 u32 mnm_50g_cap; /* 0x70 */
1644 #define NVM_CFG1_PORT_MNM_50G_DRV_SPEED_CAPABILITY_MASK_MASK \
1646 #define NVM_CFG1_PORT_MNM_50G_DRV_SPEED_CAPABILITY_MASK_OFFSET 0
1647 #define NVM_CFG1_PORT_MNM_50G_DRV_SPEED_CAPABILITY_MASK_1G 0x1
1648 #define NVM_CFG1_PORT_MNM_50G_DRV_SPEED_CAPABILITY_MASK_10G 0x2
1649 #define NVM_CFG1_PORT_MNM_50G_DRV_SPEED_CAPABILITY_MASK_25G 0x8
1650 #define NVM_CFG1_PORT_MNM_50G_DRV_SPEED_CAPABILITY_MASK_40G 0x10
1651 #define NVM_CFG1_PORT_MNM_50G_DRV_SPEED_CAPABILITY_MASK_50G 0x20
1653 NVM_CFG1_PORT_MNM_50G_DRV_SPEED_CAPABILITY_MASK_BB_100G \
1655 #define NVM_CFG1_PORT_MNM_50G_MFW_SPEED_CAPABILITY_MASK_MASK \
1657 #define NVM_CFG1_PORT_MNM_50G_MFW_SPEED_CAPABILITY_MASK_OFFSET \
1659 #define NVM_CFG1_PORT_MNM_50G_MFW_SPEED_CAPABILITY_MASK_1G 0x1
1660 #define NVM_CFG1_PORT_MNM_50G_MFW_SPEED_CAPABILITY_MASK_10G 0x2
1661 #define NVM_CFG1_PORT_MNM_50G_MFW_SPEED_CAPABILITY_MASK_25G 0x8
1662 #define NVM_CFG1_PORT_MNM_50G_MFW_SPEED_CAPABILITY_MASK_40G 0x10
1663 #define NVM_CFG1_PORT_MNM_50G_MFW_SPEED_CAPABILITY_MASK_50G 0x20
1665 NVM_CFG1_PORT_MNM_50G_MFW_SPEED_CAPABILITY_MASK_BB_100G \
1667 u32 mnm_50g_ctrl; /* 0x74 */
1668 #define NVM_CFG1_PORT_MNM_50G_DRV_LINK_SPEED_MASK 0x0000000F
1669 #define NVM_CFG1_PORT_MNM_50G_DRV_LINK_SPEED_OFFSET 0
1670 #define NVM_CFG1_PORT_MNM_50G_DRV_LINK_SPEED_AUTONEG 0x0
1671 #define NVM_CFG1_PORT_MNM_50G_DRV_LINK_SPEED_1G 0x1
1672 #define NVM_CFG1_PORT_MNM_50G_DRV_LINK_SPEED_10G 0x2
1673 #define NVM_CFG1_PORT_MNM_50G_DRV_LINK_SPEED_25G 0x4
1674 #define NVM_CFG1_PORT_MNM_50G_DRV_LINK_SPEED_40G 0x5
1675 #define NVM_CFG1_PORT_MNM_50G_DRV_LINK_SPEED_50G 0x6
1676 #define NVM_CFG1_PORT_MNM_50G_DRV_LINK_SPEED_BB_100G 0x7
1677 #define NVM_CFG1_PORT_MNM_50G_DRV_LINK_SPEED_SMARTLINQ 0x8
1678 #define NVM_CFG1_PORT_MNM_50G_MFW_LINK_SPEED_MASK 0x000000F0
1679 #define NVM_CFG1_PORT_MNM_50G_MFW_LINK_SPEED_OFFSET 4
1680 #define NVM_CFG1_PORT_MNM_50G_MFW_LINK_SPEED_AUTONEG 0x0
1681 #define NVM_CFG1_PORT_MNM_50G_MFW_LINK_SPEED_1G 0x1
1682 #define NVM_CFG1_PORT_MNM_50G_MFW_LINK_SPEED_10G 0x2
1683 #define NVM_CFG1_PORT_MNM_50G_MFW_LINK_SPEED_25G 0x4
1684 #define NVM_CFG1_PORT_MNM_50G_MFW_LINK_SPEED_40G 0x5
1685 #define NVM_CFG1_PORT_MNM_50G_MFW_LINK_SPEED_50G 0x6
1686 #define NVM_CFG1_PORT_MNM_50G_MFW_LINK_SPEED_BB_100G 0x7
1687 #define NVM_CFG1_PORT_MNM_50G_MFW_LINK_SPEED_SMARTLINQ 0x8
1688 /* This field defines the board technology
1689 * (backpane,transceiver,external PHY)
1691 #define NVM_CFG1_PORT_MNM_50G_PORT_TYPE_MASK 0x0000FF00
1692 #define NVM_CFG1_PORT_MNM_50G_PORT_TYPE_OFFSET 8
1693 #define NVM_CFG1_PORT_MNM_50G_PORT_TYPE_UNDEFINED 0x0
1694 #define NVM_CFG1_PORT_MNM_50G_PORT_TYPE_MODULE 0x1
1695 #define NVM_CFG1_PORT_MNM_50G_PORT_TYPE_BACKPLANE 0x2
1696 #define NVM_CFG1_PORT_MNM_50G_PORT_TYPE_EXT_PHY 0x3
1697 #define NVM_CFG1_PORT_MNM_50G_PORT_TYPE_MODULE_SLAVE 0x4
1698 #define NVM_CFG1_PORT_MNM_50G_SERDES_NET_INTERFACE_MASK \
1700 #define NVM_CFG1_PORT_MNM_50G_SERDES_NET_INTERFACE_OFFSET 16
1701 #define NVM_CFG1_PORT_MNM_50G_SERDES_NET_INTERFACE_BYPASS 0x0
1702 #define NVM_CFG1_PORT_MNM_50G_SERDES_NET_INTERFACE_KR 0x2
1703 #define NVM_CFG1_PORT_MNM_50G_SERDES_NET_INTERFACE_KR2 0x3
1704 #define NVM_CFG1_PORT_MNM_50G_SERDES_NET_INTERFACE_KR4 0x4
1705 #define NVM_CFG1_PORT_MNM_50G_SERDES_NET_INTERFACE_XFI 0x8
1706 #define NVM_CFG1_PORT_MNM_50G_SERDES_NET_INTERFACE_SFI 0x9
1707 #define NVM_CFG1_PORT_MNM_50G_SERDES_NET_INTERFACE_1000X 0xB
1708 #define NVM_CFG1_PORT_MNM_50G_SERDES_NET_INTERFACE_SGMII 0xC
1709 #define NVM_CFG1_PORT_MNM_50G_SERDES_NET_INTERFACE_XLAUI 0x11
1710 #define NVM_CFG1_PORT_MNM_50G_SERDES_NET_INTERFACE_XLPPI 0x12
1711 #define NVM_CFG1_PORT_MNM_50G_SERDES_NET_INTERFACE_CAUI 0x21
1712 #define NVM_CFG1_PORT_MNM_50G_SERDES_NET_INTERFACE_CPPI 0x22
1713 #define NVM_CFG1_PORT_MNM_50G_SERDES_NET_INTERFACE_25GAUI 0x31
1714 #define NVM_CFG1_PORT_MNM_50G_ETH_DID_SUFFIX_MASK 0xFF000000
1715 #define NVM_CFG1_PORT_MNM_50G_ETH_DID_SUFFIX_OFFSET 24
1716 u32 mnm_50g_misc; /* 0x78 */
1717 #define NVM_CFG1_PORT_MNM_50G_FEC_FORCE_MODE_MASK 0x00000007
1718 #define NVM_CFG1_PORT_MNM_50G_FEC_FORCE_MODE_OFFSET 0
1719 #define NVM_CFG1_PORT_MNM_50G_FEC_FORCE_MODE_NONE 0x0
1720 #define NVM_CFG1_PORT_MNM_50G_FEC_FORCE_MODE_FIRECODE 0x1
1721 #define NVM_CFG1_PORT_MNM_50G_FEC_FORCE_MODE_RS 0x2
1722 #define NVM_CFG1_PORT_MNM_50G_FEC_FORCE_MODE_AUTO 0x7
1723 u32 mnm_100g_cap; /* 0x7C */
1724 #define NVM_CFG1_PORT_MNM_100G_DRV_SPEED_CAP_MASK_MASK \
1726 #define NVM_CFG1_PORT_MNM_100G_DRV_SPEED_CAP_MASK_OFFSET 0
1727 #define NVM_CFG1_PORT_MNM_100G_DRV_SPEED_CAP_MASK_1G 0x1
1728 #define NVM_CFG1_PORT_MNM_100G_DRV_SPEED_CAP_MASK_10G 0x2
1729 #define NVM_CFG1_PORT_MNM_100G_DRV_SPEED_CAP_MASK_25G 0x8
1730 #define NVM_CFG1_PORT_MNM_100G_DRV_SPEED_CAP_MASK_40G 0x10
1731 #define NVM_CFG1_PORT_MNM_100G_DRV_SPEED_CAP_MASK_50G 0x20
1732 #define NVM_CFG1_PORT_MNM_100G_DRV_SPEED_CAP_MASK_BB_100G 0x40
1733 #define NVM_CFG1_PORT_MNM_100G_MFW_SPEED_CAP_MASK_MASK \
1735 #define NVM_CFG1_PORT_MNM_100G_MFW_SPEED_CAP_MASK_OFFSET 16
1736 #define NVM_CFG1_PORT_MNM_100G_MFW_SPEED_CAP_MASK_1G 0x1
1737 #define NVM_CFG1_PORT_MNM_100G_MFW_SPEED_CAP_MASK_10G 0x2
1738 #define NVM_CFG1_PORT_MNM_100G_MFW_SPEED_CAP_MASK_25G 0x8
1739 #define NVM_CFG1_PORT_MNM_100G_MFW_SPEED_CAP_MASK_40G 0x10
1740 #define NVM_CFG1_PORT_MNM_100G_MFW_SPEED_CAP_MASK_50G 0x20
1741 #define NVM_CFG1_PORT_MNM_100G_MFW_SPEED_CAP_MASK_BB_100G 0x40
1742 u32 mnm_100g_ctrl; /* 0x80 */
1743 #define NVM_CFG1_PORT_MNM_100G_DRV_LINK_SPEED_MASK 0x0000000F
1744 #define NVM_CFG1_PORT_MNM_100G_DRV_LINK_SPEED_OFFSET 0
1745 #define NVM_CFG1_PORT_MNM_100G_DRV_LINK_SPEED_AUTONEG 0x0
1746 #define NVM_CFG1_PORT_MNM_100G_DRV_LINK_SPEED_1G 0x1
1747 #define NVM_CFG1_PORT_MNM_100G_DRV_LINK_SPEED_10G 0x2
1748 #define NVM_CFG1_PORT_MNM_100G_DRV_LINK_SPEED_25G 0x4
1749 #define NVM_CFG1_PORT_MNM_100G_DRV_LINK_SPEED_40G 0x5
1750 #define NVM_CFG1_PORT_MNM_100G_DRV_LINK_SPEED_50G 0x6
1751 #define NVM_CFG1_PORT_MNM_100G_DRV_LINK_SPEED_BB_100G 0x7
1752 #define NVM_CFG1_PORT_MNM_100G_DRV_LINK_SPEED_SMARTLINQ 0x8
1753 #define NVM_CFG1_PORT_MNM_100G_MFW_LINK_SPEED_MASK 0x000000F0
1754 #define NVM_CFG1_PORT_MNM_100G_MFW_LINK_SPEED_OFFSET 4
1755 #define NVM_CFG1_PORT_MNM_100G_MFW_LINK_SPEED_AUTONEG 0x0
1756 #define NVM_CFG1_PORT_MNM_100G_MFW_LINK_SPEED_1G 0x1
1757 #define NVM_CFG1_PORT_MNM_100G_MFW_LINK_SPEED_10G 0x2
1758 #define NVM_CFG1_PORT_MNM_100G_MFW_LINK_SPEED_25G 0x4
1759 #define NVM_CFG1_PORT_MNM_100G_MFW_LINK_SPEED_40G 0x5
1760 #define NVM_CFG1_PORT_MNM_100G_MFW_LINK_SPEED_50G 0x6
1761 #define NVM_CFG1_PORT_MNM_100G_MFW_LINK_SPEED_BB_100G 0x7
1762 #define NVM_CFG1_PORT_MNM_100G_MFW_LINK_SPEED_SMARTLINQ 0x8
1763 /* This field defines the board technology
1764 * (backpane,transceiver,external PHY)
1766 #define NVM_CFG1_PORT_MNM_100G_PORT_TYPE_MASK 0x0000FF00
1767 #define NVM_CFG1_PORT_MNM_100G_PORT_TYPE_OFFSET 8
1768 #define NVM_CFG1_PORT_MNM_100G_PORT_TYPE_UNDEFINED 0x0
1769 #define NVM_CFG1_PORT_MNM_100G_PORT_TYPE_MODULE 0x1
1770 #define NVM_CFG1_PORT_MNM_100G_PORT_TYPE_BACKPLANE 0x2
1771 #define NVM_CFG1_PORT_MNM_100G_PORT_TYPE_EXT_PHY 0x3
1772 #define NVM_CFG1_PORT_MNM_100G_PORT_TYPE_MODULE_SLAVE 0x4
1773 #define NVM_CFG1_PORT_MNM_100G_SERDES_NET_INTERFACE_MASK \
1775 #define NVM_CFG1_PORT_MNM_100G_SERDES_NET_INTERFACE_OFFSET 16
1776 #define NVM_CFG1_PORT_MNM_100G_SERDES_NET_INTERFACE_BYPASS 0x0
1777 #define NVM_CFG1_PORT_MNM_100G_SERDES_NET_INTERFACE_KR 0x2
1778 #define NVM_CFG1_PORT_MNM_100G_SERDES_NET_INTERFACE_KR2 0x3
1779 #define NVM_CFG1_PORT_MNM_100G_SERDES_NET_INTERFACE_KR4 0x4
1780 #define NVM_CFG1_PORT_MNM_100G_SERDES_NET_INTERFACE_XFI 0x8
1781 #define NVM_CFG1_PORT_MNM_100G_SERDES_NET_INTERFACE_SFI 0x9
1782 #define NVM_CFG1_PORT_MNM_100G_SERDES_NET_INTERFACE_1000X 0xB
1783 #define NVM_CFG1_PORT_MNM_100G_SERDES_NET_INTERFACE_SGMII 0xC
1784 #define NVM_CFG1_PORT_MNM_100G_SERDES_NET_INTERFACE_XLAUI 0x11
1785 #define NVM_CFG1_PORT_MNM_100G_SERDES_NET_INTERFACE_XLPPI 0x12
1786 #define NVM_CFG1_PORT_MNM_100G_SERDES_NET_INTERFACE_CAUI 0x21
1787 #define NVM_CFG1_PORT_MNM_100G_SERDES_NET_INTERFACE_CPPI 0x22
1788 #define NVM_CFG1_PORT_MNM_100G_SERDES_NET_INTERFACE_25GAUI 0x31
1789 #define NVM_CFG1_PORT_MNM_100G_ETH_DID_SUFFIX_MASK 0xFF000000
1790 #define NVM_CFG1_PORT_MNM_100G_ETH_DID_SUFFIX_OFFSET 24
1791 u32 mnm_100g_misc; /* 0x84 */
1792 #define NVM_CFG1_PORT_MNM_100G_FEC_FORCE_MODE_MASK 0x00000007
1793 #define NVM_CFG1_PORT_MNM_100G_FEC_FORCE_MODE_OFFSET 0
1794 #define NVM_CFG1_PORT_MNM_100G_FEC_FORCE_MODE_NONE 0x0
1795 #define NVM_CFG1_PORT_MNM_100G_FEC_FORCE_MODE_FIRECODE 0x1
1796 #define NVM_CFG1_PORT_MNM_100G_FEC_FORCE_MODE_RS 0x2
1797 #define NVM_CFG1_PORT_MNM_100G_FEC_FORCE_MODE_AUTO 0x7
1798 u32 reserved[116]; /* 0x88 */
1801 struct nvm_cfg1_func {
1802 struct nvm_cfg_mac_address mac_address; /* 0x0 */
1803 u32 rsrv1; /* 0x8 */
1804 #define NVM_CFG1_FUNC_RESERVED1_MASK 0x0000FFFF
1805 #define NVM_CFG1_FUNC_RESERVED1_OFFSET 0
1806 #define NVM_CFG1_FUNC_RESERVED2_MASK 0xFFFF0000
1807 #define NVM_CFG1_FUNC_RESERVED2_OFFSET 16
1808 u32 rsrv2; /* 0xC */
1809 #define NVM_CFG1_FUNC_RESERVED3_MASK 0x0000FFFF
1810 #define NVM_CFG1_FUNC_RESERVED3_OFFSET 0
1811 #define NVM_CFG1_FUNC_RESERVED4_MASK 0xFFFF0000
1812 #define NVM_CFG1_FUNC_RESERVED4_OFFSET 16
1813 u32 device_id; /* 0x10 */
1814 #define NVM_CFG1_FUNC_MF_VENDOR_DEVICE_ID_MASK 0x0000FFFF
1815 #define NVM_CFG1_FUNC_MF_VENDOR_DEVICE_ID_OFFSET 0
1816 #define NVM_CFG1_FUNC_RESERVED77_MASK 0xFFFF0000
1817 #define NVM_CFG1_FUNC_RESERVED77_OFFSET 16
1818 u32 cmn_cfg; /* 0x14 */
1819 #define NVM_CFG1_FUNC_PREBOOT_BOOT_PROTOCOL_MASK 0x00000007
1820 #define NVM_CFG1_FUNC_PREBOOT_BOOT_PROTOCOL_OFFSET 0
1821 #define NVM_CFG1_FUNC_PREBOOT_BOOT_PROTOCOL_PXE 0x0
1822 #define NVM_CFG1_FUNC_PREBOOT_BOOT_PROTOCOL_ISCSI_BOOT 0x3
1823 #define NVM_CFG1_FUNC_PREBOOT_BOOT_PROTOCOL_FCOE_BOOT 0x4
1824 #define NVM_CFG1_FUNC_PREBOOT_BOOT_PROTOCOL_NONE 0x7
1825 #define NVM_CFG1_FUNC_VF_PCI_DEVICE_ID_MASK 0x0007FFF8
1826 #define NVM_CFG1_FUNC_VF_PCI_DEVICE_ID_OFFSET 3
1827 #define NVM_CFG1_FUNC_PERSONALITY_MASK 0x00780000
1828 #define NVM_CFG1_FUNC_PERSONALITY_OFFSET 19
1829 #define NVM_CFG1_FUNC_PERSONALITY_ETHERNET 0x0
1830 #define NVM_CFG1_FUNC_PERSONALITY_ISCSI 0x1
1831 #define NVM_CFG1_FUNC_PERSONALITY_FCOE 0x2
1832 #define NVM_CFG1_FUNC_PERSONALITY_ROCE 0x3
1833 #define NVM_CFG1_FUNC_BANDWIDTH_WEIGHT_MASK 0x7F800000
1834 #define NVM_CFG1_FUNC_BANDWIDTH_WEIGHT_OFFSET 23
1835 #define NVM_CFG1_FUNC_PAUSE_ON_HOST_RING_MASK 0x80000000
1836 #define NVM_CFG1_FUNC_PAUSE_ON_HOST_RING_OFFSET 31
1837 #define NVM_CFG1_FUNC_PAUSE_ON_HOST_RING_DISABLED 0x0
1838 #define NVM_CFG1_FUNC_PAUSE_ON_HOST_RING_ENABLED 0x1
1839 u32 pci_cfg; /* 0x18 */
1840 #define NVM_CFG1_FUNC_NUMBER_OF_VFS_PER_PF_MASK 0x0000007F
1841 #define NVM_CFG1_FUNC_NUMBER_OF_VFS_PER_PF_OFFSET 0
1842 /* AH VF BAR2 size */
1843 #define NVM_CFG1_FUNC_VF_PCI_BAR2_SIZE_MASK 0x00003F80
1844 #define NVM_CFG1_FUNC_VF_PCI_BAR2_SIZE_OFFSET 7
1845 #define NVM_CFG1_FUNC_VF_PCI_BAR2_SIZE_DISABLED 0x0
1846 #define NVM_CFG1_FUNC_VF_PCI_BAR2_SIZE_4K 0x1
1847 #define NVM_CFG1_FUNC_VF_PCI_BAR2_SIZE_8K 0x2
1848 #define NVM_CFG1_FUNC_VF_PCI_BAR2_SIZE_16K 0x3
1849 #define NVM_CFG1_FUNC_VF_PCI_BAR2_SIZE_32K 0x4
1850 #define NVM_CFG1_FUNC_VF_PCI_BAR2_SIZE_64K 0x5
1851 #define NVM_CFG1_FUNC_VF_PCI_BAR2_SIZE_128K 0x6
1852 #define NVM_CFG1_FUNC_VF_PCI_BAR2_SIZE_256K 0x7
1853 #define NVM_CFG1_FUNC_VF_PCI_BAR2_SIZE_512K 0x8
1854 #define NVM_CFG1_FUNC_VF_PCI_BAR2_SIZE_1M 0x9
1855 #define NVM_CFG1_FUNC_VF_PCI_BAR2_SIZE_2M 0xA
1856 #define NVM_CFG1_FUNC_VF_PCI_BAR2_SIZE_4M 0xB
1857 #define NVM_CFG1_FUNC_VF_PCI_BAR2_SIZE_8M 0xC
1858 #define NVM_CFG1_FUNC_VF_PCI_BAR2_SIZE_16M 0xD
1859 #define NVM_CFG1_FUNC_VF_PCI_BAR2_SIZE_32M 0xE
1860 #define NVM_CFG1_FUNC_VF_PCI_BAR2_SIZE_64M 0xF
1861 #define NVM_CFG1_FUNC_BAR1_SIZE_MASK 0x0003C000
1862 #define NVM_CFG1_FUNC_BAR1_SIZE_OFFSET 14
1863 #define NVM_CFG1_FUNC_BAR1_SIZE_DISABLED 0x0
1864 #define NVM_CFG1_FUNC_BAR1_SIZE_64K 0x1
1865 #define NVM_CFG1_FUNC_BAR1_SIZE_128K 0x2
1866 #define NVM_CFG1_FUNC_BAR1_SIZE_256K 0x3
1867 #define NVM_CFG1_FUNC_BAR1_SIZE_512K 0x4
1868 #define NVM_CFG1_FUNC_BAR1_SIZE_1M 0x5
1869 #define NVM_CFG1_FUNC_BAR1_SIZE_2M 0x6
1870 #define NVM_CFG1_FUNC_BAR1_SIZE_4M 0x7
1871 #define NVM_CFG1_FUNC_BAR1_SIZE_8M 0x8
1872 #define NVM_CFG1_FUNC_BAR1_SIZE_16M 0x9
1873 #define NVM_CFG1_FUNC_BAR1_SIZE_32M 0xA
1874 #define NVM_CFG1_FUNC_BAR1_SIZE_64M 0xB
1875 #define NVM_CFG1_FUNC_BAR1_SIZE_128M 0xC
1876 #define NVM_CFG1_FUNC_BAR1_SIZE_256M 0xD
1877 #define NVM_CFG1_FUNC_BAR1_SIZE_512M 0xE
1878 #define NVM_CFG1_FUNC_BAR1_SIZE_1G 0xF
1879 #define NVM_CFG1_FUNC_MAX_BANDWIDTH_MASK 0x03FC0000
1880 #define NVM_CFG1_FUNC_MAX_BANDWIDTH_OFFSET 18
1881 /* Hide function in npar mode */
1882 #define NVM_CFG1_FUNC_FUNCTION_HIDE_MASK 0x04000000
1883 #define NVM_CFG1_FUNC_FUNCTION_HIDE_OFFSET 26
1884 #define NVM_CFG1_FUNC_FUNCTION_HIDE_DISABLED 0x0
1885 #define NVM_CFG1_FUNC_FUNCTION_HIDE_ENABLED 0x1
1886 /* AH BAR2 size (per function) */
1887 #define NVM_CFG1_FUNC_BAR2_SIZE_MASK 0x78000000
1888 #define NVM_CFG1_FUNC_BAR2_SIZE_OFFSET 27
1889 #define NVM_CFG1_FUNC_BAR2_SIZE_DISABLED 0x0
1890 #define NVM_CFG1_FUNC_BAR2_SIZE_1M 0x5
1891 #define NVM_CFG1_FUNC_BAR2_SIZE_2M 0x6
1892 #define NVM_CFG1_FUNC_BAR2_SIZE_4M 0x7
1893 #define NVM_CFG1_FUNC_BAR2_SIZE_8M 0x8
1894 #define NVM_CFG1_FUNC_BAR2_SIZE_16M 0x9
1895 #define NVM_CFG1_FUNC_BAR2_SIZE_32M 0xA
1896 #define NVM_CFG1_FUNC_BAR2_SIZE_64M 0xB
1897 #define NVM_CFG1_FUNC_BAR2_SIZE_128M 0xC
1898 #define NVM_CFG1_FUNC_BAR2_SIZE_256M 0xD
1899 #define NVM_CFG1_FUNC_BAR2_SIZE_512M 0xE
1900 #define NVM_CFG1_FUNC_BAR2_SIZE_1G 0xF
1901 struct nvm_cfg_mac_address fcoe_node_wwn_mac_addr; /* 0x1C */
1902 struct nvm_cfg_mac_address fcoe_port_wwn_mac_addr; /* 0x24 */
1903 u32 preboot_generic_cfg; /* 0x2C */
1904 #define NVM_CFG1_FUNC_PREBOOT_VLAN_VALUE_MASK 0x0000FFFF
1905 #define NVM_CFG1_FUNC_PREBOOT_VLAN_VALUE_OFFSET 0
1906 #define NVM_CFG1_FUNC_PREBOOT_VLAN_MASK 0x00010000
1907 #define NVM_CFG1_FUNC_PREBOOT_VLAN_OFFSET 16
1908 #define NVM_CFG1_FUNC_NPAR_ENABLED_PROTOCOL_MASK 0x001E0000
1909 #define NVM_CFG1_FUNC_NPAR_ENABLED_PROTOCOL_OFFSET 17
1910 #define NVM_CFG1_FUNC_NPAR_ENABLED_PROTOCOL_ETHERNET 0x1
1911 #define NVM_CFG1_FUNC_NPAR_ENABLED_PROTOCOL_FCOE 0x2
1912 #define NVM_CFG1_FUNC_NPAR_ENABLED_PROTOCOL_ISCSI 0x4
1913 u32 reserved[8]; /* 0x30 */
1917 struct nvm_cfg1_glob glob; /* 0x0 */
1918 struct nvm_cfg1_path path[MCP_GLOB_PATH_MAX]; /* 0x228 */
1919 struct nvm_cfg1_port port[MCP_GLOB_PORT_MAX]; /* 0x230 */
1920 struct nvm_cfg1_func func[MCP_GLOB_FUNC_MAX]; /* 0xB90 */
1923 /******************************************
1925 ******************************************/
1926 enum nvm_cfg_sections {
1927 NVM_CFG_SECTION_NVM_CFG1,
1933 u32 sections_offset[NVM_CFG_SECTION_MAX];
1934 struct nvm_cfg1 cfg1;
1937 #endif /* NVM_CFG_H */