1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#![no_std] mod pte64; pub use pte64::*; #[derive(Debug, Clone, Copy)] pub enum MAIRKind { Device, Normal, NonCache, } pub trait MAIRSetting { fn get_idx(kind: MAIRKind) -> usize; fn from_idx(idx: usize) -> MAIRKind; }