diff options
Diffstat (limited to 'drivers/net/igb/e1000_hw.h')
-rw-r--r-- | drivers/net/igb/e1000_hw.h | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/drivers/net/igb/e1000_hw.h b/drivers/net/igb/e1000_hw.h index 99504a600a8..bd86cebed37 100644 --- a/drivers/net/igb/e1000_hw.h +++ b/drivers/net/igb/e1000_hw.h | |||
@@ -1,7 +1,7 @@ | |||
1 | /******************************************************************************* | 1 | /******************************************************************************* |
2 | 2 | ||
3 | Intel(R) Gigabit Ethernet Linux driver | 3 | Intel(R) Gigabit Ethernet Linux driver |
4 | Copyright(c) 2007 Intel Corporation. | 4 | Copyright(c) 2007-2009 Intel Corporation. |
5 | 5 | ||
6 | This program is free software; you can redistribute it and/or modify it | 6 | This program is free software; you can redistribute it and/or modify it |
7 | under the terms and conditions of the GNU General Public License, | 7 | under the terms and conditions of the GNU General Public License, |
@@ -359,6 +359,7 @@ struct e1000_hw_stats { | |||
359 | u64 lenerrs; | 359 | u64 lenerrs; |
360 | u64 scvpc; | 360 | u64 scvpc; |
361 | u64 hrmpc; | 361 | u64 hrmpc; |
362 | u64 doosync; | ||
362 | }; | 363 | }; |
363 | 364 | ||
364 | struct e1000_phy_stats { | 365 | struct e1000_phy_stats { |
@@ -422,25 +423,25 @@ struct e1000_mac_operations { | |||
422 | }; | 423 | }; |
423 | 424 | ||
424 | struct e1000_phy_operations { | 425 | struct e1000_phy_operations { |
425 | s32 (*acquire_phy)(struct e1000_hw *); | 426 | s32 (*acquire)(struct e1000_hw *); |
426 | s32 (*check_reset_block)(struct e1000_hw *); | 427 | s32 (*check_reset_block)(struct e1000_hw *); |
427 | s32 (*force_speed_duplex)(struct e1000_hw *); | 428 | s32 (*force_speed_duplex)(struct e1000_hw *); |
428 | s32 (*get_cfg_done)(struct e1000_hw *hw); | 429 | s32 (*get_cfg_done)(struct e1000_hw *hw); |
429 | s32 (*get_cable_length)(struct e1000_hw *); | 430 | s32 (*get_cable_length)(struct e1000_hw *); |
430 | s32 (*get_phy_info)(struct e1000_hw *); | 431 | s32 (*get_phy_info)(struct e1000_hw *); |
431 | s32 (*read_phy_reg)(struct e1000_hw *, u32, u16 *); | 432 | s32 (*read_reg)(struct e1000_hw *, u32, u16 *); |
432 | void (*release_phy)(struct e1000_hw *); | 433 | void (*release)(struct e1000_hw *); |
433 | s32 (*reset_phy)(struct e1000_hw *); | 434 | s32 (*reset)(struct e1000_hw *); |
434 | s32 (*set_d0_lplu_state)(struct e1000_hw *, bool); | 435 | s32 (*set_d0_lplu_state)(struct e1000_hw *, bool); |
435 | s32 (*set_d3_lplu_state)(struct e1000_hw *, bool); | 436 | s32 (*set_d3_lplu_state)(struct e1000_hw *, bool); |
436 | s32 (*write_phy_reg)(struct e1000_hw *, u32, u16); | 437 | s32 (*write_reg)(struct e1000_hw *, u32, u16); |
437 | }; | 438 | }; |
438 | 439 | ||
439 | struct e1000_nvm_operations { | 440 | struct e1000_nvm_operations { |
440 | s32 (*acquire_nvm)(struct e1000_hw *); | 441 | s32 (*acquire)(struct e1000_hw *); |
441 | s32 (*read_nvm)(struct e1000_hw *, u16, u16, u16 *); | 442 | s32 (*read)(struct e1000_hw *, u16, u16, u16 *); |
442 | void (*release_nvm)(struct e1000_hw *); | 443 | void (*release)(struct e1000_hw *); |
443 | s32 (*write_nvm)(struct e1000_hw *, u16, u16, u16 *); | 444 | s32 (*write)(struct e1000_hw *, u16, u16, u16 *); |
444 | }; | 445 | }; |
445 | 446 | ||
446 | struct e1000_info { | 447 | struct e1000_info { |
@@ -483,7 +484,6 @@ struct e1000_mac_info { | |||
483 | bool asf_firmware_present; | 484 | bool asf_firmware_present; |
484 | bool autoneg; | 485 | bool autoneg; |
485 | bool autoneg_failed; | 486 | bool autoneg_failed; |
486 | bool disable_av; | ||
487 | bool disable_hw_init_bits; | 487 | bool disable_hw_init_bits; |
488 | bool get_link_status; | 488 | bool get_link_status; |
489 | bool ifs_params_forced; | 489 | bool ifs_params_forced; |
@@ -565,9 +565,12 @@ struct e1000_fc_info { | |||
565 | enum e1000_fc_type original_type; | 565 | enum e1000_fc_type original_type; |
566 | }; | 566 | }; |
567 | 567 | ||
568 | struct e1000_dev_spec_82575 { | ||
569 | bool sgmii_active; | ||
570 | }; | ||
571 | |||
568 | struct e1000_hw { | 572 | struct e1000_hw { |
569 | void *back; | 573 | void *back; |
570 | void *dev_spec; | ||
571 | 574 | ||
572 | u8 __iomem *hw_addr; | 575 | u8 __iomem *hw_addr; |
573 | u8 __iomem *flash_address; | 576 | u8 __iomem *flash_address; |
@@ -580,7 +583,9 @@ struct e1000_hw { | |||
580 | struct e1000_bus_info bus; | 583 | struct e1000_bus_info bus; |
581 | struct e1000_host_mng_dhcp_cookie mng_cookie; | 584 | struct e1000_host_mng_dhcp_cookie mng_cookie; |
582 | 585 | ||
583 | u32 dev_spec_size; | 586 | union { |
587 | struct e1000_dev_spec_82575 _82575; | ||
588 | } dev_spec; | ||
584 | 589 | ||
585 | u16 device_id; | 590 | u16 device_id; |
586 | u16 subsystem_vendor_id; | 591 | u16 subsystem_vendor_id; |