disable debug.
[AROS.git] / arch / m68k-amiga / hidd / gayle_ata / class_init.c
blob33bb0009912bdd9c357d42770a0d0ee59464c264
1 /*
2 Copyright © 2013, The AROS Development Team. All rights reserved
3 $Id$
5 Desc: A600/A1200/A4000 ATA HIDD
6 Lang: English
7 */
9 #include <aros/symbolsets.h>
10 #include <hidd/ata.h>
11 #include <hidd/hidd.h>
12 #include <proto/exec.h>
13 #include <proto/oop.h>
15 #include "bus_class.h"
17 static int gayleata_init(struct ataBase *base)
19 base->cs_UtilityBase = OpenLibrary("utility.library", 36);
20 if (!base->cs_UtilityBase)
21 return FALSE;
23 HiddAttrBase = OOP_ObtainAttrBase(IID_Hidd);
24 HiddATABusAB = OOP_ObtainAttrBase(IID_Hidd_ATABus);
26 if (!HiddAttrBase || !HiddATABusAB)
27 return FALSE;
29 return TRUE;
32 static int gayleata_expunge(struct ataBase *base)
34 OOP_ReleaseAttrBase(HiddAttrBase);
35 OOP_ReleaseAttrBase(HiddATABusAB);
36 CloseLibrary(base->cs_UtilityBase);
38 return TRUE;
41 ADD2INITLIB(gayleata_init, 0)
42 ADD2EXPUNGELIB(gayleata_expunge, 0)