vgabios: Move bocshvga mode checking from runtime to init.
[seabios.git] / vgasrc / bochsvga.h
index d36c92a33aec4ab94c7eefbd04c86489578e99cd..57b2b6915c1f4bd64523e3874d18fd08eafa4275 100644 (file)
@@ -52,9 +52,8 @@ static inline void dispi_write(u16 reg, u16 val)
     outw(val, VBE_DISPI_IOPORT_DATA);
 }
 
-int bochsvga_init(void);
-void bochsvga_list_modes(u16 seg, u16 *dest, u16 *last);
 struct vgamode_s *bochsvga_find_mode(int mode);
+void bochsvga_list_modes(u16 seg, u16 *dest, u16 *last);
 int bochsvga_get_window(struct vgamode_s *vmode_g, int window);
 int bochsvga_set_window(struct vgamode_s *vmode_g, int window, int val);
 int bochsvga_get_linelength(struct vgamode_s *vmode_g);
@@ -62,5 +61,6 @@ int bochsvga_set_linelength(struct vgamode_s *vmode_g, int val);
 int bochsvga_get_displaystart(struct vgamode_s *vmode_g);
 int bochsvga_set_displaystart(struct vgamode_s *vmode_g, int val);
 int bochsvga_set_mode(struct vgamode_s *vmode_g, int flags);
+int bochsvga_init(void);
 
 #endif // bochsvga.h