3 static void detect_video(void);
5 struct console con_disp = { clear_disp, disp_putc, 0 };
7 static uint16_t __far *vmem;
8 static uint16_t cur_attr;
9 static int cur_x, cur_y;
10 static int cur_scroll;
18 static void detect_video(void)
23 if(detect_vgainfo() == 0) {
26 if(detect_egainfo() == 0) {
29 if(detect_eqlist() == 0) {
34 vmem = mono ? MK_FP(0xb000, 0) : MK_FP(0xb800, 0);
37 static int detect_vgainfo(void)
42 int86(0x10, ®s, ®s);
43 if(regs.h.al != 0x1a) {
74 disp_type = DISP_MCGA;
77 disp_type = DISP_MCGA;
86 static int detect_egainfo(void)
92 int86(0x10, ®s, ®s);
93 if(regs.h.bh == 0xff) {
102 static int detect_eqlist(void)