grub2: bring back build of aros-side grub2 tools
[AROS.git] / rom / hidds / pci / include / pci_hidd.h
blobe39d7ea53fe557d844a36af42e17ef29af1f674a
1 #ifndef HIDD_PCI_H
2 #define HIDD_PCI_H
4 /*
5 Copyright © 2003-2013, The AROS Development Team. All rights reserved.
6 $Id$
7 */
9 #ifndef EXEC_TYPES_H
10 #include <exec/types.h>
11 #endif
13 #ifndef HIDD_HIDD_H
14 #include <hidd/hidd.h>
15 #endif
17 #ifndef OOP_OOP_H
18 #include <oop/oop.h>
19 #endif
21 #ifndef UTILITY_HOOKS_H
22 #include <utility/hooks.h>
23 #endif
25 #ifndef UTILITY_TAGITEM_H
26 #include <utility/tagitem.h>
27 #endif
29 /* Base PCI class */
31 #define CLID_Hidd_PCI "hidd.pci"
33 #include <interface/Hidd_PCI.h>
35 /* Tags for EnumDevices method */
36 enum
38 tHidd_PCI_VendorID = TAG_USER,
39 tHidd_PCI_ProductID,
40 tHidd_PCI_RevisionID,
41 tHidd_PCI_Interface,
42 tHidd_PCI_Class,
43 tHidd_PCI_SubClass,
44 tHidd_PCI_SubsystemVendorID,
45 tHidd_PCI_SubsystemID,
46 tHidd_PCI_Driver
49 /* PCI device class */
50 #include <interface/Hidd_PCIDevice.h>
52 /* ABIv0 compatability */
53 #define __IHidd_PCIDev __IHidd_PCIDevice
55 #define IS_PCIDEV_ATTR(attr, idx) \
56 (((idx) = (attr) - HiddPCIDeviceAttrBase) < num_Hidd_PCIDevice_Attrs)
58 /* Types of BaseAddresses */
59 #define ADDRB_IO 0
60 #define ADDRB_PREFETCH 3
62 #define ADDRF_IO (1 << ADDRB_IO)
63 #define ADDRF_PREFETCH (1 << ADDRB_PREFETCH)
65 /* PCI driver class */
67 #define CLID_Hidd_PCIDriver "hidd.pci.driver"
69 #include <interface/Hidd_PCIDriver.h>
71 /* ABIv0 compatability */
72 #define __IHidd_PCIDrv __IHidd_PCIDriver
74 #define IS_PCIDRV_ATTR(attr, idx) \
75 (((idx) = (attr) - HiddPCIDriverAttrBase) < num_Hidd_PCIDriver_Attrs)
77 #endif