drivers: Use map_bar instead of physmap where possible

Physmap requires root, while map_bar in the future could be run as
unprivileged process given a pcid handle for the target device.
This commit is contained in:
bjorn3
2026-05-09 20:12:41 +02:00
parent 0f2291ed8b
commit d528fb73b4
15 changed files with 81 additions and 65 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ pub fn memory_root_fd() -> &'static libredox::Fd {
/// aarch64 and x86 have very different cache-coherency rules, so this API as written is likely
/// not sufficient to describe the memory caching behavior in a cross-platform manner. As such,
/// consider this API unstable.
#[derive(Clone, Copy, Debug)]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum MemoryType {
/// A region of memory that implements Write-back caching.
///