Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ixl/ixlv.h
Show First 20 Lines • Show All 98 Lines • ▼ Show 20 Lines | |||||
/* Software controller structure */ | /* Software controller structure */ | ||||
struct ixlv_sc { | struct ixlv_sc { | ||||
struct i40e_hw hw; | struct i40e_hw hw; | ||||
struct i40e_osdep osdep; | struct i40e_osdep osdep; | ||||
struct device *dev; | struct device *dev; | ||||
struct resource *pci_mem; | struct resource *pci_mem; | ||||
struct resource *msix_mem; | |||||
enum ixlv_state_t init_state; | enum ixlv_state_t init_state; | ||||
/* | /* | ||||
* Interrupt resources | * Interrupt resources | ||||
*/ | */ | ||||
void *tag; | void *tag; | ||||
struct resource *res; /* For the AQ */ | struct resource *res; /* For the AQ */ | ||||
struct ifmedia media; | struct ifmedia *media; | ||||
struct callout timer; | |||||
int msix; | int msix; | ||||
int pf_version; | int pf_version; | ||||
int if_flags; | int if_flags; | ||||
bool link_up; | bool link_up; | ||||
u32 link_speed; | u32 link_speed; | ||||
struct mtx mtx; | |||||
u32 qbase; | u32 qbase; | ||||
u32 admvec; | u32 admvec; | ||||
struct timeout_task timeout; | #ifdef notyet | ||||
struct task aq_irq; | struct task aq_irq; | ||||
struct task aq_sched; | struct task aq_sched; | ||||
struct taskqueue *tq; | #endif | ||||
struct ixl_vsi vsi; | struct ixl_vsi vsi; | ||||
/* Filter lists */ | /* Filter lists */ | ||||
struct mac_list *mac_filters; | struct mac_list *mac_filters; | ||||
struct vlan_list *vlan_filters; | struct vlan_list *vlan_filters; | ||||
/* Promiscuous mode */ | /* Promiscuous mode */ | ||||
u32 promiscuous_flags; | u32 promiscuous_flags; | ||||
Show All 18 Lines | #endif | ||||
/* Misc stats maintained by the driver */ | /* Misc stats maintained by the driver */ | ||||
u64 watchdog_events; | u64 watchdog_events; | ||||
u64 admin_irq; | u64 admin_irq; | ||||
u8 aq_buffer[IXL_AQ_BUF_SZ]; | u8 aq_buffer[IXL_AQ_BUF_SZ]; | ||||
}; | }; | ||||
#define IXLV_CORE_LOCK_ASSERT(sc) mtx_assert(&(sc)->mtx, MA_OWNED) | |||||
/* | /* | ||||
** This checks for a zero mac addr, something that will be likely | ** This checks for a zero mac addr, something that will be likely | ||||
** unless the Admin on the Host has created one. | ** unless the Admin on the Host has created one. | ||||
*/ | */ | ||||
static inline bool | static inline bool | ||||
ixlv_check_ether_addr(u8 *addr) | ixlv_check_ether_addr(u8 *addr) | ||||
{ | { | ||||
bool status = TRUE; | bool status = TRUE; | ||||
Show All 36 Lines |