Documented GVF_SAVE_VAR alongside other flags, and removed a query/doubt
[AROS.git] / arch / ppc-sam440 / pci460 / pci_amcc460_init.c
blob0cea184429301c6bd016024c318a74920a4791f9
1 /*
2 Copyright © 2003-2006, The AROS Development Team. All rights reserved.
3 $Id$
4 */
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>
13 #include <hidd/pci.h>
15 #include <utility/utility.h>
17 #define DEBUG 1
19 #include <proto/exec.h>
20 #include <proto/oop.h>
21 #include <aros/debug.h>
23 #include "pci.h"
24 #include LC_LIBDEFS_FILE
26 static int PCI460_Expunge(LIBBASETYPEPTR LIBBASE)
28 int ok;
30 OOP_Object *pci = OOP_NewObject(NULL, CLID_Hidd_PCI, NULL);
31 if (pci)
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);
42 else
43 ok = FALSE;
45 return ok;
48 ADD2EXPUNGELIB(PCI460_Expunge, 0)
49 ADD2LIBS("pci.hidd", 0, static struct Library *, __pcihidd)