Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/e1000/if_em.h
Show First 20 Lines • Show All 243 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* 82574 has a nonstandard address for EIAC | * 82574 has a nonstandard address for EIAC | ||||
* and since its only used in MSIX, and in | * and since its only used in MSIX, and in | ||||
* the em driver only 82574 uses MSIX we can | * the em driver only 82574 uses MSIX we can | ||||
* solve it just using this define. | * solve it just using this define. | ||||
*/ | */ | ||||
#define EM_EIAC 0x000DC | #define EM_EIAC 0x000DC | ||||
/* | |||||
* 82574 only reports 3 MSI-X vectors by default; | |||||
* defines assisting with making it report 5 are | |||||
* located here. | |||||
*/ | |||||
#define EM_NVM_PCIE_CTRL 0x1B | |||||
#define EM_NVM_MSIX_N_MASK (0x7 << EM_NVM_MSIX_N_SHIFT) | |||||
#define EM_NVM_MSIX_N_SHIFT 7 | |||||
/* | /* | ||||
* Bus dma allocation structure used by | * Bus dma allocation structure used by | ||||
* e1000_dma_malloc and e1000_dma_free. | * e1000_dma_malloc and e1000_dma_free. | ||||
*/ | */ | ||||
struct em_dma_alloc { | struct em_dma_alloc { | ||||
bus_addr_t dma_paddr; | bus_addr_t dma_paddr; | ||||
caddr_t dma_vaddr; | caddr_t dma_vaddr; | ||||
▲ Show 20 Lines • Show All 118 Lines • ▼ Show 20 Lines | struct adapter { | ||||
struct task link_task; | struct task link_task; | ||||
struct task que_task; | struct task que_task; | ||||
struct taskqueue *tq; /* private task queue */ | struct taskqueue *tq; /* private task queue */ | ||||
eventhandler_tag vlan_attach; | eventhandler_tag vlan_attach; | ||||
eventhandler_tag vlan_detach; | eventhandler_tag vlan_detach; | ||||
u16 num_vlans; | u16 num_vlans; | ||||
u16 num_queues; | /* Allow number of tx queues != num of rx_queues */ | ||||
u8 num_tx_queues; | |||||
u8 num_rx_queues; | |||||
/* | /* | ||||
* Transmit rings: | * Transmit rings: | ||||
* Allocated at run time, an array of rings. | * Allocated at run time, an array of rings. | ||||
*/ | */ | ||||
struct tx_ring *tx_rings; | struct tx_ring *tx_rings; | ||||
int num_tx_desc; | int num_tx_desc; | ||||
u32 txd_cmd; | u32 txd_cmd; | ||||
▲ Show 20 Lines • Show All 110 Lines • Show Last 20 Lines |