Public Member Functions |
| unsigned | conf_read (unsigned bdf, unsigned dword) |
| void | conf_write (unsigned bdf, unsigned dword, unsigned value) |
| unsigned | count_bars (unsigned bdf) |
| | Induce the number of the bars from the header-type.
|
| unsigned | search_device (unsigned theclass, unsigned subclass, unsigned instance) |
| | Searches for a given device and returns the bdf of it.
|
| unsigned | search_bridge (unsigned dst) |
| | Scan the PCI root bus for bridges.
|
| unsigned | get_gsi_msi (DBus< MessageHostOp > &bus_hostop, unsigned bdf, unsigned nr, void *msix_table=0) |
| | Program the nr-th MSI/MSI-X vector of the given device.
|
| unsigned | get_gsi (DBus< MessageHostOp > &bus_hostop, DBus< MessageAcpi > &bus_acpi, unsigned bdf, unsigned nr, bool level=false, void *msix_table=0) |
| | Returns the gsi and enables them.
|
| unsigned | find_cap (unsigned bdf, unsigned char id) |
| | Find the position of a legacy PCI capability.
|
| unsigned | find_extended_cap (unsigned bdf, unsigned short id) |
| | Find the position of an extended PCI capability.
|
| unsigned long long | bar_base (unsigned bdf, unsigned bar, unsigned *type=0) |
| | Get the base and the type of a bar.
|
| unsigned long long | bar_size (unsigned bdf, unsigned bar, bool *is64bit=0) |
| | Determines BAR size.
|
| | HostPci (DBus< MessageHwPciConfig > &bus_pcicfg, DBus< MessageHostOp > &bus_hostop) |
A helper for PCI config space access.