xref: /openbmc/qemu/hw/usb/hcd-uhci-sysbus.h (revision a829d749)
1 #ifndef HW_USB_HCD_UHCI_SYSBUS_H
2 #define HW_USB_HCD_UHCI_SYSBUS_H
3 
4 #include "hcd-uhci.h"
5 
6 #define TYPE_SYSBUS_UHCI "sysbus-uhci"
7 #define TYPE_ASPEED_UHCI "aspeed-uhci"
8 
9 OBJECT_DECLARE_SIMPLE_TYPE(UHCISysBusState, SYSBUS_UHCI)
10 
11 struct UHCISysBusState {
12     /*< private >*/
13     SysBusDevice parent_obj;
14     /*< public >*/
15     UHCIState uhci;
16 
17     char *masterbus;
18     uint32_t firstport;
19     uint32_t frame_bandwidth;
20     uint32_t maxframes;
21     uint32_t num_ports;
22 };
23 
24 OBJECT_DECLARE_SIMPLE_TYPE(ASPEEDUHCIState, ASPEED_UHCI)
25 
26 struct ASPEEDUHCIState {
27     /*< private >*/
28     UHCISysBusState parent_obj;
29     /*< public >*/
30 
31     MemoryRegion mem_aspeed;
32 };
33 
34 #endif /* HW_USB_HCD_UHCI_SYSBUS_H */
35