aboutsummaryrefslogtreecommitdiff
path: root/kernel/kapi/memory
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-11-23 18:46:47 +0100
committerFelix Morgner <felix.morgner@ost.ch>2026-11-23 18:46:47 +0100
commitf19e0ed7f403b22c7e4845bbc3fafd84cc44be3b (patch)
tree883d2476ba1b23068f69e385f8120d177270a8f2 /kernel/kapi/memory
parent9232d36e9d4bf1329602ca5f6460eff699f24764 (diff)
downloadkernel-f19e0ed7f403b22c7e4845bbc3fafd84cc44be3b.tar.xz
kernel-f19e0ed7f403b22c7e4845bbc3fafd84cc44be3b.zip
kernel/devices: record PCI bridge information in scan
Previously, no special handling was implemented when encountering PCI-to-PCI bridges, thus neither the secondary nor the subordinate bus numbers were recorded. This change extends the function_info type by two fields: secondary_bus and subordinate_bus, in preparation for the upcoming depth-first PCI bus scan. The fields are only read from ECAM space if the PCI function is a PCI-to-PCI bridge (including multifunction bridges), as reported by function_info::type. In all other cases, including CardBus bridges, the fields are set to zero. This change also includes the required constants in registers.hpp. The tests are extended to check that the secondary_bus and subordinate_bus fields are only read for PCI-to-PCI bridges, and left as zero otherwise.
Diffstat (limited to 'kernel/kapi/memory')
0 files changed, 0 insertions, 0 deletions