FD.io VPP  v17.01-9-ge7dcee4
Vector Packet Processing
linux_pci.c File Reference
+ Include dependency graph for linux_pci.c:

Go to the source code of this file.

Data Structures

struct  linux_pci_device_t
 
struct  linux_pci_main_t
 

Functions

clib_error_tpci_bus_init (vlib_main_t *vm)
 
clib_error_tvlib_pci_bind_to_uio (vlib_pci_device_t *d, char *uio_driver_name)
 
static clib_error_tscan_uio_dir (void *arg, u8 *path_name, u8 *file_name)
 
static clib_error_tlinux_pci_uio_read_ready (unix_file_t *uf)
 
static clib_error_tlinux_pci_uio_error_ready (unix_file_t *uf)
 
static void add_device (vlib_pci_device_t *dev, linux_pci_device_t *pdev)
 
static void linux_pci_device_free (linux_pci_device_t *l)
 
clib_error_tvlib_pci_read_write_config (vlib_pci_device_t *dev, vlib_read_or_write_t read_or_write, uword address, void *data, u32 n_bytes)
 
static clib_error_tos_map_pci_resource_internal (uword os_handle, u32 resource, u8 *addr, void **result)
 
clib_error_tvlib_pci_map_resource (vlib_pci_device_t *dev, u32 resource, void **result)
 
clib_error_tvlib_pci_map_resource_fixed (vlib_pci_device_t *dev, u32 resource, u8 *addr, void **result)
 
void vlib_pci_free_device (vlib_pci_device_t *dev)
 
pci_device_registration_tpci_device_next_registered (pci_device_registration_t *r)
 
static clib_error_tinit_device_from_registered (vlib_main_t *vm, vlib_pci_device_t *dev, linux_pci_device_t *pdev)
 
static clib_error_tinit_device (vlib_main_t *vm, vlib_pci_device_t *dev, linux_pci_device_t *pdev)
 
static clib_error_tscan_device (void *arg, u8 *dev_dir_name, u8 *ignored)
 
clib_error_tlinux_pci_init (vlib_main_t *vm)
 

Variables

linux_pci_main_t linux_pci_main
 

Function Documentation

static void add_device ( vlib_pci_device_t dev,
linux_pci_device_t pdev 
)
static

Definition at line 244 of file linux_pci.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* init_device ( vlib_main_t vm,
vlib_pci_device_t dev,
linux_pci_device_t pdev 
)
static

Definition at line 455 of file linux_pci.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* init_device_from_registered ( vlib_main_t vm,
vlib_pci_device_t dev,
linux_pci_device_t pdev 
)
static

Definition at line 420 of file linux_pci.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void linux_pci_device_free ( linux_pci_device_t l)
static

Definition at line 286 of file linux_pci.c.

+ Here is the caller graph for this function:

clib_error_t* linux_pci_init ( vlib_main_t vm)

Definition at line 611 of file linux_pci.c.

+ Here is the call graph for this function:

static clib_error_t* linux_pci_uio_error_ready ( unix_file_t uf)
static

Definition at line 236 of file linux_pci.c.

+ Here is the caller graph for this function:

static clib_error_t* linux_pci_uio_read_ready ( unix_file_t uf)
static

Definition at line 216 of file linux_pci.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* os_map_pci_resource_internal ( uword  os_handle,
u32  resource,
u8 addr,
void **  result 
)
static

Definition at line 326 of file linux_pci.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* pci_bus_init ( vlib_main_t vm)

Definition at line 165 of file pci.c.

+ Here is the caller graph for this function:

pci_device_registration_t* pci_device_next_registered ( pci_device_registration_t r)

Definition at line 408 of file linux_pci.c.

static clib_error_t* scan_device ( void *  arg,
u8 dev_dir_name,
u8 ignored 
)
static

Definition at line 462 of file linux_pci.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* scan_uio_dir ( void *  arg,
u8 path_name,
u8 file_name 
)
static

Definition at line 201 of file linux_pci.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t * vlib_pci_bind_to_uio ( vlib_pci_device_t d,
char *  uio_driver_name 
)

Definition at line 95 of file linux_pci.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void vlib_pci_free_device ( vlib_pci_device_t dev)

Definition at line 397 of file linux_pci.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* vlib_pci_map_resource ( vlib_pci_device_t dev,
u32  resource,
void **  result 
)

Definition at line 381 of file linux_pci.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* vlib_pci_map_resource_fixed ( vlib_pci_device_t dev,
u32  resource,
u8 addr,
void **  result 
)

Definition at line 389 of file linux_pci.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* vlib_pci_read_write_config ( vlib_pci_device_t dev,
vlib_read_or_write_t  read_or_write,
uword  address,
void *  data,
u32  n_bytes 
)

Definition at line 302 of file linux_pci.c.

Variable Documentation

linux_pci_main_t linux_pci_main

Definition at line 92 of file linux_pci.c.