pci_core/lib.rs
1// Copyright (c) Microsoft Corporation.
2// Licensed under the MIT License.
3
4//! Core PCI infrastructure.
5//!
6//! A collection of constants, types, and traits that are shared across all PCI
7//! implementations (i.e: vpci, pci_gen1, pcie).
8
9#![forbid(unsafe_code)]
10
11pub mod test_helpers;
12
13pub mod bar_mapping;
14pub mod bus_cfg;
15pub mod bus_range;
16pub mod capabilities;
17pub mod cfg_space_emu;
18pub mod chipset_device_ext;
19pub mod dma;
20pub mod microsoft;
21pub mod msi;
22pub mod spec;
23
24/// Defines one of the 4 legacy PCI INTx shared interrupt pins
25#[expect(missing_docs)] // self explanatory variants
26#[derive(Debug, Clone, Copy, inspect::Inspect)]
27pub enum PciInterruptPin {
28 IntA = 0,
29 IntB,
30 IntC,
31 IntD,
32}