Added a test for MUIA_Listview_SelectChange.
[AROS.git] / arch / all-pc / hidds / pcipc / pcipc_init.c
blob629a1379c43deeb44f94a275d01590ab46672359
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>
24 #include "pci.h"
25 #include LC_LIBDEFS_FILE
27 #define __NR_iopl (110)
29 static int PCPCI_Expunge(LIBBASETYPEPTR LIBBASE)
31 int ok;
33 OOP_Object *pci = OOP_NewObject(NULL, CLID_Hidd_PCI, NULL);
34 if (pci)
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);
45 else
47 ok = FALSE;
50 return ok;
53 ADD2EXPUNGELIB(PCPCI_Expunge, 0)
54 ADD2LIBS("pci.hidd", 0, static struct Library *, __pcihidd)