xref: /openbmc/qemu/include/hw/usb/xhci.h (revision af531756)
1 #ifndef HW_USB_XHCI_H
2 #define HW_USB_XHCI_H
3 
4 #define TYPE_XHCI "base-xhci"
5 #define TYPE_NEC_XHCI "nec-usb-xhci"
6 #define TYPE_QEMU_XHCI "qemu-xhci"
7 #define TYPE_XHCI_SYSBUS "sysbus-xhci"
8 
9 #define XHCI_MAXPORTS_2 15
10 #define XHCI_MAXPORTS_3 15
11 
12 #define XHCI_MAXPORTS (XHCI_MAXPORTS_2 + XHCI_MAXPORTS_3)
13 #define XHCI_MAXSLOTS 64
14 #define XHCI_MAXINTRS 16
15 
16 /* must be power of 2 */
17 #define XHCI_LEN_REGS 0x4000
18 
19 void xhci_sysbus_build_aml(Aml *scope, uint32_t mmio, unsigned int irq);
20 
21 #endif
22