vm_topology/
pcie.rs

1// Copyright (c) Microsoft Corporation.
2// Licensed under the MIT License.
3
4//! PCI Express topology types.
5
6use memory_range::MemoryRange;
7
8/// A description of a PCI Express Root Complex, as visible to the CPU.
9pub struct PcieHostBridge {
10    /// A unique integer index of this host bridge in the VM.
11    pub index: u32,
12    /// PCIe segment number.
13    pub segment: u16,
14    /// Lowest valid bus number.
15    pub start_bus: u8,
16    /// Highest valid bus number.
17    pub end_bus: u8,
18    /// Memory range used for configuration space access.
19    pub ecam_range: MemoryRange,
20    /// Memory range used for low MMIO.
21    pub low_mmio: MemoryRange,
22    /// Memory range used for high MMIO.
23    pub high_mmio: MemoryRange,
24}