Rust XHCI Data Structure Types.

This commit is contained in:
Drew 2025-12-05 21:15:00 -08:00
parent 2e23e313ac
commit da2eb4fda3
11 changed files with 808 additions and 4 deletions

View file

@ -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);