Crate pci_for_framework

Source
Expand description

PCI bus management

This crate defines various traits, functions, and types for working with the PCI local bus.

It is assumed that PCI(e) is already configured - that is, that each device has been allocated the memory it requests and the BARs are already configured correctly. The firmware (BIOS, UEFI) usually does this on PC platforms.

This crate is not yet suitable for multicore use - nothing is synchronized.

This crate does not yet contain any hardware-specific workarounds for buggy or broken hardware.

This crate cannot yet exploit PCIe memory-mapped configuration spaces.

This crate only supports x86, currently.

Structs§

BridgeControl
BusScan
Capability
CapabilityEXPData
CapabilityMSIData
CapabilityMSIMessageControl
CapabilityPMData
CapabilitySATAData
CardbusBridgeDetails
Command
DeviceDetails
Identifier
Location
Physical location of a device on the bus
PCIDevice
A device on the PCI bus.
PciBridgeDetails
Status

Enums§

BAR
CSpaceAccessMethod
CapabilityData
DeviceKind
InterruptPin
PCIScanError
Prefetchable
Type

Traits§

PortOps
A trait defining port I/O operations.

Functions§

probe_function
scan_bus