revert between 56095 -> 55830 in arch
[AROS.git] / arch / m68k-amiga / hidd / pci-prometheus / pci-prometheus_init.c
blob958ba9b6d96be67145ea1ff27319b7183a7d884a
1 /*
2 Copyright © 2003-2006, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <aros/debug.h>
7 #include <aros/symbolsets.h>
9 #include <exec/execbase.h>
10 #include <exec/types.h>
11 #include <exec/memory.h>
12 #include <exec/lists.h>
14 #include <hidd/pci.h>
16 #include <utility/utility.h>
18 #include <proto/exec.h>
19 #include <proto/oop.h>
20 #include <aros/debug.h>
22 #include "pci.h"
23 #include LC_LIBDEFS_FILE
25 static int PCIPrometheus_Expunge(LIBBASETYPEPTR LIBBASE)
27 int ok;
29 OOP_Object *pci = OOP_NewObject(NULL, CLID_Hidd_PCI, NULL);
30 if (pci)
32 struct pHidd_PCI_RemHardwareDriver msg, *pmsg=&msg;
34 msg.mID = OOP_GetMethodID(IID_Hidd_PCI, moHidd_PCI_RemHardwareDriver);
35 msg.driverClass = LIBBASE->psd.driverClass;
37 ok = OOP_DoMethod(pci, (OOP_Msg)pmsg);
39 OOP_DisposeObject(pci);
41 else
42 ok = FALSE;
44 return ok;
47 ADD2EXPUNGELIB(PCIPrometheus_Expunge, 0)
48 ADD2LIBS("pci.hidd", 0, static struct Library *, __pcihidd)