⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

Module pci

Module pci 

Source
Expand description

PCI Bus Driver

Implements PCI bus enumeration and device management.

Modules§

class_codes
PCI class codes (per PCI specification)
command_flags
PCI command register flags (per PCI specification)

Structs§

MsiCapability
MSI capability information parsed from the PCI capability chain.
MsixCapability
MSI-X capability information parsed from the PCI capability chain.
PciBus
PCI bus implementation
PciDevice
PCI device representation
PciLocation
PCI device location

Enums§

PciBar
PCI Base Address Register
PciConfigRegister
PCI configuration space registers (per PCI Local Bus Specification)

Functions§

configure_msi
Configure MSI for a device to deliver a specific vector to a target APIC.
ecam_read_config
Read a PCI config register using memory-mapped ECAM access (PCIe).
ecam_write_config
Write a PCI config register using memory-mapped ECAM access (PCIe).
get_pci_bus
Get the global PCI bus
init
Initialize PCI bus
is_pci_initialized
Check if PCI bus has been initialized
probe_known_drivers
Probe enumerated PCI devices and initialize known VirtIO drivers.