diff options
Diffstat (limited to 'drivers/net/ixgbe/ixgbe_common.h')
-rw-r--r-- | drivers/net/ixgbe/ixgbe_common.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/ixgbe/ixgbe_common.h b/drivers/net/ixgbe/ixgbe_common.h index c63021261e56..7e94d6d399ab 100644 --- a/drivers/net/ixgbe/ixgbe_common.h +++ b/drivers/net/ixgbe/ixgbe_common.h | |||
@@ -37,12 +37,14 @@ s32 ixgbe_clear_hw_cntrs_generic(struct ixgbe_hw *hw); | |||
37 | s32 ixgbe_read_pba_num_generic(struct ixgbe_hw *hw, u32 *pba_num); | 37 | s32 ixgbe_read_pba_num_generic(struct ixgbe_hw *hw, u32 *pba_num); |
38 | s32 ixgbe_get_mac_addr_generic(struct ixgbe_hw *hw, u8 *mac_addr); | 38 | s32 ixgbe_get_mac_addr_generic(struct ixgbe_hw *hw, u8 *mac_addr); |
39 | s32 ixgbe_get_bus_info_generic(struct ixgbe_hw *hw); | 39 | s32 ixgbe_get_bus_info_generic(struct ixgbe_hw *hw); |
40 | void ixgbe_set_lan_id_multi_port_pcie(struct ixgbe_hw *hw); | ||
40 | s32 ixgbe_stop_adapter_generic(struct ixgbe_hw *hw); | 41 | s32 ixgbe_stop_adapter_generic(struct ixgbe_hw *hw); |
41 | 42 | ||
42 | s32 ixgbe_led_on_generic(struct ixgbe_hw *hw, u32 index); | 43 | s32 ixgbe_led_on_generic(struct ixgbe_hw *hw, u32 index); |
43 | s32 ixgbe_led_off_generic(struct ixgbe_hw *hw, u32 index); | 44 | s32 ixgbe_led_off_generic(struct ixgbe_hw *hw, u32 index); |
44 | 45 | ||
45 | s32 ixgbe_init_eeprom_params_generic(struct ixgbe_hw *hw); | 46 | s32 ixgbe_init_eeprom_params_generic(struct ixgbe_hw *hw); |
47 | s32 ixgbe_write_eeprom_generic(struct ixgbe_hw *hw, u16 offset, u16 data); | ||
46 | s32 ixgbe_read_eeprom_generic(struct ixgbe_hw *hw, u16 offset, u16 *data); | 48 | s32 ixgbe_read_eeprom_generic(struct ixgbe_hw *hw, u16 offset, u16 *data); |
47 | s32 ixgbe_read_eeprom_bit_bang_generic(struct ixgbe_hw *hw, u16 offset, | 49 | s32 ixgbe_read_eeprom_bit_bang_generic(struct ixgbe_hw *hw, u16 offset, |
48 | u16 *data); | 50 | u16 *data); |
@@ -61,6 +63,7 @@ s32 ixgbe_update_uc_addr_list_generic(struct ixgbe_hw *hw, u8 *addr_list, | |||
61 | u32 addr_count, ixgbe_mc_addr_itr func); | 63 | u32 addr_count, ixgbe_mc_addr_itr func); |
62 | s32 ixgbe_enable_mc_generic(struct ixgbe_hw *hw); | 64 | s32 ixgbe_enable_mc_generic(struct ixgbe_hw *hw); |
63 | s32 ixgbe_disable_mc_generic(struct ixgbe_hw *hw); | 65 | s32 ixgbe_disable_mc_generic(struct ixgbe_hw *hw); |
66 | s32 ixgbe_enable_rx_dma_generic(struct ixgbe_hw *hw, u32 regval); | ||
64 | s32 ixgbe_setup_fc_generic(struct ixgbe_hw *hw, s32 packetbuf_num); | 67 | s32 ixgbe_setup_fc_generic(struct ixgbe_hw *hw, s32 packetbuf_num); |
65 | s32 ixgbe_fc_enable(struct ixgbe_hw *hw, s32 packtetbuf_num); | 68 | s32 ixgbe_fc_enable(struct ixgbe_hw *hw, s32 packtetbuf_num); |
66 | s32 ixgbe_fc_autoneg(struct ixgbe_hw *hw); | 69 | s32 ixgbe_fc_autoneg(struct ixgbe_hw *hw); |
@@ -75,6 +78,13 @@ s32 ixgbe_write_analog_reg8_generic(struct ixgbe_hw *hw, u32 reg, u8 val); | |||
75 | 78 | ||
76 | #define IXGBE_WRITE_REG(a, reg, value) writel((value), ((a)->hw_addr + (reg))) | 79 | #define IXGBE_WRITE_REG(a, reg, value) writel((value), ((a)->hw_addr + (reg))) |
77 | 80 | ||
81 | #ifndef writeq | ||
82 | #define writeq(val, addr) writel((u32) (val), addr); \ | ||
83 | writel((u32) (val >> 32), (addr + 4)); | ||
84 | #endif | ||
85 | |||
86 | #define IXGBE_WRITE_REG64(a, reg, value) writeq((value), ((a)->hw_addr + (reg))) | ||
87 | |||
78 | #define IXGBE_READ_REG(a, reg) readl((a)->hw_addr + (reg)) | 88 | #define IXGBE_READ_REG(a, reg) readl((a)->hw_addr + (reg)) |
79 | 89 | ||
80 | #define IXGBE_WRITE_REG_ARRAY(a, reg, offset, value) (\ | 90 | #define IXGBE_WRITE_REG_ARRAY(a, reg, offset, value) (\ |