pub unsafe fn new<M>(
        mmio_base: usize,
        rtoff: RuntimeRegisterSpaceOffset,
        mapper: M,
    ) -> accessor::Array<Self, M>
    where
        M: Mapper,
    {
        const NUM_INTERRUPT_REGISTER_SET: usize = 1024;

        let base = mmio_base + usize::try_from(rtoff.get()).unwrap() + 0x20;

        accessor::Array::new(base, NUM_INTERRUPT_REGISTER_SET, mapper)
    }
/// Creates an accessor to the Interrupt Register Set.
///
/// # Safety
///
/// The caller must ensure that the Host Controller Runtime Registers are accessed only through
/// this struct.
///
/// # Panics
///
/// This method panics if the base address of the Interrupt Register Sets is not aligned
/// correctly.
Creates an accessor to the Interrupt Register Set.
Creates an accessor to the Interrupt Register Set .
pub unsafe fn new<M>(
        mmio_base: usize,
        rtoff: RuntimeRegisterSpaceOffset,
        mapper: M,
    ) -> accessor::Array<Self, M>
    where
        M: Mapper,
    {
        const NUM_INTERRUPT_REGISTER_SET: usize = 1024;
        let base = mmio_base + usize::try_from(rtoff.get()).unwrap() + 0x20;
        accessor::Array::new(base, NUM_INTERRUPT_REGISTER_SET, mapper)
    }
pub unsafe fn new < M > ( mmio_base : usize , rtoff : RuntimeRegisterSpaceOffset , mapper : M , ) -> accessor :: Array < Self , M > where M : Mapper , { const NUM_INTERRUPT_REGISTER_SET : usize = 1024 ; let base = mmio_base + usize :: try_from ( rtoff . get ( ) ) . unwrap ( ) + 0x20 ; accessor :: Array :: new ( base , NUM_INTERRUPT_REGISTER_SET , mapper ) }
Creates an accessor to the Interrupt Register Set.
Creates an accessor to the Interrupt Register Set .
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 the base address of the Interrupt Register Sets is not aligned
correctly.
This method panics if the base address of the Interrupt Register Sets is not aligned correctly .