revert between 56095 -> 55830 in arch
[AROS.git] / rom / hidds / vesagfx / vesagfx_support.h
blob033b0adb8d251b98977ae4424db89b798b88093e
1 #ifndef VESAGFX_SUPPORT_H
2 #define VESAGFX_SUPPORT_H
4 #include <exec/types.h>
5 #include <oop/oop.h>
7 #define PCI_VENDOR_S3 0x5333
9 #define vgaIOBase 0x3d0
11 struct HWData
13 APTR framebuffer;
14 ULONG fbsize;
15 ULONG width;
16 ULONG height;
17 ULONG depth;
18 ULONG bytesperpixel;
19 ULONG bitsperpixel;
20 ULONG redmask;
21 ULONG greenmask;
22 ULONG bluemask;
23 ULONG redshift;
24 ULONG greenshift;
25 ULONG blueshift;
26 ULONG bytesperline;
27 BOOL owned;
28 UBYTE palettewidth;
29 UBYTE DAC[768];
30 /* Used by PCI scanning routine */
31 OOP_AttrBase pciDeviceAttrBase;
34 #undef HiddPCIDeviceAttrBase
35 #define HiddPCIDeviceAttrBase sd->pciDeviceAttrBase
37 struct VESAGfx_staticdata;
38 struct VESAGfxBitMapData;
40 BOOL initVesaGfxHW(struct HWData *);
41 void DACLoad(struct VESAGfx_staticdata *, UBYTE *, unsigned char, int);
42 void ClearBuffer(struct HWData *data);
43 void vesaDoRefreshArea(struct HWData *hwdata, struct VESAGfxBitMapData *data,
44 LONG x1, LONG y1, LONG x2, LONG y2);
46 #endif /* VESAGFX_SUPPORT_H */