#include <ddf/driver.h>
#include "pci_regs.h"
Go to the source code of this file.
Data Structures | |
struct | pci_fun_data |
struct | pciintel_bus |
Defines | |
#define | PCI_MAX_HW_RES 8 |
Functions | |
void | pci_add_interrupt (pci_fun_t *fun, int irq) |
void | pci_add_range (pci_fun_t *fun, uint64_t range_addr, size_t range_size, bool io) |
bool | pci_alloc_resource_list (pci_fun_t *fun) |
size_t | pci_bar_mask_to_size (uint32_t mask) |
void | pci_bus_scan (pci_bus_t *bus, int bus_num) |
Enumerate (recursively) and register the devices connected to a pci bus. | |
void | pci_clean_resource_list (pci_fun_t *fun) |
uint16_t | pci_conf_read_16 (pci_fun_t *fun, int reg) |
uint32_t | pci_conf_read_32 (pci_fun_t *fun, int reg) |
uint8_t | pci_conf_read_8 (pci_fun_t *fun, int reg) |
void | pci_conf_write_16 (pci_fun_t *fun, int reg, uint16_t val) |
void | pci_conf_write_32 (pci_fun_t *fun, int reg, uint32_t val) |
void | pci_conf_write_8 (pci_fun_t *fun, int reg, uint8_t val) |
void | pci_fun_create_match_ids (pci_fun_t *fun) |
char * | pci_fun_create_name (pci_fun_t *fun) |
void | pci_fun_delete (pci_fun_t *fun) |
void | pci_fun_init (pci_fun_t *fun, int bus, int dev, int fn) |
pci_fun_t * | pci_fun_new (pci_bus_t *bus) |
int | pci_read_bar (pci_fun_t *fun, int addr) |
Read the base address register (BAR) of the device and if it contains valid address add it to the devices hw resource list. | |
void | pci_read_bars (pci_fun_t *fun) |
Read the base address registers (BARs) of the function and add the addresses to its HW resource list. | |
void | pci_read_interrupt (pci_fun_t *fun) |
Definition in file pci.h.