Struct xhci::registers::capability::Capability[][src]

pub struct Capability<M> where
    M: Mapper + Clone
{ pub caplength: Single<CapabilityRegistersLength, M>, pub hciversion: Single<InterfaceVersionNumber, M>, pub hcsparams1: Single<StructuralParameters1, M>, pub hcsparams2: Single<StructuralParameters2, M>, pub hcsparams3: Single<StructuralParameters3, M>, pub hccparams1: Single<CapabilityParameters1, M>, pub dboff: Single<DoorbellOffset, M>, pub rtsoff: Single<RuntimeRegisterSpaceOffset, M>, pub hccparams2: Single<CapabilityParameters2, M>, pub vtiosoff: Single<VirtualizationBasedTrustedIoRegisterSpaceOffset, M>, }

Host Controller Capability Registers

Fields

caplength: Single<CapabilityRegistersLength, M>

Capability Registers Length

hciversion: Single<InterfaceVersionNumber, M>

Host Controller Interface Version Number

hcsparams1: Single<StructuralParameters1, M>

Structural Parameters 1

hcsparams2: Single<StructuralParameters2, M>

Structural Parameters 2

hcsparams3: Single<StructuralParameters3, M>

Structural Parameters 3

hccparams1: Single<CapabilityParameters1, M>

Capability Parameters 1

dboff: Single<DoorbellOffset, M>

Doorbell Offset

rtsoff: Single<RuntimeRegisterSpaceOffset, M>

Runtime Register Space Offset

hccparams2: Single<CapabilityParameters2, M>

Capability Parameters 2

vtiosoff: Single<VirtualizationBasedTrustedIoRegisterSpaceOffset, M>

Virtualization Based Trusted IO Register Space Offset

Implementations

impl<M> Capability<M> where
    M: Mapper + Clone
[src]

pub unsafe fn new(mmio_base: usize, mapper: &M) -> Self where
    M: Mapper
[src]

Creates a new accessor to the Host Controller Capability Registers.

Safety

The caller must ensure that the Host Controller Capability Registers are accessed only through this struct.

Panics

This method panics if mmio_base is not aligned correctly.

Trait Implementations

impl<M: Debug> Debug for Capability<M> where
    M: Mapper + Clone
[src]

Auto Trait Implementations

impl<M> Send for Capability<M> where
    M: Send

impl<M> Sync for Capability<M> where
    M: Sync

impl<M> Unpin for Capability<M> where
    M: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.