2 Copyright © 2003-2006, The AROS Development Team. All rights reserved.
6 #include <aros/symbolsets.h>
8 #include <exec/execbase.h>
9 #include <exec/types.h>
10 #include <exec/memory.h>
11 #include <exec/lists.h>
15 #include <utility/utility.h>
19 #include <proto/exec.h>
20 #include <proto/oop.h>
21 #include <aros/debug.h>
24 #include LC_LIBDEFS_FILE
26 static int PCI460_Expunge(LIBBASETYPEPTR LIBBASE
)
30 OOP_Object
*pci
= OOP_NewObject(NULL
, CLID_Hidd_PCI
, NULL
);
33 struct pHidd_PCI_RemHardwareDriver msg
, *pmsg
=&msg
;
35 msg
.mID
= OOP_GetMethodID(IID_Hidd_PCI
, moHidd_PCI_RemHardwareDriver
);
36 msg
.driverClass
= LIBBASE
->psd
.driverClass
;
38 ok
= OOP_DoMethod(pci
, (OOP_Msg
)pmsg
);
40 OOP_DisposeObject(pci
);
48 ADD2EXPUNGELIB(PCI460_Expunge
, 0)
49 ADD2LIBS("pci.hidd", 0, static struct Library
*, __pcihidd
)