Go to the source code of this file.
|
static linux_pci_device_t * | linux_pci_get_device (vlib_pci_dev_handle_t h) |
|
uword | vlib_pci_get_private_data (vlib_pci_dev_handle_t h) |
|
void | vlib_pci_set_private_data (vlib_pci_dev_handle_t h, uword private_data) |
|
vlib_pci_addr_t * | vlib_pci_get_addr (vlib_pci_dev_handle_t h) |
|
clib_error_t * | pci_bus_init (vlib_main_t *vm) |
|
vlib_pci_device_info_t * | vlib_pci_get_device_info (vlib_pci_addr_t *addr, clib_error_t **error) |
|
static int | directory_exists (char *path) |
|
clib_error_t * | vlib_pci_bind_to_uio (vlib_pci_addr_t *addr, char *uio_drv_name) |
|
static clib_error_t * | scan_uio_dir (void *arg, u8 *path_name, u8 *file_name) |
|
static clib_error_t * | vfio_set_irqs (linux_pci_device_t *p, u32 index, u32 start, u32 count, u32 flags, int *efds) |
|
static clib_error_t * | linux_pci_uio_read_ready (clib_file_t *uf) |
|
static clib_error_t * | linux_pci_vfio_unmask_intx (linux_pci_device_t *d) |
|
static clib_error_t * | linux_pci_uio_error_ready (clib_file_t *uf) |
|
static clib_error_t * | linux_pci_vfio_msix_read_ready (clib_file_t *uf) |
|
static clib_error_t * | linux_pci_vfio_intx_read_ready (clib_file_t *uf) |
|
static clib_error_t * | linux_pci_vfio_error_ready (clib_file_t *uf) |
|
static clib_error_t * | add_device_uio (linux_pci_device_t *p, vlib_pci_device_info_t *di, pci_device_registration_t *r) |
|
clib_error_t * | vlib_pci_register_intx_handler (vlib_pci_dev_handle_t h, pci_intx_handler_function_t *intx_handler) |
|
clib_error_t * | vlib_pci_register_msix_handler (vlib_pci_dev_handle_t h, u32 start, u32 count, pci_msix_handler_function_t *msix_handler) |
|
clib_error_t * | vlib_pci_enable_msix_irq (vlib_pci_dev_handle_t h, u16 start, u16 count) |
|
clib_error_t * | vlib_pci_disable_msix_irq (vlib_pci_dev_handle_t h, u16 start, u16 count) |
|
static clib_error_t * | add_device_vfio (linux_pci_device_t *p, vlib_pci_device_info_t *di, pci_device_registration_t *r) |
|
clib_error_t * | vlib_pci_read_write_config (vlib_pci_dev_handle_t h, vlib_read_or_write_t read_or_write, uword address, void *data, u32 n_bytes) |
|
static clib_error_t * | vlib_pci_map_region_int (vlib_pci_dev_handle_t h, u32 bar, u8 *addr, void **result) |
|
clib_error_t * | vlib_pci_map_region (vlib_pci_dev_handle_t h, u32 resource, void **result) |
|
clib_error_t * | vlib_pci_map_region_fixed (vlib_pci_dev_handle_t h, u32 resource, u8 *addr, void **result) |
|
clib_error_t * | vlib_pci_device_open (vlib_pci_addr_t *addr, pci_device_id_t ids[], vlib_pci_dev_handle_t *handle) |
|
void | vlib_pci_device_close (vlib_pci_dev_handle_t h) |
|
void | init_device_from_registered (vlib_pci_device_info_t *di) |
|
static clib_error_t * | scan_pci_addr (void *arg, u8 *dev_dir_name, u8 *ignored) |
|
static int | pci_addr_cmp (void *v1, void *v2) |
|
vlib_pci_addr_t * | vlib_pci_get_all_dev_addrs () |
|
clib_error_t * | linux_pci_init (vlib_main_t *vm) |
|
Enumerator |
---|
LINUX_PCI_DEVICE_TYPE_UNKNOWN |
|
LINUX_PCI_DEVICE_TYPE_UIO |
|
LINUX_PCI_DEVICE_TYPE_VFIO |
|
Definition at line 81 of file pci.c.
static int directory_exists |
( |
char * |
path | ) |
|
|
static |
static int pci_addr_cmp |
( |
void * |
v1, |
|
|
void * |
v2 |
|
) |
| |
|
static |
static clib_error_t* scan_pci_addr |
( |
void * |
arg, |
|
|
u8 * |
dev_dir_name, |
|
|
u8 * |
ignored |
|
) |
| |
|
static |
static clib_error_t* scan_uio_dir |
( |
void * |
arg, |
|
|
u8 * |
path_name, |
|
|
u8 * |
file_name |
|
) |
| |
|
static |
clib_error_t* vlib_pci_bind_to_uio |
( |
vlib_pci_addr_t * |
addr, |
|
|
char * |
uio_drv_name |
|
) |
| |
vlib_pci_addr_t* vlib_pci_get_all_dev_addrs |
( |
| ) |
|
char* sysfs_mod_vfio_noiommu |
|
static |
Initial value:=
"/sys/module/vfio/parameters/enable_unsafe_noiommu_mode"
Definition at line 60 of file pci.c.
const char* sysfs_pci_dev_path = "/sys/bus/pci/devices" |
|
static |
Definition at line 58 of file pci.c.
const char* sysfs_pci_drv_path = "/sys/bus/pci/drivers" |
|
static |
Definition at line 59 of file pci.c.