vgabios: Fix compile error due to fixed prototypes.
[seabios.git] / vgasrc / clext.c
index 32584eeb1afc153ac6c0d451745aac614a37b442..36ccad3556176f468f7aee855baa9e3ae9094a9e 100644 (file)
@@ -292,12 +292,12 @@ static struct cirrus_mode_s cirrus_modes[] VAR16 = {
 static struct cirrus_mode_s *
 cirrus_get_modeentry(u8 mode)
 {
-    struct cirrus_mode_s *table = cirrus_modes;
-    while (table < &cirrus_modes[ARRAY_SIZE(cirrus_modes)]) {
-        u16 tmode = GET_GLOBAL(table->mode);
+    struct cirrus_mode_s *table_g = cirrus_modes;
+    while (table_g < &cirrus_modes[ARRAY_SIZE(cirrus_modes)]) {
+        u16 tmode = GET_GLOBAL(table_g->mode);
         if (tmode == mode)
-            return table;
-        table++;
+            return table_g;
+        table_g++;
     }
     return NULL;
 }
@@ -315,7 +315,7 @@ cirrus_switch_mode_setregs(u16 *data, u16 port)
 }
 
 static u16
-cirrus_get_crtc()
+cirrus_get_crtc(void)
 {
     if (inb(VGAREG_READ_MISC_OUTPUT) & 1)
         return VGAREG_VGA_CRTC_ADDRESS;
@@ -340,12 +340,12 @@ cirrus_switch_mode(struct cirrus_mode_s *table)
     outb(0xff, VGAREG_PEL_MASK);
 
     u8 vesacolortype = GET_GLOBAL(table->vesacolortype);
-    u8 v = biosfn_get_single_palette_reg(0x10) & 0xfe;
+    u8 v = vgahw_get_single_palette_reg(0x10) & 0xfe;
     if (vesacolortype == 3)
         v |= 0x41;
     else if (vesacolortype)
         v |= 0x01;
-    biosfn_set_single_palette_reg(0x10, v);
+    vgahw_set_single_palette_reg(0x10, v);
 }
 
 void
@@ -353,25 +353,25 @@ cirrus_set_video_mode(u8 mode)
 {
     dprintf(1, "cirrus mode %d\n", mode);
     SET_BDA(vbe_mode, 0);
-    struct cirrus_mode_s *table = cirrus_get_modeentry(mode & 0x7f);
-    if (table) {
+    struct cirrus_mode_s *table_g = cirrus_get_modeentry(mode & 0x7f);
+    if (table_g) {
         //XXX - cirrus_set_video_mode_extended(table);
         return;
     }
-    table = cirrus_get_modeentry(0xfe);
-    cirrus_switch_mode(table);
+    table_g = cirrus_get_modeentry(0xfe);
+    cirrus_switch_mode(table_g);
     dprintf(1, "cirrus mode switch regular\n");
 }
 
 static int
-cirrus_check()
+cirrus_check(void)
 {
     outw(0x9206, VGAREG_SEQU_ADDRESS);
     return inb(VGAREG_SEQU_DATA) == 0x12;
 }
 
 void
-cirrus_init()
+cirrus_init(void)
 {
     dprintf(1, "cirrus init\n");
     if (! cirrus_check())