diff options
Diffstat (limited to 'drivers/net/igb/e1000_hw.h')
-rw-r--r-- | drivers/net/igb/e1000_hw.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/drivers/net/igb/e1000_hw.h b/drivers/net/igb/e1000_hw.h index 7b2c70a3b8cc..19fa4ee96f2e 100644 --- a/drivers/net/igb/e1000_hw.h +++ b/drivers/net/igb/e1000_hw.h | |||
@@ -38,6 +38,10 @@ | |||
38 | 38 | ||
39 | struct e1000_hw; | 39 | struct e1000_hw; |
40 | 40 | ||
41 | #define E1000_DEV_ID_82576 0x10C9 | ||
42 | #define E1000_DEV_ID_82576_FIBER 0x10E6 | ||
43 | #define E1000_DEV_ID_82576_SERDES 0x10E7 | ||
44 | #define E1000_DEV_ID_82576_QUAD_COPPER 0x10E8 | ||
41 | #define E1000_DEV_ID_82575EB_COPPER 0x10A7 | 45 | #define E1000_DEV_ID_82575EB_COPPER 0x10A7 |
42 | #define E1000_DEV_ID_82575EB_FIBER_SERDES 0x10A9 | 46 | #define E1000_DEV_ID_82575EB_FIBER_SERDES 0x10A9 |
43 | #define E1000_DEV_ID_82575GB_QUAD_COPPER 0x10D6 | 47 | #define E1000_DEV_ID_82575GB_QUAD_COPPER 0x10D6 |
@@ -50,6 +54,7 @@ struct e1000_hw; | |||
50 | enum e1000_mac_type { | 54 | enum e1000_mac_type { |
51 | e1000_undefined = 0, | 55 | e1000_undefined = 0, |
52 | e1000_82575, | 56 | e1000_82575, |
57 | e1000_82576, | ||
53 | e1000_num_macs /* List is 1-based, so subtract 1 for true count. */ | 58 | e1000_num_macs /* List is 1-based, so subtract 1 for true count. */ |
54 | }; | 59 | }; |
55 | 60 | ||
@@ -410,14 +415,17 @@ struct e1000_mac_operations { | |||
410 | s32 (*check_for_link)(struct e1000_hw *); | 415 | s32 (*check_for_link)(struct e1000_hw *); |
411 | s32 (*reset_hw)(struct e1000_hw *); | 416 | s32 (*reset_hw)(struct e1000_hw *); |
412 | s32 (*init_hw)(struct e1000_hw *); | 417 | s32 (*init_hw)(struct e1000_hw *); |
418 | bool (*check_mng_mode)(struct e1000_hw *); | ||
413 | s32 (*setup_physical_interface)(struct e1000_hw *); | 419 | s32 (*setup_physical_interface)(struct e1000_hw *); |
414 | void (*rar_set)(struct e1000_hw *, u8 *, u32); | 420 | void (*rar_set)(struct e1000_hw *, u8 *, u32); |
415 | s32 (*read_mac_addr)(struct e1000_hw *); | 421 | s32 (*read_mac_addr)(struct e1000_hw *); |
416 | s32 (*get_speed_and_duplex)(struct e1000_hw *, u16 *, u16 *); | 422 | s32 (*get_speed_and_duplex)(struct e1000_hw *, u16 *, u16 *); |
423 | void (*mta_set)(struct e1000_hw *, u32); | ||
417 | }; | 424 | }; |
418 | 425 | ||
419 | struct e1000_phy_operations { | 426 | struct e1000_phy_operations { |
420 | s32 (*acquire_phy)(struct e1000_hw *); | 427 | s32 (*acquire_phy)(struct e1000_hw *); |
428 | s32 (*check_reset_block)(struct e1000_hw *); | ||
421 | s32 (*force_speed_duplex)(struct e1000_hw *); | 429 | s32 (*force_speed_duplex)(struct e1000_hw *); |
422 | s32 (*get_cfg_done)(struct e1000_hw *hw); | 430 | s32 (*get_cfg_done)(struct e1000_hw *hw); |
423 | s32 (*get_cable_length)(struct e1000_hw *); | 431 | s32 (*get_cable_length)(struct e1000_hw *); |
@@ -586,14 +594,10 @@ struct e1000_hw { | |||
586 | 594 | ||
587 | #ifdef DEBUG | 595 | #ifdef DEBUG |
588 | extern char *igb_get_hw_dev_name(struct e1000_hw *hw); | 596 | extern char *igb_get_hw_dev_name(struct e1000_hw *hw); |
589 | #define hw_dbg(hw, format, arg...) \ | 597 | #define hw_dbg(format, arg...) \ |
590 | printk(KERN_DEBUG "%s: " format, igb_get_hw_dev_name(hw), ##arg) | 598 | printk(KERN_DEBUG "%s: " format, igb_get_hw_dev_name(hw), ##arg) |
591 | #else | 599 | #else |
592 | static inline int __attribute__ ((format (printf, 2, 3))) | 600 | #define hw_dbg(format, arg...) |
593 | hw_dbg(struct e1000_hw *hw, const char *format, ...) | ||
594 | { | ||
595 | return 0; | ||
596 | } | ||
597 | #endif | 601 | #endif |
598 | 602 | ||
599 | #endif | 603 | #endif |