Data Accelerator Offload
|
Go to the source code of this file.
Data Structures | |
struct | dao_vfio_mem_resouce |
struct | dao_vfio_device |
Enumerations | |
enum | dao_vfio_dev_type { DAO_VFIO_DEV_PLATFORM , DAO_VFIO_DEV_PCIE } |
Functions | |
int | dao_vfio_init (void) |
int | dao_vfio_device_setup (const char *dev_name, struct dao_vfio_device *pdev) |
void | dao_vfio_device_free (struct dao_vfio_device *pdev) |
void | dao_vfio_fini (void) |
DAO VFIO library
DAO VFIO APIs are used to probe VFIO devices and map the resources.
Definition in file dao_vfio.h.
enum dao_vfio_dev_type |
VFIO device type.
Enumerator | |
---|---|
DAO_VFIO_DEV_PLATFORM | Platform device. |
DAO_VFIO_DEV_PCIE | PCIe device. |
Definition at line 25 of file dao_vfio.h.
int dao_vfio_init | ( | void | ) |
Initialize the VFIO library by opening a container.
int dao_vfio_device_setup | ( | const char * | dev_name, |
struct dao_vfio_device * | pdev | ||
) |
Probe a VFIO device and map its regions. Upon a successful probe, the device details are set in the memory referenced by the pdev pointer.
dev_name | VFIO device name |
pdev | Pointer to VFIO device structure. |
void dao_vfio_device_free | ( | struct dao_vfio_device * | pdev | ) |
Release a VFIO device and free the associated memory.
pdev | Pointer to VFIO device structure. |
void dao_vfio_fini | ( | void | ) |
Close the container.