Go to the source code of this file.
|
typedef | CLIB_PACKED (union{struct{u16 domain;u8 bus;u8 slot:5;u8 function:3;};u32 as_u32;}) vlib_pci_addr_t |
|
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) |
|
clib_error_t * | os_map_pci_resource (uword os_handle, u32 resource, void **result) |
|
clib_error_t * | os_map_pci_resource_fixed (uword os_handle, u32 resource, u8 *addr, void **result) |
|
void | os_free_pci_device (uword os_handle) |
|
void | os_add_pci_disable_interrupts_reg (uword os_handle, u32 resource, u32 reg_offset, u32 reg_value) |
|
static uword | unformat_vlib_pci_addr (unformat_input_t *input, va_list *args) |
|
static u8 * | format_vlib_pci_addr (u8 *s, va_list *va) |
|
#define PCI_REGISTER_DEVICE |
( |
|
x, |
|
|
|
... |
|
) |
| |
Value:static void __vlib_add_pci_device_registration_##x (void) \
__attribute__((__constructor__)) ; \
static void __vlib_add_pci_device_registration_##x (void) \
{ \
x.next_registration = lpm->pci_device_registrations; \
lpm->pci_device_registrations = &x; \
} \
static unix_main_t * vlib_unix_get_main(void)
struct _pci_device_registration pci_device_registration_t
Definition at line 88 of file pci.h.
typedef CLIB_PACKED |
( |
union{struct{u16 domain;u8 bus;u8 slot:5;u8 function:3;};u32 as_u32;} |
| ) |
|
static u8* format_vlib_pci_addr |
( |
u8 * |
s, |
|
|
va_list * |
va |
|
) |
| |
|
inlinestatic |
void os_add_pci_disable_interrupts_reg |
( |
uword |
os_handle, |
|
|
u32 |
resource, |
|
|
u32 |
reg_offset, |
|
|
u32 |
reg_value |
|
) |
| |