revert between 56095 -> 55830 in arch
[AROS.git] / workbench / hidds / agp / include / agp.h
blob1fc227282879460ae6745fb580a07ee36411eae8
1 #ifndef HIDD_AGP_H
2 #define HIDD_AGP_H
4 /*
5 Copyright 2010, 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 /* Base AGP class */
23 #define CLID_Hidd_AGP "hidd.agp"
24 #define IID_Hidd_AGP "hidd.agp"
26 #define HiddAGPAttrBase __IHidd_AGP
28 #ifndef __OOP_NOATTRBASES__
29 extern OOP_AttrBase HiddAGPAttrBase;
30 #endif
32 /* AGP Class methods */
33 enum
35 moHidd_AGP_GetBridgeDevice = 0,
37 NUM_AGP_METHODS
40 struct pHidd_AGP_GetBridgeDevice
42 OOP_MethodID mID;
45 enum
47 vHidd_AGP_NormalMemory = 1,
48 vHidd_AGP_CachedMemory
51 #define IID_Hidd_AGPBridgeDevice "hidd.agp.bridgedevice"
53 #define HiddAGPBridgeDeviceAttrBase __IHidd_AGPBridgeDev
55 #ifndef __OOP_NOATTRBASES__
56 extern OOP_AttrBase HiddAGPBridgeDeviceAttrBase;
57 #endif
59 enum
61 moHidd_AGPBridgeDevice_Initialize = 0,
62 moHidd_AGPBridgeDevice_Enable,
63 moHidd_AGPBridgeDevice_BindMemory,
64 moHidd_AGPBridgeDevice_UnBindMemory,
65 moHidd_AGPBridgeDevice_FlushChipset,
67 NUM_AGPBRIDGEDEVICE_METHODS
70 enum
72 aoHidd_AGPBridgeDevice_Mode, /* [..G] Mode of the bridge */
73 aoHidd_AGPBridgeDevice_ApertureBase, /* [..G] Base of the aperture */
74 aoHidd_AGPBridgeDevice_ApertureSize, /* [..G] Size of the aperture */
76 num_Hidd_AGPBridgeDevice_Attrs
79 #define aHidd_AGPBridgeDevice_Mode (HiddAGPBridgeDeviceAttrBase + aoHidd_AGPBridgeDevice_Mode)
80 #define aHidd_AGPBridgeDevice_ApertureBase (HiddAGPBridgeDeviceAttrBase + aoHidd_AGPBridgeDevice_ApertureBase)
81 #define aHidd_AGPBridgeDevice_ApertureSize (HiddAGPBridgeDeviceAttrBase + aoHidd_AGPBridgeDevice_ApertureSize)
83 #define IS_AGPBRIDGEDEV_ATTR(attr, idx) \
84 (((idx) = (attr) - HiddAGPBridgeDeviceAttrBase) < num_Hidd_AGPBridgeDevice_Attrs)
86 struct pHidd_AGPBridgeDevice_Initialize
88 OOP_MethodID mID;
91 struct pHidd_AGPBridgeDevice_Enable
93 OOP_MethodID mID;
94 ULONG requestedmode;
97 struct pHidd_AGPBridgeDevice_BindMemory
99 OOP_MethodID mID;
100 IPTR address;
101 ULONG size;
102 ULONG offset;
103 UBYTE type;
106 struct pHidd_AGPBridgeDevice_UnBindMemory
108 OOP_MethodID mID;
109 ULONG offset;
110 ULONG size;
113 struct pHidd_AGPBridgeDevice_FlushChipset
115 OOP_MethodID mID;
118 #endif