comparison osdep/vbelib.h @ 12660:430a71a762b4

neomagic tv out support throught vesa vbe, patch by Rudolf Marek
author alex
date Fri, 25 Jun 2004 17:29:18 +0000
parents edfe34c5405d
children
comparison
equal deleted inserted replaced
12659:2cb92251da72 12660:430a71a762b4
80 #define MODE_ATTR_DUALDISPLAY (1 << 12) 80 #define MODE_ATTR_DUALDISPLAY (1 << 12)
81 81
82 #define MODE_WIN_RELOCATABLE (1 << 0) 82 #define MODE_WIN_RELOCATABLE (1 << 0)
83 #define MODE_WIN_READABLE (1 << 1) 83 #define MODE_WIN_READABLE (1 << 1)
84 #define MODE_WIN_WRITEABLE (1 << 2) 84 #define MODE_WIN_WRITEABLE (1 << 2)
85 #define NEO_PAL 0
86 #define NEO_NTSC 1
85 87
86 /* SuperVGA mode information block */ 88 /* SuperVGA mode information block */
87 struct VesaModeInfoBlock { 89 struct VesaModeInfoBlock {
88 unsigned short ModeAttributes; /* 00: Mode attributes */ 90 unsigned short ModeAttributes; /* 00: Mode attributes */
89 unsigned char WinAAttributes; /* 02: Window A attributes */ 91 unsigned char WinAAttributes; /* 02: Window A attributes */
209 extern int vbeSetScanLineLength(unsigned num_pixels); 211 extern int vbeSetScanLineLength(unsigned num_pixels);
210 extern int vbeSetScanLineLengthB(unsigned num_bytes); 212 extern int vbeSetScanLineLengthB(unsigned num_bytes);
211 extern int vbeGetDisplayStart(unsigned *pixel_num,unsigned *scan_line); 213 extern int vbeGetDisplayStart(unsigned *pixel_num,unsigned *scan_line);
212 extern int vbeSetDisplayStart(unsigned long offset, int vsync); 214 extern int vbeSetDisplayStart(unsigned long offset, int vsync);
213 extern int vbeSetScheduledDisplayStart(unsigned long offset, int vsync); 215 extern int vbeSetScheduledDisplayStart(unsigned long offset, int vsync);
216 extern int vbeSetTV(unsigned int vesa_mode,unsigned int TV_mode);
214 /* 217 /*
215 Func 0x08-0x09: 218 Func 0x08-0x09:
216 Support of palette currently is not implemented. 219 Support of palette currently is not implemented.
217 */ 220 */
218 extern int vbeGetProtModeInfo(struct VesaProtModeInterface *); 221 extern int vbeGetProtModeInfo(struct VesaProtModeInterface *);