pub unsafe fn new(mmio_base: usize, rtoff: RuntimeRegisterSpaceOffset, mapper: M) -> Self {
        let base = mmio_base + usize::try_from(rtoff.get()).unwrap();

        Self {
            mfindex: accessor::Single::new(base, mapper),
        }
    }
/// Creates a new accessor to the Host Controller Runtime Registers.
///
/// # Safety
///
/// The caller must ensure that the Host Controller Runtime Registers are accessed only through
/// this struct.
///
/// # Panics
///
/// This method panics if `mmio_base` is not aligned correctly.
Creates a new accessor to the Host Controller Runtime Registers.
Creates a new accessor to the Host Controller Runtime Registers .
pub unsafe fn new(mmio_base: usize, rtoff: RuntimeRegisterSpaceOffset, mapper: M) -> Self {
        let base = mmio_base + usize::try_from(rtoff.get()).unwrap();
        Self {
            mfindex: accessor::Single::new(base, mapper),
        }
    }
pub unsafe fn new ( mmio_base : usize , rtoff : RuntimeRegisterSpaceOffset , mapper : M ) -> Self { let base = mmio_base + usize :: try_from ( rtoff . get ( ) ) . unwrap ( ) ; Self { mfindex : accessor :: Single :: new ( base , mapper ) , } }
Creates a new accessor to the Host Controller Runtime Registers.
Creates a new accessor to the Host Controller Runtime Registers .
mmio_base
usize
rtoff
RuntimeRegisterSpaceOffset
mapper
M
mmio_base
usize
rtoff
RuntimeRegisterSpaceOffset
mapper
M
safety
The caller must ensure that the Host Controller Runtime Registers are accessed only through
this struct.
The caller must ensure that the Host Controller Runtime Registers are accessed only through this struct .
panics
This method panics if `mmio_base` is not aligned correctly.
This method panics if ` mmio_base ` is not aligned correctly .