diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-11-24 16:21:50 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-11-24 16:21:50 +0100 |
| commit | 1a9ac159d5ba5d440326884e74706beb22afc552 (patch) | |
| tree | ca6ae206b082a831a31494d6a7ac62a33380eaba /kernel/filesystem/src/filesystem.cpp | |
| parent | 2b2fb619966bf63c0c862a35d769ca48a1ed98b3 (diff) | |
| download | kernel-fmorgner/pci-device-tree.tar.xz kernel-fmorgner/pci-device-tree.zip | |
kernel/devices: enable function ecam space mappingfmorgner/pci-device-tree
This change extends the ecam_segment class to support mapping of the
configuration space of individual PCI functions based on their address.
The new function, ecam_segment::map_function, allows callers to define
the access mode (read-only or writable) for the mapping. This function
is a building block for the upcoming PCI device/driver support, as it
allows a driver to obtain access to the configuration space of a single
function for each binding of the driver.
Additionally, this change adds tests for the function, including
rejection tests of invalid function addresses. A function address is
considered invalid if it names a function outside the segment.
Diffstat (limited to 'kernel/filesystem/src/filesystem.cpp')
0 files changed, 0 insertions, 0 deletions
