Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/ixl/ixl_pf.h
Show First 20 Lines • Show All 162 Lines • ▼ Show 20 Lines | |||||
"\t1 - rx pause\n" \ | "\t1 - rx pause\n" \ | ||||
"\t2 - tx pause\n" \ | "\t2 - tx pause\n" \ | ||||
"\t3 - tx and rx pause" | "\t3 - tx and rx pause" | ||||
#define IXL_SYSCTL_HELP_LINK_STATUS \ | #define IXL_SYSCTL_HELP_LINK_STATUS \ | ||||
"\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." \ | ||||
static char *ixl_fc_string[6] = { | extern const char * const ixl_fc_string[6]; | ||||
"None", | |||||
"Rx", | |||||
"Tx", | |||||
"Full", | |||||
"Priority", | |||||
"Default" | |||||
}; | |||||
static MALLOC_DEFINE(M_IXL, "ixl", "ixl driver allocations"); | MALLOC_DECLARE(M_IXL); | ||||
/*** Functions / Macros ***/ | /*** Functions / Macros ***/ | ||||
/* Adjust the level here to 10 or over to print stats messages */ | /* Adjust the level here to 10 or over to print stats messages */ | ||||
#define I40E_VC_DEBUG(p, level, ...) \ | #define I40E_VC_DEBUG(p, level, ...) \ | ||||
do { \ | do { \ | ||||
if (level < 10) \ | if (level < 10) \ | ||||
ixl_dbg(p, IXL_DBG_IOV_VC, ##__VA_ARGS__); \ | ixl_dbg(p, IXL_DBG_IOV_VC, ##__VA_ARGS__); \ | ||||
} while (0) | } while (0) | ||||
▲ Show 20 Lines • Show All 105 Lines • ▼ Show 20 Lines | |||||
int ixl_handle_nvmupd_cmd(struct ixl_pf *, struct ifdrv *); | int ixl_handle_nvmupd_cmd(struct ixl_pf *, struct ifdrv *); | ||||
void ixl_handle_empr_reset(struct ixl_pf *); | void ixl_handle_empr_reset(struct ixl_pf *); | ||||
int ixl_rebuild_hw_structs_after_reset(struct ixl_pf *); | int ixl_rebuild_hw_structs_after_reset(struct ixl_pf *); | ||||
void ixl_set_queue_rx_itr(struct ixl_queue *); | void ixl_set_queue_rx_itr(struct ixl_queue *); | ||||
void ixl_set_queue_tx_itr(struct ixl_queue *); | void ixl_set_queue_tx_itr(struct ixl_queue *); | ||||
void ixl_add_filter(struct ixl_vsi *, u8 *, s16 vlan); | void ixl_add_filter(struct ixl_vsi *, const u8 *, s16 vlan); | ||||
void ixl_del_filter(struct ixl_vsi *, u8 *, s16 vlan); | void ixl_del_filter(struct ixl_vsi *, const u8 *, s16 vlan); | ||||
void ixl_reconfigure_filters(struct ixl_vsi *vsi); | void ixl_reconfigure_filters(struct ixl_vsi *vsi); | ||||
int ixl_disable_rings(struct ixl_vsi *); | int ixl_disable_rings(struct ixl_vsi *); | ||||
int ixl_disable_tx_ring(struct ixl_pf *, struct ixl_pf_qtag *, u16); | int ixl_disable_tx_ring(struct ixl_pf *, struct ixl_pf_qtag *, u16); | ||||
int ixl_disable_rx_ring(struct ixl_pf *, struct ixl_pf_qtag *, u16); | int ixl_disable_rx_ring(struct ixl_pf *, struct ixl_pf_qtag *, u16); | ||||
int ixl_disable_ring(struct ixl_pf *pf, struct ixl_pf_qtag *, u16); | int ixl_disable_ring(struct ixl_pf *pf, struct ixl_pf_qtag *, u16); | ||||
int ixl_enable_rings(struct ixl_vsi *); | int ixl_enable_rings(struct ixl_vsi *); | ||||
Show All 14 Lines | |||||
void ixl_set_promisc(struct ixl_vsi *); | void ixl_set_promisc(struct ixl_vsi *); | ||||
void ixl_add_multi(struct ixl_vsi *); | void ixl_add_multi(struct ixl_vsi *); | ||||
void ixl_del_multi(struct ixl_vsi *); | void ixl_del_multi(struct ixl_vsi *); | ||||
void ixl_setup_vlan_filters(struct ixl_vsi *); | void ixl_setup_vlan_filters(struct ixl_vsi *); | ||||
void ixl_init_filters(struct ixl_vsi *); | void ixl_init_filters(struct ixl_vsi *); | ||||
void ixl_add_hw_filters(struct ixl_vsi *, int, int); | void ixl_add_hw_filters(struct ixl_vsi *, int, int); | ||||
void ixl_del_hw_filters(struct ixl_vsi *, int); | void ixl_del_hw_filters(struct ixl_vsi *, int); | ||||
struct ixl_mac_filter * | struct ixl_mac_filter * | ||||
ixl_find_filter(struct ixl_vsi *, u8 *, s16); | ixl_find_filter(struct ixl_vsi *, const u8 *, s16); | ||||
void ixl_add_mc_filter(struct ixl_vsi *, u8 *); | void ixl_add_mc_filter(struct ixl_vsi *, u8 *); | ||||
void ixl_free_mac_filters(struct ixl_vsi *vsi); | void ixl_free_mac_filters(struct ixl_vsi *vsi); | ||||
void ixl_update_vsi_stats(struct ixl_vsi *); | void ixl_update_vsi_stats(struct ixl_vsi *); | ||||
void ixl_vsi_reset_stats(struct ixl_vsi *); | void ixl_vsi_reset_stats(struct ixl_vsi *); | ||||
/* | /* | ||||
* I2C Function prototypes | * I2C Function prototypes | ||||
*/ | */ | ||||
int ixl_find_i2c_interface(struct ixl_pf *); | int ixl_find_i2c_interface(struct ixl_pf *); | ||||
s32 ixl_read_i2c_byte(struct ixl_pf *pf, u8 byte_offset, | s32 ixl_read_i2c_byte(struct ixl_pf *pf, u8 byte_offset, | ||||
u8 dev_addr, u8 *data); | u8 dev_addr, u8 *data); | ||||
s32 ixl_write_i2c_byte(struct ixl_pf *pf, u8 byte_offset, | s32 ixl_write_i2c_byte(struct ixl_pf *pf, u8 byte_offset, | ||||
u8 dev_addr, u8 data); | u8 dev_addr, u8 data); | ||||
#endif /* _IXL_PF_H_ */ | #endif /* _IXL_PF_H_ */ |