Fixed compatibility of output.
[AROS.git] / arch / ppc-chrp / efika / pci / pci.h
blobc913a5a568c678f0c5c82aa69bf243bdae6bcea3
1 #ifndef PCI_H_
2 #define PCI_H_
4 #include <inttypes.h>
5 #include <exec/types.h>
6 #include <exec/libraries.h>
7 #include <exec/execbase.h>
8 #include <exec/nodes.h>
9 #include <exec/lists.h>
11 #include <dos/bptr.h>
13 #include <oop/oop.h>
15 #include <aros/arossupportbase.h>
16 #include <exec/execbase.h>
18 #include LC_LIBDEFS_FILE
20 struct pci_staticdata {
21 OOP_AttrBase hiddPCIDriverAB;
22 OOP_AttrBase hiddAB;
23 uint8_t *mbar;
24 uint8_t *pcimem;
25 uint32_t pcimem_size;
26 uint8_t *pciio;
27 uint32_t pciio_size;
28 OOP_Class *driverClass;
31 struct pcibase {
32 struct Library LibNode;
33 struct pci_staticdata psd;
36 #define PCI_AddressPort 0x0cf8
37 #define PCI_ForwardPort 0x0cfa
38 #define PCI_TestPort 0x0cfb
39 #define PCI_DataPort 0x0cfc
41 #define PCICS_VENDOR 0x00
42 #define PCICS_PRODUCT 0x02
43 #define PCICS_SUBCLASS 0x0a
45 #define PCI_CLASS_BRIDGE_HOST 0x0600
46 #define PCI_CLASS_DISPLAY_VGA 0x0300
48 #define PCI_VENDOR_INTEL 0x8086
49 #define PCI_VENDOR_COMPAQ 0x0e11
51 #define BASE(lib) ((struct pcibase*)(lib))
53 #define PSD(cl) (&((struct pcibase*)cl->UserData)->psd)
55 //##begin methodlist
56 //.interface Root
57 //New
58 //.interface Hidd_PCIDriver
59 //ReadConfigByte
60 //ReadConfigWord
61 //ReadConfigLong
62 //WriteConfigLong
63 //WriteConfigWord
64 //WriteConfigByte
65 //##end methodlist
68 #endif /*PCI_H_*/