hw/arm/orangepi: check for potential NULL pointer when calling blk_is_available
[qemu/ar7.git] / include / hw / usb / chipidea.h
blob1ec2e9dbda49251c487865d5937b917315cc6085
1 #ifndef CHIPIDEA_H
2 #define CHIPIDEA_H
4 #include "hw/usb/hcd-ehci.h"
6 typedef struct ChipideaState {
7 /*< private >*/
8 EHCISysBusState parent_obj;
10 MemoryRegion iomem[3];
11 } ChipideaState;
13 #define TYPE_CHIPIDEA "usb-chipidea"
14 #define CHIPIDEA(obj) OBJECT_CHECK(ChipideaState, (obj), TYPE_CHIPIDEA)
16 #endif /* CHIPIDEA_H */