FD.io VPP  v16.06
Vector Packet Processing
pci.c File Reference
+ Include dependency graph for pci.c:

Go to the source code of this file.

Functions

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 uword pci_resource_size (uword os_handle, uword resource)
 
void os_add_pci_disable_interrupts_reg (uword os_handle, u32 resource, u32 reg_offset, u32 reg_value)
 
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_tos_read_write_pci_config (uword os_handle, 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_tos_map_pci_resource (uword os_handle, u32 resource, void **result)
 
clib_error_tos_map_pci_resource_fixed (uword os_handle, u32 resource, u8 *addr, void **result)
 
void os_free_pci_device (uword os_handle)
 
u8format_os_pci_handle (u8 *s, va_list *va)
 
pci_device_registration_tpci_device_next_registered (pci_device_registration_t *r)
 
static u8 kernel_driver_installed (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_tpci_bus_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 224 of file pci.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8* format_os_pci_handle ( u8 s,
va_list *  va 
)

Definition at line 412 of file pci.c.

+ Here is the call 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 491 of file 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 451 of file pci.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u8 kernel_driver_installed ( pci_device_registration_t r)
inlinestatic

Definition at line 435 of file 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 282 of file pci.c.

+ Here is the caller graph for this function:

static clib_error_t* linux_pci_uio_error_ready ( unix_file_t uf)
static

Definition at line 182 of file 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 163 of file pci.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void os_add_pci_disable_interrupts_reg ( uword  os_handle,
u32  resource,
u32  reg_offset,
u32  reg_value 
)

Definition at line 206 of file pci.c.

+ Here is the call graph for this function:

void os_free_pci_device ( uword  os_handle)

Definition at line 402 of file pci.c.

+ Here is the call graph for this function:

clib_error_t* os_map_pci_resource ( uword  os_handle,
u32  resource,
void **  result 
)

Definition at line 385 of file pci.c.

+ Here is the call graph for this function:

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

Definition at line 394 of file pci.c.

+ Here is the call 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 327 of file pci.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* os_read_write_pci_config ( uword  os_handle,
vlib_read_or_write_t  read_or_write,
uword  address,
void data,
u32  n_bytes 
)

Definition at line 298 of file pci.c.

clib_error_t* pci_bus_init ( vlib_main_t vm)

Definition at line 582 of file pci.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

pci_device_registration_t* pci_device_next_registered ( pci_device_registration_t r)

Definition at line 424 of file pci.c.

static uword pci_resource_size ( uword  os_handle,
uword  resource 
)
static

Definition at line 189 of file pci.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 499 of file 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 149 of file 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 58 of file pci.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

linux_pci_main_t linux_pci_main

Definition at line 55 of file pci.c.