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 capabilities;
15pub mod cfg_space_emu;
16pub mod chipset_device_ext;
17pub mod msi;
18pub mod spec;
19
20/// Defines one of the 4 legacy PCI INTx shared interrupt pins
21#[expect(missing_docs)] // self explanatory variants
22#[derive(Debug, Clone, Copy, inspect::Inspect)]
23pub enum PciInterruptPin {
24 IntA = 0,
25 IntB,
26 IntC,
27 IntD,
28}