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/e1000_hw.h | |
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/e1000_hw.h')
-rw-r--r-- | drivers/net/e1000/e1000_hw.h | 304 |
1 files changed, 152 insertions, 152 deletions
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 | ||