Go to the source code of this file.
Macros | |
#define | BUS_PCI_ADDR 0xcf8 |
#define | BUS_PCI_DATA 0xcfc |
Functions | |
void | bus_pci_decompose_1 (uint32_t t, int *bus, int *dev, int *func, int *reg) |
void | bus_pci_setaddr (struct cpu *cpu, struct pci_data *pci_data, int bus, int device, int function, int reg) |
void | bus_pci_data_access (struct cpu *cpu, struct pci_data *pci_data, uint64_t *data, int len, int writeflag) |
struct pci_data * | bus_pci_init (struct machine *machine, const char *irq_path, uint64_t pci_actual_io_offset, uint64_t pci_actual_mem_offset, uint64_t pci_portbase, uint64_t pci_membase, const char *pci_irqbase, uint64_t isa_portbase, uint64_t isa_membase, const char *isa_irqbase) |
void | bus_pci_add (struct machine *machine, struct pci_data *pci_data, struct memory *mem, int bus, int device, int function, const char *name) |
void bus_pci_add | ( | struct machine * | machine, |
struct pci_data * | pci_data, | ||
struct memory * | mem, | ||
int | bus, | ||
int | device, | ||
int | function, | ||
const char * | name | ||
) |
Definition at line 216 of file bus_pci.cc.
References CHECK_ALLOCATION, fatal(), PCI_COMMAND_IO_ENABLE, PCI_COMMAND_MEM_ENABLE, PCI_COMMAND_STATUS_REG, pci_lookup_initf, PCI_MAPREG_END, and PCI_MAPREG_START.
Referenced by dev_gt_init(), dev_uninorth_init(), DEVINIT(), and MACHINE_SETUP().
void bus_pci_data_access | ( | struct cpu * | cpu, |
struct pci_data * | pci_data, | ||
uint64_t * | data, | ||
int | len, | ||
int | writeflag | ||
) |
Definition at line 95 of file bus_pci.cc.
References data, debug, fatal(), MEM_READ, MEM_WRITE, PCI_COMMAND_IO_ENABLE, PCI_COMMAND_STATUS_REG, PCI_MAPREG_END, and PCI_MAPREG_START.
Referenced by DEVICE_ACCESS().
void bus_pci_decompose_1 | ( | uint32_t | t, |
int * | bus, | ||
int * | dev, | ||
int * | func, | ||
int * | reg | ||
) |
Definition at line 76 of file bus_pci.cc.
References fatal(), reg, and t.
Referenced by DEVICE_ACCESS().
struct pci_data* bus_pci_init | ( | struct machine * | machine, |
const char * | irq_path, | ||
uint64_t | pci_actual_io_offset, | ||
uint64_t | pci_actual_mem_offset, | ||
uint64_t | pci_portbase, | ||
uint64_t | pci_membase, | ||
const char * | pci_irqbase, | ||
uint64_t | isa_portbase, | ||
uint64_t | isa_membase, | ||
const char * | isa_irqbase | ||
) |
Definition at line 355 of file bus_pci.cc.
References CHECK_ALLOCATION.
Referenced by dev_gt_init(), dev_macepci_init(), dev_uninorth_init(), and DEVINIT().
void bus_pci_setaddr | ( | struct cpu * | cpu, |
struct pci_data * | pci_data, | ||
int | bus, | ||
int | device, | ||
int | function, | ||
int | reg | ||
) |
Definition at line 196 of file bus_pci.cc.
Referenced by DEVICE_ACCESS().