vgabios: Create clext.h and use "clext_" as prefix for exported funcs.
[seabios.git] / vgasrc / vgabios.h
index d31161e2133fa41960e40ff9c7deb5991b1bc9b8..c973d5f106055340c83b9cec73e86b7ab9b039e6 100644 (file)
@@ -26,6 +26,13 @@ struct saveBDAstate {
     struct segoff_s font1;
 };
 
+// Mode flags
+#define MF_GRAYSUM    0x0002
+#define MF_NOPALETTE  0x0008
+#define MF_CUSTOMCRTC 0x0800
+#define MF_LINEARFB   0x4000
+#define MF_NOCLEARMEM 0x8000
+
 // vgatables.c
 struct vgamode_s;
 struct vgamode_s *find_vga_entry(u8 mode);
@@ -48,10 +55,9 @@ struct carattr {
 struct cursorpos {
     u8 x, y, page;
 };
-void vga_set_mode(u8 mode, u8 noclearmem);
+void modeswitch_set_bda(int mode, int flags, struct vgamode_s *vmode_g);
 
 // vgafb.c
-void clear_screen(struct vgamode_s *vmode_g);
 void vgafb_scroll(int nblines, int attr
                   , struct cursorpos ul, struct cursorpos lr);
 void vgafb_write_char(struct cursorpos cp, struct carattr ca);
@@ -59,10 +65,6 @@ struct carattr vgafb_read_char(struct cursorpos cp);
 void vgafb_write_pixel(u8 color, u16 x, u16 y);
 u8 vgafb_read_pixel(u16 x, u16 y);
 
-// clext.c
-int cirrus_set_video_mode(u8 mode, u8 noclearmem);
-void cirrus_init(void);
-
 // vbe.c
 #define VBE_OEM_STRING "SeaBIOS VBE(C) 2011"
 #define VBE_VENDOR_STRING "SeaBIOS Developers"