aboutsummaryrefslogtreecommitdiff
path: root/kapi
diff options
context:
space:
mode:
Diffstat (limited to 'kapi')
-rw-r--r--kapi/kapi/devices/pci_express.hpp15
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