diff options
| author | Guenter Roeck <linux@roeck-us.net> | 2024-09-06 05:25:36 -0700 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-12-31 21:21:34 +0100 |
| commit | d826e47404cdf4f462a3f27b2f47455f21e7764e (patch) | |
| tree | ef3ca1e54aafcc556a312a0361481607e8757b40 /include/hw/usb/uhci-regs.h | |
| parent | 9d59b65d82415a39d862e996770c8561ef8f30b5 (diff) | |
| download | focaccia-qemu-d826e47404cdf4f462a3f27b2f47455f21e7764e.tar.gz focaccia-qemu-d826e47404cdf4f462a3f27b2f47455f21e7764e.zip | |
hw/usb/uhci: Introduce and use register defines
Introduce defines for UHCI registers to simplify adding register access in subsequent patches of the series. No functional change. Signed-off-by: Guenter Roeck <linux@roeck-us.net> Reviewed-by: Cédric Le Goater <clg@redhat.com> Message-ID: <20240906122542.3808997-3-linux@roeck-us.net> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'include/hw/usb/uhci-regs.h')
| -rw-r--r-- | include/hw/usb/uhci-regs.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/hw/usb/uhci-regs.h b/include/hw/usb/uhci-regs.h index fd45d29db0..5b81714e5c 100644 --- a/include/hw/usb/uhci-regs.h +++ b/include/hw/usb/uhci-regs.h @@ -1,6 +1,17 @@ #ifndef HW_USB_UHCI_REGS_H #define HW_USB_UHCI_REGS_H +#define UHCI_USBCMD 0 +#define UHCI_USBSTS 2 +#define UHCI_USBINTR 4 +#define UHCI_USBFRNUM 6 +#define UHCI_USBFLBASEADD 8 +#define UHCI_USBSOF 0x0c +#define UHCI_USBPORTSC1 0x10 +#define UHCI_USBPORTSC2 0x12 +#define UHCI_USBPORTSC3 0x14 +#define UHCI_USBPORTSC4 0x16 + #define UHCI_CMD_FGR (1 << 4) #define UHCI_CMD_EGSM (1 << 3) #define UHCI_CMD_GRESET (1 << 2) |