Skip to main content

Module pci

Module pci 

Source
Expand description

PCI Configuration Space Access

Provides functions to scan the PCI bus and read/write configuration registers. Used to discover VirtIO and other PCI devices.

Reference: PCI Local Bus Specification 3.0

Modules§

class
PCI base class codes
command
PCI command register bits
config
PCI configuration register offsets
device
PCI Device IDs (VirtIO legacy)
intel_eth
Intel Ethernet device IDs
net_subclass
PCI subclasses for network controllers
sata_progif
Programming interface codes for mass-storage SATA controllers
storage_subclass
PCI subclasses for mass storage controllers
vendor
PCI Vendor IDs

Structs§

PciAddress
A PCI device location
PciDevice
PCI device information
PciScanner
Iterator for scanning PCI bus
ProbeCriteria
Full PCI probe criteria.

Enums§

Bar
Base Address Register (BAR) types

Functions§

all_devices
Return a snapshot of all discovered PCI devices.
find_device
Helper to find a device by vendor and device ID
find_devices_by_class
Return all devices matching a PCI class/subclass pair.
find_devices_by_vendor
Return all devices for a given vendor from the cached PCI inventory.
find_virtio_device
Find a specific VirtIO device by device ID
find_virtio_devices
Find all VirtIO devices on the PCI bus
invalidate_cache
Invalidate PCI cache.
probe_all
Return all devices matching criteria.
probe_first
Return the first device matching criteria.