vgabios: Add support for vbe get/set line length function.
[seabios.git] / vgasrc / bochsvga.h
index 963cb133e3e97734e57e5f005494453f048ff4c6..b6abf0a1d5f24c433d620ee410324631fb7362e6 100644 (file)
@@ -1,8 +1,8 @@
-#ifndef __DISPI_H
-#define __DISPI_H
+#ifndef __BOCHSVGA_H
+#define __BOCHSVGA_H
 
 #include "types.h" // u8
-#include "ioport.h" // outb
+#include "ioport.h" // outw
 
 #define VBE_DISPI_BANK_ADDRESS           0xA0000
 #define VBE_DISPI_BANK_SIZE_KB           64
@@ -52,4 +52,13 @@ static inline void dispi_write(u16 reg, u16 val)
     outw(val, VBE_DISPI_IOPORT_DATA);
 }
 
-#endif
+int bochsvga_init(void);
+void bochsvga_list_modes(u16 seg, u16 *dest, u16 *last);
+struct vgamode_s *bochsvga_find_mode(int mode);
+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);
+int bochsvga_set_linelength(struct vgamode_s *vmode_g, int val);
+int bochsvga_set_mode(struct vgamode_s *vmode_g, int flags);
+
+#endif // bochsvga.h