xref: /openbmc/qemu/include/qemu/typedefs.h (revision 3860a2a8de56fad71db42f4ad120eb7eff03b51f)
1 #ifndef QEMU_TYPEDEFS_H
2 #define QEMU_TYPEDEFS_H
3 
4 /*
5  * This header is for selectively avoiding #include just to get a
6  * typedef name.
7  *
8  * Declaring a typedef name in its "obvious" place can result in
9  * inclusion cycles, in particular for complete struct and union
10  * types that need more types for their members.  It can also result
11  * in headers pulling in many more headers, slowing down builds.
12  *
13  * You can break such cycles and unwanted dependencies by declaring
14  * the typedef name here.
15  *
16  * For struct types used in only a few headers, judicious use of the
17  * struct tag instead of the typedef name is commonly preferable.
18  */
19 
20 /*
21  * Incomplete struct types
22  * Please keep this list in case-insensitive alphabetical order.
23  */
24 typedef struct AccelCPUState AccelCPUState;
25 typedef struct AccelState AccelState;
26 typedef struct AddressSpace AddressSpace;
27 typedef struct AioContext AioContext;
28 typedef struct Aml Aml;
29 typedef struct ArchCPU ArchCPU;
30 typedef struct BdrvDirtyBitmap BdrvDirtyBitmap;
31 typedef struct BdrvDirtyBitmapIter BdrvDirtyBitmapIter;
32 typedef struct BlockBackend BlockBackend;
33 typedef struct BlockBackendRootState BlockBackendRootState;
34 typedef struct BlockDriverState BlockDriverState;
35 typedef struct BusClass BusClass;
36 typedef struct BusState BusState;
37 typedef struct Chardev Chardev;
38 typedef struct Clock Clock;
39 typedef struct ConfidentialGuestSupport ConfidentialGuestSupport;
40 typedef struct CPUArchState CPUArchState;
41 typedef struct CPUPluginState CPUPluginState;
42 typedef struct CPUState CPUState;
43 typedef struct CPUTLBEntryFull CPUTLBEntryFull;
44 typedef struct DeviceState DeviceState;
45 typedef struct DirtyBitmapSnapshot DirtyBitmapSnapshot;
46 typedef struct DisasContextBase DisasContextBase;
47 typedef struct DisplayChangeListener DisplayChangeListener;
48 typedef struct DriveInfo DriveInfo;
49 typedef struct DumpState DumpState;
50 typedef struct Error Error;
51 typedef struct EventNotifier EventNotifier;
52 typedef struct FlatView FlatView;
53 typedef struct FWCfgState FWCfgState;
54 typedef struct HostMemoryBackend HostMemoryBackend;
55 typedef struct I2CBus I2CBus;
56 typedef struct I2SCodec I2SCodec;
57 typedef struct IOMMUMemoryRegion IOMMUMemoryRegion;
58 typedef struct ISABus ISABus;
59 typedef struct ISADevice ISADevice;
60 typedef struct IsaDma IsaDma;
61 typedef struct JSONWriter JSONWriter;
62 typedef struct MACAddr MACAddr;
63 typedef struct MachineClass MachineClass;
64 typedef struct MachineState MachineState;
65 typedef struct MemoryListener MemoryListener;
66 typedef struct MemoryMappingList MemoryMappingList;
67 typedef struct MemoryRegion MemoryRegion;
68 typedef struct MemoryRegionCache MemoryRegionCache;
69 typedef struct MemoryRegionSection MemoryRegionSection;
70 typedef struct MigrationIncomingState MigrationIncomingState;
71 typedef struct MigrationState MigrationState;
72 typedef struct Monitor Monitor;
73 typedef struct MSIMessage MSIMessage;
74 typedef struct NetClientState NetClientState;
75 typedef struct NetFilterState NetFilterState;
76 typedef struct NICInfo NICInfo;
77 typedef struct Object Object;
78 typedef struct ObjectClass ObjectClass;
79 typedef struct PCIBridge PCIBridge;
80 typedef struct PCIBus PCIBus;
81 typedef struct PCIDevice PCIDevice;
82 typedef struct PCIEPort PCIEPort;
83 typedef struct PCIESlot PCIESlot;
84 typedef struct PCIExpressDevice PCIExpressDevice;
85 typedef struct PCIExpressHost PCIExpressHost;
86 typedef struct PCIHostDeviceAddress PCIHostDeviceAddress;
87 typedef struct PCIHostState PCIHostState;
88 typedef struct Property Property;
89 typedef struct PropertyInfo PropertyInfo;
90 typedef struct QBool QBool;
91 typedef struct QDict QDict;
92 typedef struct QEMUBH QEMUBH;
93 typedef struct QemuConsole QemuConsole;
94 typedef struct QEMUCursor QEMUCursor;
95 typedef struct QEMUFile QEMUFile;
96 typedef struct QemuMutex QemuMutex;
97 typedef struct QemuOpts QemuOpts;
98 typedef struct QemuOptsList QemuOptsList;
99 typedef struct QEMUSGList QEMUSGList;
100 typedef struct QemuSpin QemuSpin;
101 typedef struct QEMUTimer QEMUTimer;
102 typedef struct QEMUTimerListGroup QEMUTimerListGroup;
103 typedef struct QList QList;
104 typedef struct QNull QNull;
105 typedef struct QNum QNum;
106 typedef struct QObject QObject;
107 typedef struct QString QString;
108 typedef struct RAMBlock RAMBlock;
109 typedef struct Range Range;
110 typedef struct ReservedRegion ReservedRegion;
111 typedef struct SHPCDevice SHPCDevice;
112 typedef struct SSIBus SSIBus;
113 typedef struct TCGCPUOps TCGCPUOps;
114 typedef struct TCGHelperInfo TCGHelperInfo;
115 typedef struct TaskState TaskState;
116 typedef struct TranslationBlock TranslationBlock;
117 typedef struct VirtIODevice VirtIODevice;
118 typedef struct Visitor Visitor;
119 typedef struct VMChangeStateEntry VMChangeStateEntry;
120 typedef struct VMStateDescription VMStateDescription;
121 
122 /*
123  * Pointer types
124  * Such typedefs should be limited to cases where the typedef's users
125  * are oblivious of its "pointer-ness".
126  * Please keep this list in case-insensitive alphabetical order.
127  */
128 typedef struct IRQState *qemu_irq;
129 
130 /*
131  * Function types
132  */
133 typedef void (*qemu_irq_handler)(void *opaque, int n, int level);
134 
135 #endif /* QEMU_TYPEDEFS_H */
136