Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ixl/ixl_pf.h
Show First 20 Lines • Show All 82 Lines • ▼ Show 20 Lines | enum ixl_pf_state { | ||||
IXL_PF_STATE_PF_RESET_REQ = (1 << 3), | IXL_PF_STATE_PF_RESET_REQ = (1 << 3), | ||||
IXL_PF_STATE_VF_RESET_REQ = (1 << 4), | IXL_PF_STATE_VF_RESET_REQ = (1 << 4), | ||||
IXL_PF_STATE_PF_CRIT_ERR = (1 << 5), | IXL_PF_STATE_PF_CRIT_ERR = (1 << 5), | ||||
IXL_PF_STATE_CORE_RESET_REQ = (1 << 6), | IXL_PF_STATE_CORE_RESET_REQ = (1 << 6), | ||||
IXL_PF_STATE_GLOB_RESET_REQ = (1 << 7), | IXL_PF_STATE_GLOB_RESET_REQ = (1 << 7), | ||||
IXL_PF_STATE_EMP_RESET_REQ = (1 << 8), | IXL_PF_STATE_EMP_RESET_REQ = (1 << 8), | ||||
IXL_PF_STATE_FW_LLDP_DISABLED = (1 << 9), | IXL_PF_STATE_FW_LLDP_DISABLED = (1 << 9), | ||||
IXL_PF_STATE_EEE_ENABLED = (1 << 10), | IXL_PF_STATE_EEE_ENABLED = (1 << 10), | ||||
IXL_PF_STATE_LINK_ACTIVE_ON_DOWN = (1 << 11), | |||||
}; | }; | ||||
#define IXL_PF_IN_RECOVERY_MODE(pf) \ | #define IXL_PF_IN_RECOVERY_MODE(pf) \ | ||||
((atomic_load_acq_32(&pf->state) & IXL_PF_STATE_RECOVERY_MODE) != 0) | ((atomic_load_acq_32(&pf->state) & IXL_PF_STATE_RECOVERY_MODE) != 0) | ||||
#define IXL_PF_IS_RESETTING(pf) \ | #define IXL_PF_IS_RESETTING(pf) \ | ||||
((atomic_load_acq_32(&pf->state) & IXL_PF_STATE_RESETTING) != 0) | ((atomic_load_acq_32(&pf->state) & IXL_PF_STATE_RESETTING) != 0) | ||||
▲ Show 20 Lines • Show All 125 Lines • ▼ Show 20 Lines | |||||
"\nExecutes a \"Get Link Status\" command on the Admin Queue, and displays" \ | "\nExecutes a \"Get Link Status\" command on the Admin Queue, and displays" \ | ||||
" the response." | " the response." | ||||
#define IXL_SYSCTL_HELP_FW_LLDP \ | #define IXL_SYSCTL_HELP_FW_LLDP \ | ||||
"\nFW LLDP engine:\n" \ | "\nFW LLDP engine:\n" \ | ||||
"\t0 - disable\n" \ | "\t0 - disable\n" \ | ||||
"\t1 - enable\n" | "\t1 - enable\n" | ||||
#define IXL_SYSCTL_HELP_SET_LINK_ACTIVE \ | |||||
"\nKeep link active after setting interface down:\n" \ | |||||
"\t0 - disable\n" \ | |||||
"\t1 - enable\n" | |||||
#define IXL_SYSCTL_HELP_READ_I2C \ | #define IXL_SYSCTL_HELP_READ_I2C \ | ||||
"\nRead a byte from I2C bus\n" \ | "\nRead a byte from I2C bus\n" \ | ||||
"Input: 32-bit value\n" \ | "Input: 32-bit value\n" \ | ||||
"\tbits 0-7: device address (0xA0 or 0xA2)\n" \ | "\tbits 0-7: device address (0xA0 or 0xA2)\n" \ | ||||
"\tbits 8-15: offset (0-255)\n" \ | "\tbits 8-15: offset (0-255)\n" \ | ||||
"\tbits 16-31: unused\n" \ | "\tbits 16-31: unused\n" \ | ||||
"Output: 8-bit value read" | "Output: 8-bit value read" | ||||
▲ Show 20 Lines • Show All 106 Lines • ▼ Show 20 Lines | |||||
void ixl_add_device_sysctls(struct ixl_pf *); | void ixl_add_device_sysctls(struct ixl_pf *); | ||||
void ixl_handle_mdd_event(struct ixl_pf *); | void ixl_handle_mdd_event(struct ixl_pf *); | ||||
void ixl_add_hw_stats(struct ixl_pf *); | void ixl_add_hw_stats(struct ixl_pf *); | ||||
void ixl_update_stats_counters(struct ixl_pf *); | void ixl_update_stats_counters(struct ixl_pf *); | ||||
void ixl_pf_reset_stats(struct ixl_pf *); | void ixl_pf_reset_stats(struct ixl_pf *); | ||||
void ixl_get_bus_info(struct ixl_pf *pf); | void ixl_get_bus_info(struct ixl_pf *pf); | ||||
int ixl_aq_get_link_status(struct ixl_pf *, | int ixl_aq_get_link_status(struct ixl_pf *, | ||||
struct i40e_aqc_get_link_status *); | struct i40e_aqc_get_link_status *); | ||||
void ixl_set_link(struct ixl_pf *, bool); | |||||
int ixl_handle_nvmupd_cmd(struct ixl_pf *, struct ifdrv *); | int ixl_handle_nvmupd_cmd(struct ixl_pf *, struct ifdrv *); | ||||
int ixl_handle_i2c_eeprom_read_cmd(struct ixl_pf *, struct ifreq *ifr); | int ixl_handle_i2c_eeprom_read_cmd(struct ixl_pf *, struct ifreq *ifr); | ||||
int ixl_setup_hmc(struct ixl_pf *); | int ixl_setup_hmc(struct ixl_pf *); | ||||
void ixl_shutdown_hmc(struct ixl_pf *); | void ixl_shutdown_hmc(struct ixl_pf *); | ||||
void ixl_handle_empr_reset(struct ixl_pf *); | void ixl_handle_empr_reset(struct ixl_pf *); | ||||
int ixl_prepare_for_reset(struct ixl_pf *pf, bool is_up); | int ixl_prepare_for_reset(struct ixl_pf *pf, bool is_up); | ||||
▲ Show 20 Lines • Show All 73 Lines • Show Last 20 Lines |