xref: /openbmc/qemu/include/hw/usb/xhci.h (revision 848db525)
1*848db525SGerd Hoffmann #ifndef HW_USB_XHCI_H
2*848db525SGerd Hoffmann #define HW_USB_XHCI_H
3*848db525SGerd Hoffmann 
4*848db525SGerd Hoffmann #define TYPE_XHCI "base-xhci"
5*848db525SGerd Hoffmann #define TYPE_NEC_XHCI "nec-usb-xhci"
6*848db525SGerd Hoffmann #define TYPE_QEMU_XHCI "qemu-xhci"
7*848db525SGerd Hoffmann #define TYPE_XHCI_SYSBUS "sysbus-xhci"
8*848db525SGerd Hoffmann 
9*848db525SGerd Hoffmann #define XHCI_MAXPORTS_2 15
10*848db525SGerd Hoffmann #define XHCI_MAXPORTS_3 15
11*848db525SGerd Hoffmann 
12*848db525SGerd Hoffmann #define XHCI_MAXPORTS (XHCI_MAXPORTS_2 + XHCI_MAXPORTS_3)
13*848db525SGerd Hoffmann #define XHCI_MAXSLOTS 64
14*848db525SGerd Hoffmann #define XHCI_MAXINTRS 16
15*848db525SGerd Hoffmann 
16*848db525SGerd Hoffmann /* must be power of 2 */
17*848db525SGerd Hoffmann #define XHCI_LEN_REGS 0x4000
18*848db525SGerd Hoffmann 
19*848db525SGerd Hoffmann #endif
20