From 159ea725460754aee6df15733ee0da73e230e008 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sat, 11 Oct 2025 20:03:17 -0400 Subject: kern: xhci: Fixup xHCI opregs field sizes Signed-off-by: Ian Moffett --- src/sys/include/io/usb/xhciregs.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/sys/include/io/usb/xhciregs.h b/src/sys/include/io/usb/xhciregs.h index 726d883..4059c05 100644 --- a/src/sys/include/io/usb/xhciregs.h +++ b/src/sys/include/io/usb/xhciregs.h @@ -39,7 +39,7 @@ * * See section 5.3 of the xHCI spec */ -struct __packed xhci_capregs { +struct xhci_capregs { volatile uint8_t caplength; volatile uint8_t reserved; volatile uint16_t hciversion; @@ -57,17 +57,17 @@ struct __packed xhci_capregs { * * See section 5.4 of the xHCI spec */ -struct __packed xhci_opregs { +struct xhci_opregs { volatile uint32_t usbcmd; volatile uint32_t usbsts; volatile uint32_t pagesize; volatile uint32_t reserved; - volatile uint32_t dnctrl; - volatile uint32_t crcr; volatile uint32_t reserved1; - volatile uint32_t dcbaap; + volatile uint32_t dnctrl; + volatile uint64_t cmd_ring; + volatile uint32_t reserved2[4]; + volatile uint64_t dcbaa_ptr; volatile uint32_t config; - volatile uint32_t reserved2; }; /* -- cgit v1.2.3