projects
/
seabios.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vgabios: Add scrolling for linear (packed pixel) graphics mode.
[seabios.git]
/
src
/
biosvar.h
diff --git
a/src/biosvar.h
b/src/biosvar.h
index ea2d67d9a499004fdcd8e585c16531cd0573b1b0..ad791ab66474c01e8c2ac6fd948d476dca68e353 100644
(file)
--- a/
src/biosvar.h
+++ b/
src/biosvar.h
@@
-1,6
+1,6
@@
// Variable layouts of bios.
//
// Variable layouts of bios.
//
-// Copyright (C) 2008
,2009
Kevin O'Connor <kevin@koconnor.net>
+// Copyright (C) 2008
-2010
Kevin O'Connor <kevin@koconnor.net>
//
// This file may be distributed under the terms of the GNU LGPLv3 license.
#ifndef __BIOSVAR_H
//
// This file may be distributed under the terms of the GNU LGPLv3 license.
#ifndef __BIOSVAR_H
@@
-25,6
+25,12
@@
struct rmode_IVT {
#define SET_IVT(vector, segoff) \
SET_FARVAR(SEG_IVT, ((struct rmode_IVT *)0)->ivec[vector], segoff)
#define SET_IVT(vector, segoff) \
SET_FARVAR(SEG_IVT, ((struct rmode_IVT *)0)->ivec[vector], segoff)
+#define FUNC16(func) ({ \
+ ASSERT32FLAT(); \
+ extern void func (void); \
+ SEGOFF(SEG_BIOS, (u32)func - BUILD_BIOS_ADDR); \
+ })
+
/****************************************************************
* Bios Data Area (BDA)
/****************************************************************
* Bios Data Area (BDA)
@@
-106,7
+112,8
@@
struct bios_data_area_s {
struct segoff_s video_savetable;
u8 other_ac[4];
// 40:B0
struct segoff_s video_savetable;
u8 other_ac[4];
// 40:B0
- u8 other_b0[10];
+ u8 other_b0[9];
+ u8 vbe_flag;
u16 vbe_mode;
} PACKED;
u16 vbe_mode;
} PACKED;
@@
-234,8
+241,6
@@
struct extended_bios_data_area_s {
// Stack space available for code that needs it.
u8 extra_stack[512] __aligned(8);
// Stack space available for code that needs it.
u8 extra_stack[512] __aligned(8);
-
- u8 cdemu_buf[2048 * !!CONFIG_CDROM_EMU];
} PACKED;
// The initial size and location of EBDA
} PACKED;
// The initial size and location of EBDA