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>
25 #include LC_LIBDEFS_FILE
27 #define __NR_iopl (110)
29 static int PCPCI_Expunge(LIBBASETYPEPTR LIBBASE
)
33 OOP_Object
*pci
= OOP_NewObject(NULL
, CLID_Hidd_PCI
, NULL
);
36 struct pHidd_PCI_RemHardwareDriver msg
, *pmsg
=&msg
;
38 msg
.mID
= OOP_GetMethodID(IID_Hidd_PCI
, moHidd_PCI_RemHardwareDriver
);
39 msg
.driverClass
= LIBBASE
->psd
.driverClass
;
41 ok
= OOP_DoMethod(pci
, (OOP_Msg
)pmsg
);
43 OOP_DisposeObject(pci
);
51 ADD2EXPUNGELIB(PCPCI_Expunge
, 0)
52 ADD2LIBS("pci.hidd", 0, static struct Library
*, __pcihidd
)