|
Data Structures |
struct | s_pci_device |
Defines |
#define | PCI_WAIT_TIMEOUT 5 |
#define | MAX_BUS 256 |
#define | MAX_DEV_PER_BUS 32 |
#define | MAX_FUN_PER_DEV 8 |
#define | PCI_BUS(pci_tag) ((pci_tag >> 8) & (MAX_BUS - 1)) |
#define | PCI_DEV(pci_tag) ((pci_tag >> 3) & (MAX_DEV_PER_BUS - 1)) |
#define | PCI_FUN(pci_tag) (pci_tag & (MAX_FUN_PER_DEV - 1)) |
#define | SYSPCI_DEVICES 0 |
#define | SYSPCI_READ_REG 1 |
#define | SYSPCI_WRITE_REG 2 |
Typedefs |
typedef u_int16_t | pci_tag_t |
typedef s_pci_device | pci_dev_t |
typedef int(* | t_pci_find_fun )(pci_dev_t *) |
Functions |
const char * | pci_vendor_name (pci_vendor_t pci_vendor) |
const char * | pci_product_name (pci_vendor_t pci_vendor, pci_product_t pci_product) |
int | pci_find_device (pci_dev_t *device, t_pci_find_fun find_fun) |
int | pci_devices (paddr_t *list_addr, int *list_size) |
int | pci_read_reg (pci_tag_t pci_tag, int reg_addr, int bytes, pci_reg_t *value) |
int | pci_write_reg (pci_tag_t pci_tag, int reg_addr, int bytes, pci_reg_t value) |
int | pci_map_reg (pci_tag_t pci_tag, int reg_addr) |