5 #include "DriverData.h"
8 #include <proto/stdc.h>
10 struct StdCBase
*StdCBase
= NULL
;
14 /******************************************************************************
15 ** Custom driver init *********************************************************
16 ******************************************************************************/
19 DriverInit( struct DriverBase
* AHIsubBase
)
21 struct DeviceBase
* DeviceBase
= (struct DeviceBase
*) AHIsubBase
;
23 DOSBase
= (struct DosLibrary
*) OpenLibrary( "dos.library", 37 );
27 Req( "Unable to open 'dos.library' version 37.\n" );
32 if ((IDOS
= (struct DOSIFace
*) GetInterface((struct Library
*) DOSBase
, "main", 1, NULL
)) == NULL
)
34 Req("Couldn't open IDOS interface!\n");
40 StdCBase
= (struct StdCBase
*) OpenLibrary( "stdc.library", 0 );
42 if( StdCBase
== NULL
)
44 Req( "Unable to open 'stdc.library'.\n" );
53 /******************************************************************************
54 ** Custom driver clean-up *****************************************************
55 ******************************************************************************/
58 DriverCleanup( struct DriverBase
* AHIsubBase
)
60 struct DeviceBase
* DeviceBase
= (struct DeviceBase
*) AHIsubBase
;
63 CloseLibrary( (struct Library
*) StdCBase
);
67 DropInterface( (struct Interface
*) IDOS
);
70 CloseLibrary( (struct Library
*) DOSBase
);