pci_x86/
lib.rs

1// Licensed under the Apache License, Version 2.0 or the MIT License.
2// SPDX-License-Identifier: Apache-2.0 OR MIT
3// Copyright Tock Contributors 2025.
4
5//! Tock PCI support library for x86 devices
6//!
7//! This crate provides types and helpers for working with PCI devices within Tock OS kernel
8//! drivers. It specifically targets the PCI Local Bus Specification, Revision 3.0, as published by
9//! the PCI-SIG. All references to the PCI specification throughout this crate's documentation and
10//! comments refer to this document.
11//!
12//! Limitations:
13//!
14//! * No support for PCI Express of any revision.
15//! * x86 only, using I/O ports to access configuration registers.
16
17#![no_std]
18
19mod bdf;
20pub use self::bdf::Bdf;
21
22pub mod cap;
23
24pub mod cfg;
25
26mod device;
27pub use self::device::{Command, CommandVal, Device, Status, StatusVal};
28
29mod iter;
30pub use self::iter::iter;