Only clear portion of framebuffer that's actually used (clearing 256MB
[cake.git] / arch / i386-pc / drivers / vesa.hidd / hardware.h
blob8194e7d3f545b07207ab305046ba87277d6bedee
1 #ifndef HARDWARE_H
2 #define HARDWARE_H
4 #include <exec/types.h>
6 #define PCI_VENDOR_S3 0x5333
8 #define vgaIOBase 0x3d0
10 struct HWData
12 APTR framebuffer;
13 ULONG fbsize;
14 ULONG width;
15 ULONG height;
16 ULONG depth;
17 ULONG bytesperpixel;
18 ULONG bitsperpixel;
19 ULONG redmask;
20 ULONG greenmask;
21 ULONG bluemask;
22 ULONG redshift;
23 ULONG greenshift;
24 ULONG blueshift;
25 ULONG bytesperline;
26 UBYTE palettewidth;
27 UBYTE DAC[768];
30 extern OOP_AttrBase HiddPCIDeviceAttrBase;
32 BOOL initVesaGfxHW(struct HWData *);
33 void DACLoad(struct HWData *, unsigned char, int);
34 void ClearBuffer(const struct HWData *data);
36 #if BUFFERED_VRAM
38 struct BitmapData;
40 void vesaRefreshArea(struct BitmapData *data, LONG x1, LONG y1, LONG x2, LONG y2);
41 #endif
43 #endif