Lines Matching defs:IoRaw
24 pub struct IoRaw<const SIZE: usize = 0> {
29 impl<const SIZE: usize> IoRaw<SIZE> {
30 /// Returns a new `IoRaw` instance on success, an error otherwise.
65 /// # use kernel::{bindings, ffi::c_void, io::{Io, IoRaw}};
69 /// struct IoMem<const SIZE: usize>(IoRaw<SIZE>);
84 /// Ok(IoMem(IoRaw::new(addr as usize, SIZE)?))
114 pub struct Io<const SIZE: usize = 0>(IoRaw<SIZE>);
176 /// Converts an `IoRaw` into an `Io` instance, providing the accessors to the MMIO mapping.
182 pub unsafe fn from_raw(raw: &IoRaw<SIZE>) -> &Self {
183 // SAFETY: `Io` is a transparent wrapper around `IoRaw`.