diff options
author | Jeff Garzik <jeff@garzik.org> | 2006-12-15 10:31:40 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-12-26 15:51:28 -0500 |
commit | bd2371ebcc71d0a276ae341d735326a8beab6627 (patch) | |
tree | ac78665bd644b365f1ac74b6f656b83ea70e288d /drivers/net/e1000 | |
parent | 2b65326e67f89899e8bcaed1989d8cfb0ed01f55 (diff) |
e1000: For sanity, reformat e1000_set_mac_type(), struct e1000_hw[_stats]
Makes future changes a bit more readable.
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/e1000')
-rw-r--r-- | drivers/net/e1000/e1000_hw.c | 270 | ||||
-rw-r--r-- | drivers/net/e1000/e1000_hw.h | 304 |
2 files changed, 287 insertions, 287 deletions
diff --git a/drivers/net/e1000/e1000_hw.c b/drivers/net/e1000/e1000_hw.c index 3655d902b0bd..0201ca548cd1 100644 --- a/drivers/net/e1000/e1000_hw.c +++ b/drivers/net/e1000/e1000_hw.c | |||
@@ -308,141 +308,141 @@ e1000_phy_init_script(struct e1000_hw *hw) | |||
308 | int32_t | 308 | int32_t |
309 | e1000_set_mac_type(struct e1000_hw *hw) | 309 | e1000_set_mac_type(struct e1000_hw *hw) |
310 | { | 310 | { |
311 | DEBUGFUNC("e1000_set_mac_type"); | 311 | DEBUGFUNC("e1000_set_mac_type"); |
312 | 312 | ||
313 | switch (hw->device_id) { | 313 | switch (hw->device_id) { |
314 | case E1000_DEV_ID_82542: | 314 | case E1000_DEV_ID_82542: |
315 | switch (hw->revision_id) { | 315 | switch (hw->revision_id) { |
316 | case E1000_82542_2_0_REV_ID: | 316 | case E1000_82542_2_0_REV_ID: |
317 | hw->mac_type = e1000_82542_rev2_0; | 317 | hw->mac_type = e1000_82542_rev2_0; |
318 | break; | 318 | break; |
319 | case E1000_82542_2_1_REV_ID: | 319 | case E1000_82542_2_1_REV_ID: |
320 | hw->mac_type = e1000_82542_rev2_1; | 320 | hw->mac_type = e1000_82542_rev2_1; |
321 | break; | 321 | break; |
322 | default: | 322 | default: |
323 | /* Invalid 82542 revision ID */ | 323 | /* Invalid 82542 revision ID */ |
324 | return -E1000_ERR_MAC_TYPE; | 324 | return -E1000_ERR_MAC_TYPE; |
325 | } | 325 | } |
326 | break; | 326 | break; |
327 | case E1000_DEV_ID_82543GC_FIBER: | 327 | case E1000_DEV_ID_82543GC_FIBER: |
328 | case E1000_DEV_ID_82543GC_COPPER: | 328 | case E1000_DEV_ID_82543GC_COPPER: |
329 | hw->mac_type = e1000_82543; | 329 | hw->mac_type = e1000_82543; |
330 | break; | 330 | break; |
331 | case E1000_DEV_ID_82544EI_COPPER: | 331 | case E1000_DEV_ID_82544EI_COPPER: |
332 | case E1000_DEV_ID_82544EI_FIBER: | 332 | case E1000_DEV_ID_82544EI_FIBER: |
333 | case E1000_DEV_ID_82544GC_COPPER: | 333 | case E1000_DEV_ID_82544GC_COPPER: |
334 | case E1000_DEV_ID_82544GC_LOM: | 334 | case E1000_DEV_ID_82544GC_LOM: |
335 | hw->mac_type = e1000_82544; | 335 | hw->mac_type = e1000_82544; |
336 | break; | 336 | break; |
337 | case E1000_DEV_ID_82540EM: | 337 | case E1000_DEV_ID_82540EM: |
338 | case E1000_DEV_ID_82540EM_LOM: | 338 | case E1000_DEV_ID_82540EM_LOM: |
339 | case E1000_DEV_ID_82540EP: | 339 | case E1000_DEV_ID_82540EP: |
340 | case E1000_DEV_ID_82540EP_LOM: | 340 | case E1000_DEV_ID_82540EP_LOM: |
341 | case E1000_DEV_ID_82540EP_LP: | 341 | case E1000_DEV_ID_82540EP_LP: |
342 | hw->mac_type = e1000_82540; | 342 | hw->mac_type = e1000_82540; |
343 | break; | 343 | break; |
344 | case E1000_DEV_ID_82545EM_COPPER: | 344 | case E1000_DEV_ID_82545EM_COPPER: |
345 | case E1000_DEV_ID_82545EM_FIBER: | 345 | case E1000_DEV_ID_82545EM_FIBER: |
346 | hw->mac_type = e1000_82545; | 346 | hw->mac_type = e1000_82545; |
347 | break; | 347 | break; |
348 | case E1000_DEV_ID_82545GM_COPPER: | 348 | case E1000_DEV_ID_82545GM_COPPER: |
349 | case E1000_DEV_ID_82545GM_FIBER: | 349 | case E1000_DEV_ID_82545GM_FIBER: |
350 | case E1000_DEV_ID_82545GM_SERDES: | 350 | case E1000_DEV_ID_82545GM_SERDES: |
351 | hw->mac_type = e1000_82545_rev_3; | 351 | hw->mac_type = e1000_82545_rev_3; |
352 | break; | 352 | break; |
353 | case E1000_DEV_ID_82546EB_COPPER: | 353 | case E1000_DEV_ID_82546EB_COPPER: |
354 | case E1000_DEV_ID_82546EB_FIBER: | 354 | case E1000_DEV_ID_82546EB_FIBER: |
355 | case E1000_DEV_ID_82546EB_QUAD_COPPER: | 355 | case E1000_DEV_ID_82546EB_QUAD_COPPER: |
356 | hw->mac_type = e1000_82546; | 356 | hw->mac_type = e1000_82546; |
357 | break; | 357 | break; |
358 | case E1000_DEV_ID_82546GB_COPPER: | 358 | case E1000_DEV_ID_82546GB_COPPER: |
359 | case E1000_DEV_ID_82546GB_FIBER: | 359 | case E1000_DEV_ID_82546GB_FIBER: |
360 | case E1000_DEV_ID_82546GB_SERDES: | 360 | case E1000_DEV_ID_82546GB_SERDES: |
361 | case E1000_DEV_ID_82546GB_PCIE: | 361 | case E1000_DEV_ID_82546GB_PCIE: |
362 | case E1000_DEV_ID_82546GB_QUAD_COPPER: | 362 | case E1000_DEV_ID_82546GB_QUAD_COPPER: |
363 | case E1000_DEV_ID_82546GB_QUAD_COPPER_KSP3: | 363 | case E1000_DEV_ID_82546GB_QUAD_COPPER_KSP3: |
364 | hw->mac_type = e1000_82546_rev_3; | 364 | hw->mac_type = e1000_82546_rev_3; |
365 | break; | 365 | break; |
366 | case E1000_DEV_ID_82541EI: | 366 | case E1000_DEV_ID_82541EI: |
367 | case E1000_DEV_ID_82541EI_MOBILE: | 367 | case E1000_DEV_ID_82541EI_MOBILE: |
368 | case E1000_DEV_ID_82541ER_LOM: | 368 | case E1000_DEV_ID_82541ER_LOM: |
369 | hw->mac_type = e1000_82541; | 369 | hw->mac_type = e1000_82541; |
370 | break; | 370 | break; |
371 | case E1000_DEV_ID_82541ER: | 371 | case E1000_DEV_ID_82541ER: |
372 | case E1000_DEV_ID_82541GI: | 372 | case E1000_DEV_ID_82541GI: |
373 | case E1000_DEV_ID_82541GI_LF: | 373 | case E1000_DEV_ID_82541GI_LF: |
374 | case E1000_DEV_ID_82541GI_MOBILE: | 374 | case E1000_DEV_ID_82541GI_MOBILE: |
375 | hw->mac_type = e1000_82541_rev_2; | 375 | hw->mac_type = e1000_82541_rev_2; |
376 | break; | 376 | break; |
377 | case E1000_DEV_ID_82547EI: | 377 | case E1000_DEV_ID_82547EI: |
378 | case E1000_DEV_ID_82547EI_MOBILE: | 378 | case E1000_DEV_ID_82547EI_MOBILE: |
379 | hw->mac_type = e1000_82547; | 379 | hw->mac_type = e1000_82547; |
380 | break; | 380 | break; |
381 | case E1000_DEV_ID_82547GI: | 381 | case E1000_DEV_ID_82547GI: |
382 | hw->mac_type = e1000_82547_rev_2; | 382 | hw->mac_type = e1000_82547_rev_2; |
383 | break; | 383 | break; |
384 | case E1000_DEV_ID_82571EB_COPPER: | 384 | case E1000_DEV_ID_82571EB_COPPER: |
385 | case E1000_DEV_ID_82571EB_FIBER: | 385 | case E1000_DEV_ID_82571EB_FIBER: |
386 | case E1000_DEV_ID_82571EB_SERDES: | 386 | case E1000_DEV_ID_82571EB_SERDES: |
387 | case E1000_DEV_ID_82571EB_QUAD_COPPER: | 387 | case E1000_DEV_ID_82571EB_QUAD_COPPER: |
388 | case E1000_DEV_ID_82571EB_QUAD_COPPER_LOWPROFILE: | 388 | case E1000_DEV_ID_82571EB_QUAD_COPPER_LOWPROFILE: |
389 | hw->mac_type = e1000_82571; | 389 | hw->mac_type = e1000_82571; |
390 | break; | 390 | break; |
391 | case E1000_DEV_ID_82572EI_COPPER: | 391 | case E1000_DEV_ID_82572EI_COPPER: |
392 | case E1000_DEV_ID_82572EI_FIBER: | 392 | case E1000_DEV_ID_82572EI_FIBER: |
393 | case E1000_DEV_ID_82572EI_SERDES: | 393 | case E1000_DEV_ID_82572EI_SERDES: |
394 | case E1000_DEV_ID_82572EI: | 394 | case E1000_DEV_ID_82572EI: |
395 | hw->mac_type = e1000_82572; | 395 | hw->mac_type = e1000_82572; |
396 | break; | 396 | break; |
397 | case E1000_DEV_ID_82573E: | 397 | case E1000_DEV_ID_82573E: |
398 | case E1000_DEV_ID_82573E_IAMT: | 398 | case E1000_DEV_ID_82573E_IAMT: |
399 | case E1000_DEV_ID_82573L: | 399 | case E1000_DEV_ID_82573L: |
400 | hw->mac_type = e1000_82573; | 400 | hw->mac_type = e1000_82573; |
401 | break; | 401 | break; |
402 | case E1000_DEV_ID_80003ES2LAN_COPPER_SPT: | 402 | case E1000_DEV_ID_80003ES2LAN_COPPER_SPT: |
403 | case E1000_DEV_ID_80003ES2LAN_SERDES_SPT: | 403 | case E1000_DEV_ID_80003ES2LAN_SERDES_SPT: |
404 | case E1000_DEV_ID_80003ES2LAN_COPPER_DPT: | 404 | case E1000_DEV_ID_80003ES2LAN_COPPER_DPT: |
405 | case E1000_DEV_ID_80003ES2LAN_SERDES_DPT: | 405 | case E1000_DEV_ID_80003ES2LAN_SERDES_DPT: |
406 | hw->mac_type = e1000_80003es2lan; | 406 | hw->mac_type = e1000_80003es2lan; |
407 | break; | 407 | break; |
408 | case E1000_DEV_ID_ICH8_IGP_M_AMT: | 408 | case E1000_DEV_ID_ICH8_IGP_M_AMT: |
409 | case E1000_DEV_ID_ICH8_IGP_AMT: | 409 | case E1000_DEV_ID_ICH8_IGP_AMT: |
410 | case E1000_DEV_ID_ICH8_IGP_C: | 410 | case E1000_DEV_ID_ICH8_IGP_C: |
411 | case E1000_DEV_ID_ICH8_IFE: | 411 | case E1000_DEV_ID_ICH8_IFE: |
412 | case E1000_DEV_ID_ICH8_IFE_GT: | 412 | case E1000_DEV_ID_ICH8_IFE_GT: |
413 | case E1000_DEV_ID_ICH8_IFE_G: | 413 | case E1000_DEV_ID_ICH8_IFE_G: |
414 | case E1000_DEV_ID_ICH8_IGP_M: | 414 | case E1000_DEV_ID_ICH8_IGP_M: |
415 | hw->mac_type = e1000_ich8lan; | 415 | hw->mac_type = e1000_ich8lan; |
416 | break; | 416 | break; |
417 | default: | 417 | default: |
418 | /* Should never have loaded on this device */ | 418 | /* Should never have loaded on this device */ |
419 | return -E1000_ERR_MAC_TYPE; | 419 | return -E1000_ERR_MAC_TYPE; |
420 | } | 420 | } |
421 | 421 | ||
422 | switch (hw->mac_type) { | 422 | switch (hw->mac_type) { |
423 | case e1000_ich8lan: | 423 | case e1000_ich8lan: |
424 | hw->swfwhw_semaphore_present = TRUE; | 424 | hw->swfwhw_semaphore_present = TRUE; |
425 | hw->asf_firmware_present = TRUE; | 425 | hw->asf_firmware_present = TRUE; |
426 | break; | 426 | break; |
427 | case e1000_80003es2lan: | 427 | case e1000_80003es2lan: |
428 | hw->swfw_sync_present = TRUE; | 428 | hw->swfw_sync_present = TRUE; |
429 | /* fall through */ | 429 | /* fall through */ |
430 | case e1000_82571: | 430 | case e1000_82571: |
431 | case e1000_82572: | 431 | case e1000_82572: |
432 | case e1000_82573: | 432 | case e1000_82573: |
433 | hw->eeprom_semaphore_present = TRUE; | 433 | hw->eeprom_semaphore_present = TRUE; |
434 | /* fall through */ | 434 | /* fall through */ |
435 | case e1000_82541: | 435 | case e1000_82541: |
436 | case e1000_82547: | 436 | case e1000_82547: |
437 | case e1000_82541_rev_2: | 437 | case e1000_82541_rev_2: |
438 | case e1000_82547_rev_2: | 438 | case e1000_82547_rev_2: |
439 | hw->asf_firmware_present = TRUE; | 439 | hw->asf_firmware_present = TRUE; |
440 | break; | 440 | break; |
441 | default: | 441 | default: |
442 | break; | 442 | break; |
443 | } | 443 | } |
444 | 444 | ||
445 | return E1000_SUCCESS; | 445 | return E1000_SUCCESS; |
446 | } | 446 | } |
447 | 447 | ||
448 | /***************************************************************************** | 448 | /***************************************************************************** |
diff --git a/drivers/net/e1000/e1000_hw.h b/drivers/net/e1000/e1000_hw.h index 3321fb13bfa9..28cdfe39e39a 100644 --- a/drivers/net/e1000/e1000_hw.h +++ b/drivers/net/e1000/e1000_hw.h | |||
@@ -1304,162 +1304,162 @@ struct e1000_ffvt_entry { | |||
1304 | 1304 | ||
1305 | /* Statistics counters collected by the MAC */ | 1305 | /* Statistics counters collected by the MAC */ |
1306 | struct e1000_hw_stats { | 1306 | struct e1000_hw_stats { |
1307 | uint64_t crcerrs; | 1307 | uint64_t crcerrs; |
1308 | uint64_t algnerrc; | 1308 | uint64_t algnerrc; |
1309 | uint64_t symerrs; | 1309 | uint64_t symerrs; |
1310 | uint64_t rxerrc; | 1310 | uint64_t rxerrc; |
1311 | uint64_t txerrc; | 1311 | uint64_t txerrc; |
1312 | uint64_t mpc; | 1312 | uint64_t mpc; |
1313 | uint64_t scc; | 1313 | uint64_t scc; |
1314 | uint64_t ecol; | 1314 | uint64_t ecol; |
1315 | uint64_t mcc; | 1315 | uint64_t mcc; |
1316 | uint64_t latecol; | 1316 | uint64_t latecol; |
1317 | uint64_t colc; | 1317 | uint64_t colc; |
1318 | uint64_t dc; | 1318 | uint64_t dc; |
1319 | uint64_t tncrs; | 1319 | uint64_t tncrs; |
1320 | uint64_t sec; | 1320 | uint64_t sec; |
1321 | uint64_t cexterr; | 1321 | uint64_t cexterr; |
1322 | uint64_t rlec; | 1322 | uint64_t rlec; |
1323 | uint64_t xonrxc; | 1323 | uint64_t xonrxc; |
1324 | uint64_t xontxc; | 1324 | uint64_t xontxc; |
1325 | uint64_t xoffrxc; | 1325 | uint64_t xoffrxc; |
1326 | uint64_t xofftxc; | 1326 | uint64_t xofftxc; |
1327 | uint64_t fcruc; | 1327 | uint64_t fcruc; |
1328 | uint64_t prc64; | 1328 | uint64_t prc64; |
1329 | uint64_t prc127; | 1329 | uint64_t prc127; |
1330 | uint64_t prc255; | 1330 | uint64_t prc255; |
1331 | uint64_t prc511; | 1331 | uint64_t prc511; |
1332 | uint64_t prc1023; | 1332 | uint64_t prc1023; |
1333 | uint64_t prc1522; | 1333 | uint64_t prc1522; |
1334 | uint64_t gprc; | 1334 | uint64_t gprc; |
1335 | uint64_t bprc; | 1335 | uint64_t bprc; |
1336 | uint64_t mprc; | 1336 | uint64_t mprc; |
1337 | uint64_t gptc; | 1337 | uint64_t gptc; |
1338 | uint64_t gorcl; | 1338 | uint64_t gorcl; |
1339 | uint64_t gorch; | 1339 | uint64_t gorch; |
1340 | uint64_t gotcl; | 1340 | uint64_t gotcl; |
1341 | uint64_t gotch; | 1341 | uint64_t gotch; |
1342 | uint64_t rnbc; | 1342 | uint64_t rnbc; |
1343 | uint64_t ruc; | 1343 | uint64_t ruc; |
1344 | uint64_t rfc; | 1344 | uint64_t rfc; |
1345 | uint64_t roc; | 1345 | uint64_t roc; |
1346 | uint64_t rlerrc; | 1346 | uint64_t rlerrc; |
1347 | uint64_t rjc; | 1347 | uint64_t rjc; |
1348 | uint64_t mgprc; | 1348 | uint64_t mgprc; |
1349 | uint64_t mgpdc; | 1349 | uint64_t mgpdc; |
1350 | uint64_t mgptc; | 1350 | uint64_t mgptc; |
1351 | uint64_t torl; | 1351 | uint64_t torl; |
1352 | uint64_t torh; | 1352 | uint64_t torh; |
1353 | uint64_t totl; | 1353 | uint64_t totl; |
1354 | uint64_t toth; | 1354 | uint64_t toth; |
1355 | uint64_t tpr; | 1355 | uint64_t tpr; |
1356 | uint64_t tpt; | 1356 | uint64_t tpt; |
1357 | uint64_t ptc64; | 1357 | uint64_t ptc64; |
1358 | uint64_t ptc127; | 1358 | uint64_t ptc127; |
1359 | uint64_t ptc255; | 1359 | uint64_t ptc255; |
1360 | uint64_t ptc511; | 1360 | uint64_t ptc511; |
1361 | uint64_t ptc1023; | 1361 | uint64_t ptc1023; |
1362 | uint64_t ptc1522; | 1362 | uint64_t ptc1522; |
1363 | uint64_t mptc; | 1363 | uint64_t mptc; |
1364 | uint64_t bptc; | 1364 | uint64_t bptc; |
1365 | uint64_t tsctc; | 1365 | uint64_t tsctc; |
1366 | uint64_t tsctfc; | 1366 | uint64_t tsctfc; |
1367 | uint64_t iac; | 1367 | uint64_t iac; |
1368 | uint64_t icrxptc; | 1368 | uint64_t icrxptc; |
1369 | uint64_t icrxatc; | 1369 | uint64_t icrxatc; |
1370 | uint64_t ictxptc; | 1370 | uint64_t ictxptc; |
1371 | uint64_t ictxatc; | 1371 | uint64_t ictxatc; |
1372 | uint64_t ictxqec; | 1372 | uint64_t ictxqec; |
1373 | uint64_t ictxqmtc; | 1373 | uint64_t ictxqmtc; |
1374 | uint64_t icrxdmtc; | 1374 | uint64_t icrxdmtc; |
1375 | uint64_t icrxoc; | 1375 | uint64_t icrxoc; |
1376 | }; | 1376 | }; |
1377 | 1377 | ||
1378 | /* Structure containing variables used by the shared code (e1000_hw.c) */ | 1378 | /* Structure containing variables used by the shared code (e1000_hw.c) */ |
1379 | struct e1000_hw { | 1379 | struct e1000_hw { |
1380 | uint8_t __iomem *hw_addr; | 1380 | uint8_t __iomem *hw_addr; |
1381 | uint8_t __iomem *flash_address; | 1381 | uint8_t __iomem *flash_address; |
1382 | e1000_mac_type mac_type; | 1382 | e1000_mac_type mac_type; |
1383 | e1000_phy_type phy_type; | 1383 | e1000_phy_type phy_type; |
1384 | uint32_t phy_init_script; | 1384 | uint32_t phy_init_script; |
1385 | e1000_media_type media_type; | 1385 | e1000_media_type media_type; |
1386 | void *back; | 1386 | void *back; |
1387 | struct e1000_shadow_ram *eeprom_shadow_ram; | 1387 | struct e1000_shadow_ram *eeprom_shadow_ram; |
1388 | uint32_t flash_bank_size; | 1388 | uint32_t flash_bank_size; |
1389 | uint32_t flash_base_addr; | 1389 | uint32_t flash_base_addr; |
1390 | e1000_fc_type fc; | 1390 | e1000_fc_type fc; |
1391 | e1000_bus_speed bus_speed; | 1391 | e1000_bus_speed bus_speed; |
1392 | e1000_bus_width bus_width; | 1392 | e1000_bus_width bus_width; |
1393 | e1000_bus_type bus_type; | 1393 | e1000_bus_type bus_type; |
1394 | struct e1000_eeprom_info eeprom; | 1394 | struct e1000_eeprom_info eeprom; |
1395 | e1000_ms_type master_slave; | 1395 | e1000_ms_type master_slave; |
1396 | e1000_ms_type original_master_slave; | 1396 | e1000_ms_type original_master_slave; |
1397 | e1000_ffe_config ffe_config_state; | 1397 | e1000_ffe_config ffe_config_state; |
1398 | uint32_t asf_firmware_present; | 1398 | uint32_t asf_firmware_present; |
1399 | uint32_t eeprom_semaphore_present; | 1399 | uint32_t eeprom_semaphore_present; |
1400 | uint32_t swfw_sync_present; | 1400 | uint32_t swfw_sync_present; |
1401 | uint32_t swfwhw_semaphore_present; | 1401 | uint32_t swfwhw_semaphore_present; |
1402 | unsigned long io_base; | 1402 | unsigned long io_base; |
1403 | uint32_t phy_id; | 1403 | uint32_t phy_id; |
1404 | uint32_t phy_revision; | 1404 | uint32_t phy_revision; |
1405 | uint32_t phy_addr; | 1405 | uint32_t phy_addr; |
1406 | uint32_t original_fc; | 1406 | uint32_t original_fc; |
1407 | uint32_t txcw; | 1407 | uint32_t txcw; |
1408 | uint32_t autoneg_failed; | 1408 | uint32_t autoneg_failed; |
1409 | uint32_t max_frame_size; | 1409 | uint32_t max_frame_size; |
1410 | uint32_t min_frame_size; | 1410 | uint32_t min_frame_size; |
1411 | uint32_t mc_filter_type; | 1411 | uint32_t mc_filter_type; |
1412 | uint32_t num_mc_addrs; | 1412 | uint32_t num_mc_addrs; |
1413 | uint32_t collision_delta; | 1413 | uint32_t collision_delta; |
1414 | uint32_t tx_packet_delta; | 1414 | uint32_t tx_packet_delta; |
1415 | uint32_t ledctl_default; | 1415 | uint32_t ledctl_default; |
1416 | uint32_t ledctl_mode1; | 1416 | uint32_t ledctl_mode1; |
1417 | uint32_t ledctl_mode2; | 1417 | uint32_t ledctl_mode2; |
1418 | boolean_t tx_pkt_filtering; | 1418 | boolean_t tx_pkt_filtering; |
1419 | struct e1000_host_mng_dhcp_cookie mng_cookie; | 1419 | struct e1000_host_mng_dhcp_cookie mng_cookie; |
1420 | uint16_t phy_spd_default; | 1420 | uint16_t phy_spd_default; |
1421 | uint16_t autoneg_advertised; | 1421 | uint16_t autoneg_advertised; |
1422 | uint16_t pci_cmd_word; | 1422 | uint16_t pci_cmd_word; |
1423 | uint16_t fc_high_water; | 1423 | uint16_t fc_high_water; |
1424 | uint16_t fc_low_water; | 1424 | uint16_t fc_low_water; |
1425 | uint16_t fc_pause_time; | 1425 | uint16_t fc_pause_time; |
1426 | uint16_t current_ifs_val; | 1426 | uint16_t current_ifs_val; |
1427 | uint16_t ifs_min_val; | 1427 | uint16_t ifs_min_val; |
1428 | uint16_t ifs_max_val; | 1428 | uint16_t ifs_max_val; |
1429 | uint16_t ifs_step_size; | 1429 | uint16_t ifs_step_size; |
1430 | uint16_t ifs_ratio; | 1430 | uint16_t ifs_ratio; |
1431 | uint16_t device_id; | 1431 | uint16_t device_id; |
1432 | uint16_t vendor_id; | 1432 | uint16_t vendor_id; |
1433 | uint16_t subsystem_id; | 1433 | uint16_t subsystem_id; |
1434 | uint16_t subsystem_vendor_id; | 1434 | uint16_t subsystem_vendor_id; |
1435 | uint8_t revision_id; | 1435 | uint8_t revision_id; |
1436 | uint8_t autoneg; | 1436 | uint8_t autoneg; |
1437 | uint8_t mdix; | 1437 | uint8_t mdix; |
1438 | uint8_t forced_speed_duplex; | 1438 | uint8_t forced_speed_duplex; |
1439 | uint8_t wait_autoneg_complete; | 1439 | uint8_t wait_autoneg_complete; |
1440 | uint8_t dma_fairness; | 1440 | uint8_t dma_fairness; |
1441 | uint8_t mac_addr[NODE_ADDRESS_SIZE]; | 1441 | uint8_t mac_addr[NODE_ADDRESS_SIZE]; |
1442 | uint8_t perm_mac_addr[NODE_ADDRESS_SIZE]; | 1442 | uint8_t perm_mac_addr[NODE_ADDRESS_SIZE]; |
1443 | boolean_t disable_polarity_correction; | 1443 | boolean_t disable_polarity_correction; |
1444 | boolean_t speed_downgraded; | 1444 | boolean_t speed_downgraded; |
1445 | e1000_smart_speed smart_speed; | 1445 | e1000_smart_speed smart_speed; |
1446 | e1000_dsp_config dsp_config_state; | 1446 | e1000_dsp_config dsp_config_state; |
1447 | boolean_t get_link_status; | 1447 | boolean_t get_link_status; |
1448 | boolean_t serdes_link_down; | 1448 | boolean_t serdes_link_down; |
1449 | boolean_t tbi_compatibility_en; | 1449 | boolean_t tbi_compatibility_en; |
1450 | boolean_t tbi_compatibility_on; | 1450 | boolean_t tbi_compatibility_on; |
1451 | boolean_t laa_is_present; | 1451 | boolean_t laa_is_present; |
1452 | boolean_t phy_reset_disable; | 1452 | boolean_t phy_reset_disable; |
1453 | boolean_t initialize_hw_bits_disable; | 1453 | boolean_t initialize_hw_bits_disable; |
1454 | boolean_t fc_send_xon; | 1454 | boolean_t fc_send_xon; |
1455 | boolean_t fc_strict_ieee; | 1455 | boolean_t fc_strict_ieee; |
1456 | boolean_t report_tx_early; | 1456 | boolean_t report_tx_early; |
1457 | boolean_t adaptive_ifs; | 1457 | boolean_t adaptive_ifs; |
1458 | boolean_t ifs_params_forced; | 1458 | boolean_t ifs_params_forced; |
1459 | boolean_t in_ifs_mode; | 1459 | boolean_t in_ifs_mode; |
1460 | boolean_t mng_reg_access_disabled; | 1460 | boolean_t mng_reg_access_disabled; |
1461 | boolean_t leave_av_bit_off; | 1461 | boolean_t leave_av_bit_off; |
1462 | boolean_t kmrn_lock_loss_workaround_disabled; | 1462 | boolean_t kmrn_lock_loss_workaround_disabled; |
1463 | }; | 1463 | }; |
1464 | 1464 | ||
1465 | 1465 | ||