]> git.proxmox.com Git - mirror_qemu.git/blobdiff - include/hw/i2c/ppc4xx_i2c.h
Move QOM typedefs and add missing includes
[mirror_qemu.git] / include / hw / i2c / ppc4xx_i2c.h
index f6f837fbec00aae240a8cf08a1075b84ea7d41ae..3698e054b156620c646f6abc732decb072ea9768 100644 (file)
 
 #include "hw/sysbus.h"
 #include "hw/i2c/bitbang_i2c.h"
+#include "qom/object.h"
 
 #define TYPE_PPC4xx_I2C "ppc4xx-i2c"
+typedef struct PPC4xxI2CState PPC4xxI2CState;
 #define PPC4xx_I2C(obj) OBJECT_CHECK(PPC4xxI2CState, (obj), TYPE_PPC4xx_I2C)
 
-typedef struct PPC4xxI2CState {
+struct PPC4xxI2CState {
     /*< private >*/
     SysBusDevice parent_obj;
 
@@ -57,6 +59,6 @@ typedef struct PPC4xxI2CState {
     uint8_t xfrcnt;
     uint8_t xtcntlss;
     uint8_t directcntl;
-} PPC4xxI2CState;
+};
 
 #endif /* PPC4XX_I2C_H */