Crate pci_x86

Source
Expand description

Tock PCI support library for x86 devices

This crate provides types and helpers for working with PCI devices within Tock OS kernel drivers. It specifically targets the PCI Local Bus Specification, Revision 3.0, as published by the PCI-SIG. All references to the PCI specification throughout this crate’s documentation and comments refer to this document.

Limitations:

  • No support for PCI Express of any revision.
  • x86 only, using I/O ports to access configuration registers.

Modules§

Command
PCI Command register bitfields
Status
PCI Status register bitfields
cap
PCI capabilities list
cfg
Constants and helpers for working with the PCI configuration space.

Structs§

Bdf
Unique identifier of a PCI device
Device
Representation of a PCI device

Functions§

iter
Returns an iterator over all present PCI devices.

Type Aliases§

CommandVal
Type-safe representation of PCI command register value
StatusVal
Type-safe representation of PCI status register value