r7637@lvps87-230-33-50: verhaegs | 2008-04-19 15:05:06 +0200
[AROS.git] / arch / i386-pc / Drivers / pcipc / pci.h
blob4f7491f1f3eb085e0437e906d81a729f91bd6a7f
1 #ifndef _PCI_H
2 #define _PCI_H
4 #include <exec/types.h>
5 #include <exec/libraries.h>
6 #include <exec/execbase.h>
7 #include <exec/nodes.h>
8 #include <exec/lists.h>
10 #include <dos/bptr.h>
12 #include <oop/oop.h>
14 #include <aros/arossupportbase.h>
15 #include <exec/execbase.h>
17 #include LC_LIBDEFS_FILE
19 struct pci_staticdata {
20 OOP_AttrBase hiddPCIDriverAB;
21 OOP_AttrBase hiddAB;
23 OOP_Class *driverClass;
24 UBYTE ConfType;
27 struct pcibase {
28 struct Library LibNode;
29 struct pci_staticdata psd;
32 #define PCI_AddressPort 0x0cf8
33 #define PCI_ForwardPort 0x0cfa
34 #define PCI_TestPort 0x0cfb
35 #define PCI_DataPort 0x0cfc
37 #define PCICS_VENDOR 0x00
38 #define PCICS_PRODUCT 0x02
39 #define PCICS_SUBCLASS 0x0a
41 #define PCI_CLASS_BRIDGE_HOST 0x0600
42 #define PCI_CLASS_DISPLAY_VGA 0x0300
44 #define PCI_VENDOR_INTEL 0x8086
45 #define PCI_VENDOR_COMPAQ 0x0e11
47 #define BASE(lib) ((struct pcibase*)(lib))
49 #define PSD(cl) (&((struct pcibase*)cl->UserData)->psd)
51 #endif /* _PCI_H */