Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ixgbe/ixgbe_common.h
Show All 37 Lines | |||||
#include "ixgbe_type.h" | #include "ixgbe_type.h" | ||||
#define IXGBE_WRITE_REG64(hw, reg, value) \ | #define IXGBE_WRITE_REG64(hw, reg, value) \ | ||||
do { \ | do { \ | ||||
IXGBE_WRITE_REG(hw, reg, (u32) value); \ | IXGBE_WRITE_REG(hw, reg, (u32) value); \ | ||||
IXGBE_WRITE_REG(hw, reg + 4, (u32) (value >> 32)); \ | IXGBE_WRITE_REG(hw, reg + 4, (u32) (value >> 32)); \ | ||||
} while (0) | } while (0) | ||||
#define IXGBE_REMOVED(a) (0) | #define IXGBE_REMOVED(a) (0) | ||||
#if !defined(NO_READ_PBA_RAW) || !defined(NO_WRITE_PBA_RAW) | |||||
struct ixgbe_pba { | struct ixgbe_pba { | ||||
u16 word[2]; | u16 word[2]; | ||||
u16 *pba_block; | u16 *pba_block; | ||||
}; | }; | ||||
#endif | |||||
void ixgbe_dcb_get_rtrup2tc_generic(struct ixgbe_hw *hw, u8 *map); | void ixgbe_dcb_get_rtrup2tc_generic(struct ixgbe_hw *hw, u8 *map); | ||||
u16 ixgbe_get_pcie_msix_count_generic(struct ixgbe_hw *hw); | u16 ixgbe_get_pcie_msix_count_generic(struct ixgbe_hw *hw); | ||||
s32 ixgbe_init_ops_generic(struct ixgbe_hw *hw); | s32 ixgbe_init_ops_generic(struct ixgbe_hw *hw); | ||||
s32 ixgbe_init_hw_generic(struct ixgbe_hw *hw); | s32 ixgbe_init_hw_generic(struct ixgbe_hw *hw); | ||||
s32 ixgbe_start_hw_generic(struct ixgbe_hw *hw); | s32 ixgbe_start_hw_generic(struct ixgbe_hw *hw); | ||||
void ixgbe_start_hw_gen2(struct ixgbe_hw *hw); | void ixgbe_start_hw_gen2(struct ixgbe_hw *hw); | ||||
▲ Show 20 Lines • Show All 115 Lines • ▼ Show 20 Lines | s32 ixgbe_bypass_set_generic(struct ixgbe_hw *hw, u32 ctrl, u32 event, | ||||
u32 action); | u32 action); | ||||
s32 ixgbe_bypass_rd_eep_generic(struct ixgbe_hw *hw, u32 addr, u8 *value); | s32 ixgbe_bypass_rd_eep_generic(struct ixgbe_hw *hw, u32 addr, u8 *value); | ||||
extern s32 ixgbe_reset_pipeline_82599(struct ixgbe_hw *hw); | extern s32 ixgbe_reset_pipeline_82599(struct ixgbe_hw *hw); | ||||
extern void ixgbe_stop_mac_link_on_d3_82599(struct ixgbe_hw *hw); | extern void ixgbe_stop_mac_link_on_d3_82599(struct ixgbe_hw *hw); | ||||
bool ixgbe_mng_present(struct ixgbe_hw *hw); | bool ixgbe_mng_present(struct ixgbe_hw *hw); | ||||
bool ixgbe_mng_enabled(struct ixgbe_hw *hw); | bool ixgbe_mng_enabled(struct ixgbe_hw *hw); | ||||
#define IXGBE_I2C_THERMAL_SENSOR_ADDR 0xF8 | |||||
#define IXGBE_EMC_INTERNAL_DATA 0x00 | |||||
#define IXGBE_EMC_INTERNAL_THERM_LIMIT 0x20 | |||||
#define IXGBE_EMC_DIODE1_DATA 0x01 | |||||
#define IXGBE_EMC_DIODE1_THERM_LIMIT 0x19 | |||||
#define IXGBE_EMC_DIODE2_DATA 0x23 | |||||
#define IXGBE_EMC_DIODE2_THERM_LIMIT 0x1A | |||||
#define IXGBE_EMC_DIODE3_DATA 0x2A | |||||
#define IXGBE_EMC_DIODE3_THERM_LIMIT 0x30 | |||||
s32 ixgbe_get_thermal_sensor_data_generic(struct ixgbe_hw *hw); | |||||
s32 ixgbe_init_thermal_sensor_thresh_generic(struct ixgbe_hw *hw); | |||||
void ixgbe_get_etk_id(struct ixgbe_hw *hw, struct ixgbe_nvm_version *nvm_ver); | void ixgbe_get_etk_id(struct ixgbe_hw *hw, struct ixgbe_nvm_version *nvm_ver); | ||||
void ixgbe_get_oem_prod_version(struct ixgbe_hw *hw, | void ixgbe_get_oem_prod_version(struct ixgbe_hw *hw, | ||||
struct ixgbe_nvm_version *nvm_ver); | struct ixgbe_nvm_version *nvm_ver); | ||||
void ixgbe_get_orom_version(struct ixgbe_hw *hw, | void ixgbe_get_orom_version(struct ixgbe_hw *hw, | ||||
struct ixgbe_nvm_version *nvm_ver); | struct ixgbe_nvm_version *nvm_ver); | ||||
void ixgbe_disable_rx_generic(struct ixgbe_hw *hw); | void ixgbe_disable_rx_generic(struct ixgbe_hw *hw); | ||||
void ixgbe_enable_rx_generic(struct ixgbe_hw *hw); | void ixgbe_enable_rx_generic(struct ixgbe_hw *hw); | ||||
s32 ixgbe_setup_mac_link_multispeed_fiber(struct ixgbe_hw *hw, | s32 ixgbe_setup_mac_link_multispeed_fiber(struct ixgbe_hw *hw, | ||||
ixgbe_link_speed speed, | ixgbe_link_speed speed, | ||||
bool autoneg_wait_to_complete); | bool autoneg_wait_to_complete); | ||||
void ixgbe_set_soft_rate_select_speed(struct ixgbe_hw *hw, | void ixgbe_set_soft_rate_select_speed(struct ixgbe_hw *hw, | ||||
ixgbe_link_speed speed); | ixgbe_link_speed speed); | ||||
#endif /* IXGBE_COMMON */ | #endif /* IXGBE_COMMON */ |