From eea92b9a330fb12e59dcfbd897729d2bab9b2d13 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Wed, 21 May 2025 16:45:02 -0400 Subject: kernel: xhci: Add runtime register offset defines Signed-off-by: Ian Moffett --- sys/include/dev/usb/xhciregs.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'sys/include/dev/usb') 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) -- cgit v1.2.3