summaryrefslogtreecommitdiff
path: root/sys/include/dev/usb/xhciregs.h
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-05-21 16:45:02 -0400
committerIan Moffett <ian@osmora.org>2025-05-21 16:45:02 -0400
commiteea92b9a330fb12e59dcfbd897729d2bab9b2d13 (patch)
treebd93bae4d350bc0de0d13908b0f3b309b3aac7da /sys/include/dev/usb/xhciregs.h
parent314eba105163a5605589fa78740f9d5659cfac22 (diff)
kernel: xhci: Add runtime register offset defines
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include/dev/usb/xhciregs.h')
-rw-r--r--sys/include/dev/usb/xhciregs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/include/dev/usb/xhciregs.h b/sys/include/dev/usb/xhciregs.h
index 69515e4..1cbfd14 100644
--- a/sys/include/dev/usb/xhciregs.h
+++ b/sys/include/dev/usb/xhciregs.h
@@ -98,6 +98,13 @@ struct xhci_opregs {
#define XHCI_RTS(BASE, RTSOFF) PTR_OFFSET(BASE, RTSOFF)
#define XHCI_CMD_DB(BASE, DBOFF) PTR_OFFSET(BASE, DBOFF)
+/* Runtime register offsets */
+#define XHCI_RT_IMAN 0x20
+#define XHCI_RT_IMOD 0x24
+#define XHCI_RT_ERSTSZ 0x28
+#define XHCI_RT_ERSTBA 0x30
+#define XHCI_RT_ERDP 0x38
+
/* Support protocol cap fields */
#define XHCI_PROTO_ID(PROTO) (PROTO & 0xFF)
#define XHCI_PROTO_MINOR(PROTO) ((PROTO >> 16) & 0xFF)