[][src]Struct sunrise_ahci::hba::CmdHeader

#[repr(packed)]pub struct CmdHeader {
    flags: Mmio<CmdHeaderFlags>,
    prdtl: Mmio<u16>,
    prdbc: Mmio<u32>,
    ctba: Mmio<u64>,
    _rsv1: [Mmio<u32>; 4],
}

Command Header. Pointed to by PxCLB[i].

Indicates the PRDT length, and Command Table address and its FIS's length.

See section 4.2.2

Fields

flags: Mmio<CmdHeaderFlags>prdtl: Mmio<u16>prdbc: Mmio<u32>ctba: Mmio<u64>_rsv1: [Mmio<u32>; 4]

Implementations

impl CmdHeader[src]

pub unsafe fn init(&mut self, command_table: &mut CmdTable)[src]

Initializes a CmdHeader, making it point to its CmdTable.

Safety

  • command_table should not already be pointed to by any other CmdHeader.
  • port must not be running.

Trait Implementations

impl Debug for CmdHeader[src]

fn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]

Debug does not access reserved registers.

Auto Trait Implementations

impl RefUnwindSafe for CmdHeader

impl Send for CmdHeader

impl Sync for CmdHeader

impl Unpin for CmdHeader

impl UnwindSafe for CmdHeader

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> SizedIPCBuffer for 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.