1 #ifndef AHI_Drivers_Common_DriverBase_h
2 #define AHI_Drivers_Common_DriverBase_h
5 #include <exec/execbase.h>
6 #include <intuition/intuitionbase.h>
7 #include <utility/utility.h>
8 #include <proto/exec.h>
9 #include <proto/intuition.h>
10 #include <proto/utility.h>
14 struct Library library
;
17 #ifndef DRIVER_NEEDS_GLOBAL_EXECBASE
18 struct ExecBase
* execbase
;
20 struct IntuitionBase
* intuitionbase
;
21 struct UtilityBase
* utilitybase
;
24 # ifndef DRIVER_NEEDS_GLOBAL_EXECBASE
25 struct ExecIFace
* iexec
;
27 struct AHIsubIFace
* iahisub
;
28 struct IntuitionIFace
* iintuition
;
29 struct UtilityIFace
* iutility
;
33 #ifndef DRIVER_NEEDS_GLOBAL_EXECBASE
34 # define SysBase (AHIsubBase->execbase)
37 #if !defined(DRIVER_LIBSTUB)
38 #define IntuitionBase ((struct IntuitionBase*) AHIsubBase->intuitionbase)
39 #define UtilityBase ((struct UtilityBase*) AHIsubBase->utilitybase)
43 # ifndef DRIVER_NEEDS_GLOBAL_EXECBASE
44 # define IExec (AHIsubBase->iexec)
46 # define IAHIsub (AHIsubBase->iahisub)
47 # define IIntuition (AHIsubBase->iintuition)
48 # define IUtility (AHIsubBase->iutility)
58 DriverInit( struct DriverBase
* AHIsubBase
);
61 DriverCleanup( struct DriverBase
* AHIsubBase
);
63 #endif /* AHI_Drivers_Common_DriverBase_h */