From c0e5d076cfdeddde0a83197e2ebcee2df17934f8 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Fri, 13 Nov 2026 07:09:06 +0100 Subject: dev/pcie: extend segment descriptor --- kapi/kapi/devices/pci_express.hpp | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'kapi') diff --git a/kapi/kapi/devices/pci_express.hpp b/kapi/kapi/devices/pci_express.hpp index 6acb279f..91cb65df 100644 --- a/kapi/kapi/devices/pci_express.hpp +++ b/kapi/kapi/devices/pci_express.hpp @@ -3,18 +3,27 @@ // IWYU pragma: private, include +#include + #include +#include #include namespace kapi::devices { + //! A descriptor for a single PCI Express segment. struct pcie_segment_descriptor { - std::uintptr_t base_address; - std::uint8_t first_bus; - std::uint8_t last_bus; + //! The physical base address, in MMIO-space, of the segment's configuration space. + memory::physical_address base_address{}; + //! The group number of the segment. + std::uint16_t group_number{}; + //! The first bus number of the segment. + std::uint8_t first_bus{}; + //! The number of buses in the segment. + std::size_t bus_count{}; }; //! @name Platform-defined API -- cgit v1.2.3