Rust XHCI Data Structure Types.
This commit is contained in:
parent
2e23e313ac
commit
da2eb4fda3
11 changed files with 808 additions and 4 deletions
|
|
@ -0,0 +1,11 @@
|
|||
use crate::xhci::data_structures::{EndpointContext, SlotContext};
|
||||
|
||||
#[repr(C, align(64))]
|
||||
#[derive(Default)]
|
||||
pub struct DeviceContext {
|
||||
slot_context: SlotContext,
|
||||
endpoint_context_0: EndpointContext,
|
||||
endpoint_contexts: [EndpointContext; 30],
|
||||
}
|
||||
|
||||
const _: () = assert!(size_of::<DeviceContext>() == 0x400);
|
||||
Loading…
Add table
Add a link
Reference in a new issue