Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / hidds / nouveau / pci-device-mock / pcimock_intern.h
blobda43c126fd030cc64ed7d0f415f2113f569adaf3
1 #ifndef PCIMOCK_INTERN_H
2 #define PCIMOCK_INTERN_H
4 #include <exec/types.h>
5 #include <exec/libraries.h>
6 #include <oop/oop.h>
8 #include LC_LIBDEFS_FILE
10 #define MAX_BUS0_DEVICES 255
12 struct staticdata
14 OOP_Class *driverClass;
15 OOP_Class *irqMockClass;
16 OOP_Class *pciMockHardwareClass;
17 OOP_Class *NV44AMockHardwareClass;
18 OOP_Class *NVG86MockHardwareClass;
19 OOP_Class *NVGTS250MockHardwareClass;
20 OOP_Class *NVGF100MockHardwareClass;
21 OOP_Class *SIS661FXMockHardwareClass;
22 OOP_AttrBase hiddPCIDriverAB;
23 OOP_AttrBase hiddAB;
24 OOP_AttrBase hiddPCIMockHardwareAB;
26 OOP_Object *mockHardwareBus0[MAX_BUS0_DEVICES];
29 LIBBASETYPE
31 struct Library Base;
32 struct staticdata sd;
35 #define METHOD(base, id, name) \
36 base ## __ ## id ## __ ## name (OOP_Class *cl, OOP_Object *o, struct p ## id ## _ ## name *msg)
38 #define MBASE(lib) ((LIBBASETYPEPTR)(lib))
40 #define SD(cl) (&MBASE(cl->UserData)->sd)
42 #define ADD_DEVICE(sd, dev, class) \
43 sd->mockHardwareBus0[dev] = OOP_NewObject(NULL, class, NULL); \
45 #endif /* PCIMOCK_INTERN_H */