Crate pci [] [src]

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

BusScan
Identifier
Location

Physical location of a device on the bus

PCIDevice

A device on the PCI bus.

Enums

BAR
CSpaceAccessMethod
PCIScanError
Prefetchable
Type

Traits

PortOps

A trait defining port I/O operations.

Functions

probe_function
scan_bus