diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2020-10-20 09:48:36 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2020-10-21 11:36:19 +0200 |
commit | 848db5257db7f5a199373f3ac870893e7d770d46 (patch) | |
tree | 6acdcd7c6096fbb416c2df0c29bdf393ad668f78 /include | |
parent | 284e269d7ecd511084cc83d6b5ce3bca4db38f53 (diff) | |
download | qemu-848db5257db7f5a199373f3ac870893e7d770d46.zip qemu-848db5257db7f5a199373f3ac870893e7d770d46.tar.gz qemu-848db5257db7f5a199373f3ac870893e7d770d46.tar.bz2 |
usb/xhci: add include/hw/usb/xhci.h header file
Move a bunch of defines which might be needed outside core xhci
code to that place. Add XHCI_ prefixes to avoid name clashes.
No functional change.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Sai Pavan Boddu <sai.pavan.boddu@xilinx.com>
Message-id: 20201020074844.5304-3-kraxel@redhat.com
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/usb/xhci.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/hw/usb/xhci.h b/include/hw/usb/xhci.h new file mode 100644 index 0000000..dc0c299 --- /dev/null +++ b/include/hw/usb/xhci.h @@ -0,0 +1,19 @@ +#ifndef HW_USB_XHCI_H +#define HW_USB_XHCI_H + +#define TYPE_XHCI "base-xhci" +#define TYPE_NEC_XHCI "nec-usb-xhci" +#define TYPE_QEMU_XHCI "qemu-xhci" +#define TYPE_XHCI_SYSBUS "sysbus-xhci" + +#define XHCI_MAXPORTS_2 15 +#define XHCI_MAXPORTS_3 15 + +#define XHCI_MAXPORTS (XHCI_MAXPORTS_2 + XHCI_MAXPORTS_3) +#define XHCI_MAXSLOTS 64 +#define XHCI_MAXINTRS 16 + +/* must be power of 2 */ +#define XHCI_LEN_REGS 0x4000 + +#endif |