24 static int set_bios_mode(
u8 mode);
26 static int bios_set_mode(
struct mode_info *mi)
31 static int set_bios_mode(
u8 mode)
46 new_mode = oreg.al & 0x7f;
63 static int bios_probe(
void)
83 for (mode = 0x14; mode <= 0x7f; mode++) {
90 if (set_bios_mode(mode))
96 if (in_idx(0x3c0, 0x10) & 0x01)
100 if (in_idx(0x3ce, 0x06) & 0x01)
104 if (in_idx(crtc, 0x0f))
110 mi->
x = rdfs16(0x44a);
111 mi->
y = rdfs8(0x484)+1;
115 set_bios_mode(saved_mode);
124 .set_mode = bios_set_mode,