FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
pci.c File Reference
+ Include dependency graph for pci.c:

Go to the source code of this file.

Functions

vlib_pci_device_info_tvlib_pci_get_device_info (vlib_main_t *vm, vlib_pci_addr_t *addr, clib_error_t **error)
 
vlib_pci_addr_t * vlib_pci_get_all_dev_addrs ()
 
static clib_error_tshow_pci_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
uword unformat_vlib_pci_addr (unformat_input_t *input, va_list *args)
 
u8format_vlib_pci_addr (u8 *s, va_list *va)
 
u8format_vlib_pci_link_speed (u8 *s, va_list *va)
 
u8format_vlib_pci_vpd (u8 *s, va_list *args)
 
clib_error_tpci_bus_init (vlib_main_t *vm)
 

Variables

vlib_pci_main_t pci_main
 
static vlib_cli_command_t show_pci_command
 (constructor) VLIB_CLI_COMMAND (show_pci_command) More...
 

Function Documentation

◆ format_vlib_pci_addr()

u8* format_vlib_pci_addr ( u8 s,
va_list *  va 
)

Definition at line 138 of file pci.c.

+ Here is the caller graph for this function:

◆ format_vlib_pci_link_speed()

u8* format_vlib_pci_link_speed ( u8 s,
va_list *  va 
)

Definition at line 146 of file pci.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ format_vlib_pci_vpd()

u8* format_vlib_pci_vpd ( u8 s,
va_list *  args 
)

Definition at line 170 of file pci.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ pci_bus_init()

clib_error_t* pci_bus_init ( vlib_main_t vm)

Definition at line 251 of file pci.c.

+ Here is the call graph for this function:

◆ show_pci_fn()

static clib_error_t* show_pci_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 70 of file pci.c.

+ Here is the call graph for this function:

◆ unformat_vlib_pci_addr()

uword unformat_vlib_pci_addr ( unformat_input_t input,
va_list *  args 
)

Definition at line 121 of file pci.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vlib_pci_get_all_dev_addrs()

vlib_pci_addr_t* vlib_pci_get_all_dev_addrs ( )

Definition at line 64 of file pci.c.

+ Here is the call graph for this function:

◆ vlib_pci_get_device_info()

vlib_pci_device_info_t* vlib_pci_get_device_info ( vlib_main_t vm,
vlib_pci_addr_t *  addr,
clib_error_t **  error 
)

Definition at line 56 of file pci.c.

+ Here is the call graph for this function:

Variable Documentation

◆ pci_main

vlib_pci_main_t pci_main

Definition at line 53 of file pci.c.

◆ show_pci_command

vlib_cli_command_t show_pci_command
static
Initial value:
= {
.path = "show pci",
.short_help = "show pci [all]",
.function = show_pci_fn,
}

(constructor) VLIB_CLI_COMMAND (show_pci_command)

Definition at line 243 of file pci.c.

show_pci_fn
static clib_error_t * show_pci_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: pci.c:70