11 lines
316 B
Rust
11 lines
316 B
Rust
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);
|