|
AquilaOS documentation
How it works, and its code
|
The host bridge, which the platform describes (platform_init() sets it): how its configuration space is reached, which IRQs its devices' interrupt pins are routed to, and where their registers go if no firmware placed them. More...
#include <pci.h>
Data Fields | |
| const char * | name |
| struct ioaddr | config |
| size_t | size |
| uint32_t(*) | read (struct pci_host *host, struct pci_dev *dev, uint16_t reg) |
| void(*) | write (struct pci_host *host, struct pci_dev *dev, uint16_t reg, uint32_t val) |
| int | nirq |
| unsigned | irq [4] |
| uint64_t | mem_base |
| uint64_t | mem_size |
| uint64_t | io_base |
| uint64_t | io_size |
The host bridge, which the platform describes (platform_init() sets it): how its configuration space is reached, which IRQs its devices' interrupt pins are routed to, and where their registers go if no firmware placed them.
| struct ioaddr pci_host::config |
Definition at line 38 of file pci.h.
Referenced by conf1_select(), pci_conf1_read(), pci_conf1_write(), pci_ecam_read(), pci_ecam_write(), and pci_host_set().
| uint64_t pci_host::io_base |
Definition at line 53 of file pci.h.
Referenced by pci_assign().
| uint64_t pci_host::io_size |
Definition at line 53 of file pci.h.
Referenced by pci_assign(), and pci_host_set().
| uint64_t pci_host::mem_base |
Definition at line 52 of file pci.h.
Referenced by pci_assign().
| uint64_t pci_host::mem_size |
Definition at line 52 of file pci.h.
Referenced by pci_assign(), and pci_host_set().
| const char* pci_host::name |
Definition at line 33 of file pci.h.
Referenced by pci_host_set().
Definition at line 40 of file pci.h.
Referenced by pci_read_dword().
| size_t pci_host::size |
Definition at line 39 of file pci.h.
Referenced by pci_ecam_read(), and pci_host_set().
Definition at line 41 of file pci.h.
Referenced by pci_write_dword().