#ifndef AHI_Drivers_Device_DriverData_h #define AHI_Drivers_Device_DriverData_h #include #include #include "DriverBase.h" struct DeviceBase { struct DriverBase driverbase; struct Library* dosbase; #ifdef __AMIGAOS4__ struct DOSIFace* idos; #endif }; #define DRIVERBASE_SIZEOF (sizeof (struct DeviceBase)) #define DOSBase *((struct DosLibrary**) &DeviceBase->dosbase) #ifdef __AMIGAOS4__ # define IDOS (DeviceBase->idos) #endif struct DeviceData { struct DriverData driverdata; BYTE mastersignal; BYTE slavesignal; struct Process* mastertask; struct Process* slavetask; struct DeviceBase* ahisubbase; APTR mixbuffers[ 2 ]; ULONG unit; }; #endif /* AHI_Drivers_Device_DriverData_h */