projects
/
seabios.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vgabios: Unify page size calculations; remove page size from vgamode_s.
[seabios.git]
/
vgasrc
/
vgabios.h
diff --git
a/vgasrc/vgabios.h
b/vgasrc/vgabios.h
index 7c5e8d352288f8bb0a8a4d670fa9dc390b1c419f..8b806ff144b0aaca59ff40cca678fb7426dc0717 100644
(file)
--- a/
vgasrc/vgabios.h
+++ b/
vgasrc/vgabios.h
@@
-4,9
+4,6
@@
#include "types.h" // u8
#include "farptr.h" // struct segoff_s
#include "types.h" // u8
#include "farptr.h" // struct segoff_s
-#define SCREEN_IO_START(x,y,p) (((((x)*(y)) | 0x00ff) + 1) * (p))
-#define SCREEN_MEM_START(x,y,p) SCREEN_IO_START(((x)*2),(y),(p))
-
struct saveBDAstate {
u8 video_mode;
u16 video_cols;
struct saveBDAstate {
u8 video_mode;
u16 video_cols;
@@
-66,6
+63,7
@@
struct carattr {
struct cursorpos {
u8 x, y, page;
};
struct cursorpos {
u8 x, y, page;
};
+u16 calc_page_size(u8 memmodel, u16 width, u16 height);
void modeswitch_set_bda(int mode, int flags, struct vgamode_s *vmode_g);
// vgafb.c
void modeswitch_set_bda(int mode, int flags, struct vgamode_s *vmode_g);
// vgafb.c