diff options
author | Ian Moffett <ian@osmora.org> | 2025-10-11 20:03:17 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-10-11 20:03:43 -0400 |
commit | 159ea725460754aee6df15733ee0da73e230e008 (patch) | |
tree | 7dfc4474bfebe6f685162a77246c4571310993e4 /src/sys/include/io/usb/xhciregs.h | |
parent | ec64baba95195e4e124e4c9112fd286677f6fce5 (diff) |
kern: xhci: Fixup xHCI opregs field sizes
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/sys/include/io/usb/xhciregs.h')
-rw-r--r-- | src/sys/include/io/usb/xhciregs.h | 12 |
1 files changed, 6 insertions, 6 deletions
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; }; /* |