2 Copyright © 2010-2018, The AROS Development Team. All rights reserved.
6 #ifndef GALLIUM_INTERN_H
7 #define GALLIUM_INTERN_H
9 #ifndef EXEC_LIBRARIES_H
10 # include <exec/libraries.h>
13 #ifndef GALLIUM_GALLIUM_H
14 # include <gallium/gallium.h>
18 # include <proto/exec.h>
21 #ifndef EXEC_SEMAPHORES_H
22 # include <exec/semaphores.h>
30 # include <proto/oop.h>
33 #ifndef HIDD_GALLIUM_H
34 # include <hidd/gallium.h>
38 # include <gallium/pipe/p_screen.h>
43 struct Library galb_Lib
;
46 struct Library
*fallbackmodule
;
48 OOP_Class
*basegallium
;
49 OOP_AttrBase gfxAttrBase
;
50 OOP_AttrBase galliumAttrBase
;
51 OOP_AttrBase bmAttrBase
;
53 /* methods we use .. */
54 OOP_MethodID galliumMId_UpdateRect
;
55 OOP_MethodID galliumMId_DisplayResource
;
57 struct SignalSemaphore driversemaphore
;
58 struct Library
*drivermodule
;
62 OOP_Object
* SelectGalliumDriver(ULONG requestedinterfaceversion
, struct Library
* GalliumBase
);
63 BOOL
IsVersionMatching(ULONG version
, OOP_Object
* driver
, struct Library
* GalliumBase
);
65 #define GB(lb) ((struct GalliumBase *)lb)
66 #undef HiddGfxAttrBase
67 #define HiddGfxAttrBase (GB(GalliumBase)->gfxAttrBase)
68 #undef HiddBitMapAttrBase
69 #define HiddBitMapAttrBase (GB(GalliumBase)->bmAttrBase)
70 #undef HiddGalliumAttrBase
71 #define HiddGalliumAttrBase (GB(GalliumBase)->galliumAttrBase)