Base: LCDproc 0.5.2
[lcdproc-de200c.git] / server / drivers / svgalib_drv.h
blobcbbb66295f4b61da5564826ba9bff13bf327c724
1 #ifndef LCD_SVGALIB_H
2 #define LCD_SVGALIB_H
4 #define DEFAULT_MODESTR "G320x200x256"
5 #define DEFAULT_SIZE "20x4"
6 #define DEFAULT_CONTRAST 500
7 #define DEFAULT_BRIGHTNESS 1000
8 #define DEFAULT_OFFBRIGHTNESS 500
9 #define DEFAULT_BACKLIGHT 0
11 #define CELLWIDTH 6
12 #define CELLHEIGHT 8
14 typedef struct driver_private_data {
15 int mode;
17 int width, height;
18 int cellwidth, cellheight;
19 int xoffs, yoffs;
21 void *font;
23 int contrast;
24 int brightness;
25 int offbrightness;
26 } PrivateData;
29 MODULE_EXPORT int svga_init (Driver *drvthis);
30 MODULE_EXPORT void svga_close (Driver *drvthis);
31 MODULE_EXPORT int svga_width (Driver *drvthis);
32 MODULE_EXPORT int svga_height (Driver *drvthis);
33 MODULE_EXPORT int svga_cellwidth (Driver *drvthis);
34 MODULE_EXPORT int svga_cellheight (Driver *drvthis);
35 MODULE_EXPORT void svga_clear (Driver *drvthis);
36 MODULE_EXPORT void svga_flush (Driver *drvthis);
37 MODULE_EXPORT void svga_string (Driver *drvthis, int x, int y, const char string[]);
38 MODULE_EXPORT void svga_chr (Driver *drvthis, int x, int y, char c);
40 MODULE_EXPORT void svga_vbar (Driver *drvthis, int x, int y, int len, int promille, int pattern);
41 MODULE_EXPORT void svga_hbar (Driver *drvthis, int x, int y, int len, int promille, int pattern);
42 MODULE_EXPORT void svga_num (Driver *drvthis, int x, int num);
44 MODULE_EXPORT const char * svga_get_key (Driver *drvthis);
46 MODULE_EXPORT int svga_get_contrast (Driver *drvthis);
47 MODULE_EXPORT void svga_set_contrast (Driver *drvthis, int promille);
48 MODULE_EXPORT int svga_get_brightness(Driver *drvthis, int state);
49 MODULE_EXPORT void svga_set_brightness(Driver *drvthis, int state, int promille);
50 MODULE_EXPORT void svga_backlight (Driver *drvthis, int on);
52 #endif