]> git.ipfire.org Git - thirdparty/qemu.git/blobdiff - hw/usb/hcd-ohci-pci.c
Move QOM typedefs and add missing includes
[thirdparty/qemu.git] / hw / usb / hcd-ohci-pci.c
index a7fb1666af90b52f1165c278dc6ce827695d92e2..82fe967196f56a9172a866c2fd3e0c1b2791e817 100644 (file)
 #include "hw/qdev-properties.h"
 #include "trace.h"
 #include "hcd-ohci.h"
+#include "qom/object.h"
 
 #define TYPE_PCI_OHCI "pci-ohci"
+typedef struct OHCIPCIState OHCIPCIState;
 #define PCI_OHCI(obj) OBJECT_CHECK(OHCIPCIState, (obj), TYPE_PCI_OHCI)
 
-typedef struct {
+struct OHCIPCIState {
     /*< private >*/
     PCIDevice parent_obj;
     /*< public >*/
@@ -42,7 +44,7 @@ typedef struct {
     char *masterbus;
     uint32_t num_ports;
     uint32_t firstport;
-} OHCIPCIState;
+};
 
 /**
  * A typical PCI OHCI will additionally set PERR in its configspace to