revert 213 commits (to 56092) from the last month. 10 still need work to resolve...
[AROS.git] / rom / hidds / base / storage / storage_class.c
blob88f2abeecdcd238b6cc86b19e0bf28e9e79df71f
1 /*
2 Copyright (C) 2015-2018, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <aros/debug.h>
8 #include <oop/oop.h>
9 #include <utility/tagitem.h>
11 #include "storage_intern.h"
13 OOP_Object *StorageHW__Root__New(OOP_Class *cl, OOP_Object *o, struct pRoot_New *msg)
15 D(bug ("[Storage] Root__New()\n");)
16 if (!CSD(cl)->instance)
18 struct TagItem new_tags[] =
20 {aHW_ClassName, (IPTR)"Storage Controllers"},
21 {TAG_DONE , 0 }
23 struct pRoot_New new_msg =
25 .mID = msg->mID,
26 .attrList = new_tags
29 CSD(cl)->instance = (OOP_Object *)OOP_DoSuperMethod(cl, o, &new_msg.mID);
32 D(bug ("[Storage] Root__New: Instance @ 0x%p\n", CSD(cl)->instance);)
33 return CSD(cl)->instance;
36 VOID StorageHW__Root__Dispose(OOP_Class *cl, OOP_Object *o, OOP_Msg msg)
38 D(bug ("[Storage] Root__Dispose(0x%p)\n", o);)
39 /* We are singletone. Cannot dispose. */
43 VOID StorageHW__Hidd_Storage__AllocateID(OOP_Class *cl, OOP_Object *o, struct pHidd_Storage_AllocateID *msg)
45 D(bug ("[Storage] Hidd_Storage__AllocateID(0x%p)\n", o);)
48 VOID StorageHW__Hidd_Storage__ReleaseID(OOP_Class *cl, OOP_Object *o, struct pHidd_Storage_ReleaseID *msg)
50 D(bug ("[Storage] Hidd_Storage__ReleaseID(0x%p)\n", o);)