2 Copyright © 2013, The AROS Development Team. All rights reserved
5 Desc: A600/A1200/A4000 ATA HIDD
9 #include <aros/symbolsets.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
)
23 HiddAttrBase
= OOP_ObtainAttrBase(IID_Hidd
);
24 HiddATABusAB
= OOP_ObtainAttrBase(IID_Hidd_ATABus
);
26 if (!HiddAttrBase
|| !HiddATABusAB
)
32 static int gayleata_expunge(struct ataBase
*base
)
34 OOP_ReleaseAttrBase(HiddAttrBase
);
35 OOP_ReleaseAttrBase(HiddATABusAB
);
36 CloseLibrary(base
->cs_UtilityBase
);
41 ADD2INITLIB(gayleata_init
, 0)
42 ADD2EXPUNGELIB(gayleata_expunge
, 0)