diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-11-24 16:44:54 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-11-24 16:44:54 +0100 |
| commit | 04a2ef0f6a10f9f94409f816cbd958168a5244cc (patch) | |
| tree | 9c91a88750c5514c55551ee2143bc45b9bb25fbd /kernel/filesystem | |
| parent | 1a9ac159d5ba5d440326884e74706beb22afc552 (diff) | |
| download | kernel-fmorgner/pci-device-tree.tar.xz kernel-fmorgner/pci-device-tree.zip | |
kernel/devices: add a PCI function accessor typefmorgner/pci-device-tree
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/filesystem')
0 files changed, 0 insertions, 0 deletions
