W.I.P AROS port of SDI examples
[AROS.git] / rom / hidds / vesa / hardware.h
blobd19b61f9a254ac894d8c163799220d320aac5bf8
1 #ifndef HARDWARE_H
2 #define HARDWARE_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 BitmapData;
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 BitmapData *data,
44 LONG x1, LONG y1, LONG x2, LONG y2);
46 #endif