aboutsummaryrefslogtreecommitdiff
path: root/kernel/devices/src/BlockDevice.cpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-11-24 16:44:54 +0100
committerFelix Morgner <felix.morgner@ost.ch>2026-11-24 16:44:54 +0100
commit04a2ef0f6a10f9f94409f816cbd958168a5244cc (patch)
tree9c91a88750c5514c55551ee2143bc45b9bb25fbd /kernel/devices/src/BlockDevice.cpp
parent1a9ac159d5ba5d440326884e74706beb22afc552 (diff)
downloadkernel-04a2ef0f6a10f9f94409f816cbd958168a5244cc.tar.xz
kernel-04a2ef0f6a10f9f94409f816cbd958168a5244cc.zip
kernel/devices: add a PCI function accessor type
This change adds a type to identify and access PCI functions as part of the future PCI device tree support. A function_access object implements the pci_signature interface so future PCI devices can return a pointer to it in response to facet queries. Additionally, the accessor type implements the map_config function to map the associated function's configuration space, so drivers can gain access to a device's function-specific registers. Additionally, this change includes a test suite to verify the correct behavior of the accessor type, including corner cases such as functions outside the valid MMIO range.
Diffstat (limited to 'kernel/devices/src/BlockDevice.cpp')
0 files changed, 0 insertions, 0 deletions