1 #ifndef PCIMOCK_INTERN_H
2 #define PCIMOCK_INTERN_H
4 #include <exec/types.h>
5 #include <exec/libraries.h>
8 #include LC_LIBDEFS_FILE
10 #define MAX_BUS0_DEVICES 255
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
;
24 OOP_AttrBase hiddPCIMockHardwareAB
;
26 OOP_Object
*mockHardwareBus0
[MAX_BUS0_DEVICES
];
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 */