diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-11-13 07:09:06 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-11-22 14:20:35 +0100 |
| commit | c0e5d076cfdeddde0a83197e2ebcee2df17934f8 (patch) | |
| tree | cc5a7aeb1ff950d4086c1e000e1ee121c80558cb /kapi | |
| parent | 625b3e37fde23ecd3106281af07991c46931aa7c (diff) | |
| download | kernel-c0e5d076cfdeddde0a83197e2ebcee2df17934f8.tar.xz kernel-c0e5d076cfdeddde0a83197e2ebcee2df17934f8.zip | |
dev/pcie: extend segment descriptor
Diffstat (limited to 'kapi')
| -rw-r--r-- | kapi/kapi/devices/pci_express.hpp | 15 |
1 files changed, 12 insertions, 3 deletions
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 <kapi/devices.hpp> +#include <kapi/memory.hpp> + #include <kstd/vector.hpp> +#include <cstddef> #include <cstdint> 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 |
