projects
/
seabios.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vgabios: Add support for vbe get/set line length function.
[seabios.git]
/
vgasrc
/
vgabios.h
diff --git
a/vgasrc/vgabios.h
b/vgasrc/vgabios.h
index 403e7ce905f9910eeaf5bcdccc76d564440798bb..aca95be168a5d7a24a3553df44c9abab863184b5 100644
(file)
--- a/
vgasrc/vgabios.h
+++ b/
vgasrc/vgabios.h
@@
-44,6
+44,7
@@
struct saveBDAstate {
#define MF_CUSTOMCRTC 0x0800
#define MF_LINEARFB 0x4000
#define MF_NOCLEARMEM 0x8000
#define MF_CUSTOMCRTC 0x0800
#define MF_LINEARFB 0x4000
#define MF_NOCLEARMEM 0x8000
+#define MF_VBEFLAGS 0xfe00
// Memory model types
#define MM_TEXT 0x00
// Memory model types
#define MM_TEXT 0x00
@@
-73,7
+74,7
@@
extern u8 vgafont14alt[];
extern u8 vgafont16alt[];
// vgabios.c
extern u8 vgafont16alt[];
// vgabios.c
-extern
u16
VgaBDF;
+extern
int
VgaBDF;
#define SET_VGA(var, val) SET_FARVAR(get_global_seg(), (var), (val))
struct carattr {
u8 car, attr, use_attr;
#define SET_VGA(var, val) SET_FARVAR(get_global_seg(), (var), (val))
struct carattr {
u8 car, attr, use_attr;
@@
-81,8
+82,10
@@
struct carattr {
struct cursorpos {
u8 x, y, page;
};
struct cursorpos {
u8 x, y, page;
};
+int vga_bpp(struct vgamode_s *vmode_g);
u16 calc_page_size(u8 memmodel, u16 width, u16 height);
u16 calc_page_size(u8 memmodel, u16 width, u16 height);
-void modeswitch_set_bda(int mode, int flags, struct vgamode_s *vmode_g);
+struct vgamode_s *get_current_mode(void);
+int vga_set_mode(int mode, int flags);
// vgafb.c
void vgafb_scroll(int nblines, int attr
// vgafb.c
void vgafb_scroll(int nblines, int attr