Barrelfish
Functions
e10k_devif_vf.h File Reference

Virtual Function management for e10k. More...

Functions

errval_t e10k_init_vf_driver (uint8_t pci_function, bool interrupts)
 Initializes a new virtual function of the 10k. More...
 
bool e10k_vf_started (void)
 Checks if the state of the library initalized. More...
 
bool e10k_vf_can_create_queue (void)
 Checks if current active VF can still initalize another queue. The general assumption is that each VF can allocate 2 queues. Other configurations have to be specified in the PF driver. More...
 
errval_t e10k_vf_init_queue_hw (struct e10k_queue *q)
 initalized queue on VF in hardware More...
 

Detailed Description

Virtual Function management for e10k.

Function Documentation

errval_t e10k_init_vf_driver ( uint8_t  pci_function,
bool  interrupts 
)

Initializes a new virtual function of the 10k.

Parameters
pci_functionFrom which physical function this virtual function should be initalized
interruptsEnable interrupts
Returns
error on failure or SYS_ERR_OK on success
bool e10k_vf_can_create_queue ( void  )

Checks if current active VF can still initalize another queue. The general assumption is that each VF can allocate 2 queues. Other configurations have to be specified in the PF driver.

Returns
true if it is otherwise false
errval_t e10k_vf_init_queue_hw ( struct e10k_queue *  q)

initalized queue on VF in hardware

Parameters
queuee10k queue struct with information about the mapped memory that is used for DMA
Returns
SYS_ERR_OK on success otherwise failter
bool e10k_vf_started ( void  )

Checks if the state of the library initalized.

Returns
true if it is otherwise false