Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ixl/i40e_prototype.h
Show First 20 Lines • Show All 98 Lines • ▼ Show 20 Lines | |||||
enum i40e_status_code i40e_led_get_phy(struct i40e_hw *hw, u16 *led_addr, | enum i40e_status_code i40e_led_get_phy(struct i40e_hw *hw, u16 *led_addr, | ||||
u16 *val); | u16 *val); | ||||
enum i40e_status_code i40e_blink_phy_link_led(struct i40e_hw *hw, | enum i40e_status_code i40e_blink_phy_link_led(struct i40e_hw *hw, | ||||
u32 time, u32 interval); | u32 time, u32 interval); | ||||
enum i40e_status_code i40e_led_get_reg(struct i40e_hw *hw, u16 led_addr, | enum i40e_status_code i40e_led_get_reg(struct i40e_hw *hw, u16 led_addr, | ||||
u32 *reg_val); | u32 *reg_val); | ||||
enum i40e_status_code i40e_led_set_reg(struct i40e_hw *hw, u16 led_addr, | enum i40e_status_code i40e_led_set_reg(struct i40e_hw *hw, u16 led_addr, | ||||
u32 reg_val); | u32 reg_val); | ||||
enum i40e_status_code i40e_get_phy_lpi_status(struct i40e_hw *hw, | |||||
struct i40e_hw_port_stats *stats); | |||||
enum i40e_status_code i40e_get_lpi_counters(struct i40e_hw *hw, u32 *tx_counter, | |||||
u32 *rx_counter, bool *is_clear); | |||||
enum i40e_status_code i40e_lpi_stat_update(struct i40e_hw *hw, | |||||
bool offset_loaded, u64 *tx_offset, | |||||
u64 *tx_stat, u64 *rx_offset, | |||||
u64 *rx_stat); | |||||
enum i40e_status_code i40e_get_lpi_duration(struct i40e_hw *hw, | |||||
struct i40e_hw_port_stats *stat, | |||||
u64 *tx_duration, u64 *rx_duration); | |||||
/* admin send queue commands */ | /* admin send queue commands */ | ||||
enum i40e_status_code i40e_aq_get_firmware_version(struct i40e_hw *hw, | enum i40e_status_code i40e_aq_get_firmware_version(struct i40e_hw *hw, | ||||
u16 *fw_major_version, u16 *fw_minor_version, | u16 *fw_major_version, u16 *fw_minor_version, | ||||
u32 *fw_build, | u32 *fw_build, | ||||
u16 *api_major_version, u16 *api_minor_version, | u16 *api_major_version, u16 *api_minor_version, | ||||
struct i40e_asq_cmd_details *cmd_details); | struct i40e_asq_cmd_details *cmd_details); | ||||
enum i40e_status_code i40e_aq_debug_write_register(struct i40e_hw *hw, | enum i40e_status_code i40e_aq_debug_write_register(struct i40e_hw *hw, | ||||
▲ Show 20 Lines • Show All 359 Lines • ▼ Show 20 Lines | enum i40e_status_code i40e_validate_nvm_checksum(struct i40e_hw *hw, | ||||
u16 *checksum); | u16 *checksum); | ||||
enum i40e_status_code i40e_nvmupd_command(struct i40e_hw *hw, | enum i40e_status_code i40e_nvmupd_command(struct i40e_hw *hw, | ||||
struct i40e_nvm_access *cmd, | struct i40e_nvm_access *cmd, | ||||
u8 *bytes, int *); | u8 *bytes, int *); | ||||
void i40e_nvmupd_check_wait_event(struct i40e_hw *hw, u16 opcode, | void i40e_nvmupd_check_wait_event(struct i40e_hw *hw, u16 opcode, | ||||
struct i40e_aq_desc *desc); | struct i40e_aq_desc *desc); | ||||
void i40e_nvmupd_clear_wait_state(struct i40e_hw *hw); | void i40e_nvmupd_clear_wait_state(struct i40e_hw *hw); | ||||
void i40e_set_pci_config_data(struct i40e_hw *hw, u16 link_status); | void i40e_set_pci_config_data(struct i40e_hw *hw, u16 link_status); | ||||
enum i40e_status_code i40e_enable_eee(struct i40e_hw *hw, bool enable); | |||||
enum i40e_status_code i40e_set_mac_type(struct i40e_hw *hw); | enum i40e_status_code i40e_set_mac_type(struct i40e_hw *hw); | ||||
extern struct i40e_rx_ptype_decoded i40e_ptype_lookup[]; | extern struct i40e_rx_ptype_decoded i40e_ptype_lookup[]; | ||||
static INLINE struct i40e_rx_ptype_decoded decode_rx_desc_ptype(u8 ptype) | static INLINE struct i40e_rx_ptype_decoded decode_rx_desc_ptype(u8 ptype) | ||||
{ | { | ||||
return i40e_ptype_lookup[ptype]; | return i40e_ptype_lookup[ptype]; | ||||
Show All 11 Lines | |||||
static INLINE enum virtchnl_link_speed | static INLINE enum virtchnl_link_speed | ||||
i40e_virtchnl_link_speed(enum i40e_aq_link_speed link_speed) | i40e_virtchnl_link_speed(enum i40e_aq_link_speed link_speed) | ||||
{ | { | ||||
switch (link_speed) { | switch (link_speed) { | ||||
case I40E_LINK_SPEED_100MB: | case I40E_LINK_SPEED_100MB: | ||||
return VIRTCHNL_LINK_SPEED_100MB; | return VIRTCHNL_LINK_SPEED_100MB; | ||||
case I40E_LINK_SPEED_1GB: | case I40E_LINK_SPEED_1GB: | ||||
return VIRTCHNL_LINK_SPEED_1GB; | return VIRTCHNL_LINK_SPEED_1GB; | ||||
case I40E_LINK_SPEED_2_5GB: | |||||
return VIRTCHNL_LINK_SPEED_2_5GB; | |||||
case I40E_LINK_SPEED_5GB: | |||||
return VIRTCHNL_LINK_SPEED_5GB; | |||||
case I40E_LINK_SPEED_10GB: | case I40E_LINK_SPEED_10GB: | ||||
return VIRTCHNL_LINK_SPEED_10GB; | return VIRTCHNL_LINK_SPEED_10GB; | ||||
case I40E_LINK_SPEED_40GB: | case I40E_LINK_SPEED_40GB: | ||||
return VIRTCHNL_LINK_SPEED_40GB; | return VIRTCHNL_LINK_SPEED_40GB; | ||||
case I40E_LINK_SPEED_20GB: | case I40E_LINK_SPEED_20GB: | ||||
return VIRTCHNL_LINK_SPEED_20GB; | return VIRTCHNL_LINK_SPEED_20GB; | ||||
case I40E_LINK_SPEED_25GB: | case I40E_LINK_SPEED_25GB: | ||||
return VIRTCHNL_LINK_SPEED_25GB; | return VIRTCHNL_LINK_SPEED_25GB; | ||||
▲ Show 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | i40e_aq_get_phy_register_ext(struct i40e_hw *hw, | ||||
u32 reg_addr, u32 *reg_val, | u32 reg_addr, u32 *reg_val, | ||||
struct i40e_asq_cmd_details *cmd_details); | struct i40e_asq_cmd_details *cmd_details); | ||||
/* Convenience wrappers for most common use case */ | /* Convenience wrappers for most common use case */ | ||||
#define i40e_aq_set_phy_register(hw, ps, da, pc, ra, rv, cd) \ | #define i40e_aq_set_phy_register(hw, ps, da, pc, ra, rv, cd) \ | ||||
i40e_aq_set_phy_register_ext(hw, ps, da, pc, FALSE, 0, ra, rv, cd) | i40e_aq_set_phy_register_ext(hw, ps, da, pc, FALSE, 0, ra, rv, cd) | ||||
#define i40e_aq_get_phy_register(hw, ps, da, pc, ra, rv, cd) \ | #define i40e_aq_get_phy_register(hw, ps, da, pc, ra, rv, cd) \ | ||||
i40e_aq_get_phy_register_ext(hw, ps, da, pc, FALSE, 0, ra, rv, cd) | i40e_aq_get_phy_register_ext(hw, ps, da, pc, FALSE, 0, ra, rv, cd) | ||||
enum i40e_status_code | |||||
i40e_aq_run_phy_activity(struct i40e_hw *hw, u16 activity_id, u32 opcode, | |||||
u32 *cmd_status, u32 *data0, u32 *data1, | |||||
struct i40e_asq_cmd_details *cmd_details); | |||||
enum i40e_status_code i40e_aq_set_arp_proxy_config(struct i40e_hw *hw, | enum i40e_status_code i40e_aq_set_arp_proxy_config(struct i40e_hw *hw, | ||||
struct i40e_aqc_arp_proxy_data *proxy_config, | struct i40e_aqc_arp_proxy_data *proxy_config, | ||||
struct i40e_asq_cmd_details *cmd_details); | struct i40e_asq_cmd_details *cmd_details); | ||||
enum i40e_status_code i40e_aq_set_ns_proxy_table_entry(struct i40e_hw *hw, | enum i40e_status_code i40e_aq_set_ns_proxy_table_entry(struct i40e_hw *hw, | ||||
struct i40e_aqc_ns_proxy_data *ns_proxy_table_entry, | struct i40e_aqc_ns_proxy_data *ns_proxy_table_entry, | ||||
struct i40e_asq_cmd_details *cmd_details); | struct i40e_asq_cmd_details *cmd_details); | ||||
enum i40e_status_code i40e_aq_set_clear_wol_filter(struct i40e_hw *hw, | enum i40e_status_code i40e_aq_set_clear_wol_filter(struct i40e_hw *hw, | ||||
Show All 26 Lines |