aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen Janssen <japj@xs4all.nl>2002-03-10 10:25:35 +0000
committerJeroen Janssen <japj@xs4all.nl>2002-03-10 10:25:35 +0000
commit45b8c7cdd93c7889db75e1cd7f17d33fd82955b1 (patch)
treece16774f7c3b0b76086bfb8b8e5f8f1b5612180c
parent65123fd49aa8f2a97d835af7f08c6eb9d91f29e4 (diff)
downloadvgabios-45b8c7cdd93c7889db75e1cd7f17d33fd82955b1.tar.gz
- preparing for LFB support
-rw-r--r--vbe.h5
-rw-r--r--vbe_display_api.txt8
2 files changed, 9 insertions, 4 deletions
diff --git a/vbe.h b/vbe.h
index 23929e9..e8e6cc9 100644
--- a/vbe.h
+++ b/vbe.h
@@ -261,7 +261,7 @@ typedef struct ModeInfoBlock
// FIXME: either dynamicly ask host for this or put somewhere high in physical memory
// like 0xE0000000
-//#define VBE_PHYSICAL_BASE_ADDRESS 0x3b00000
+
#define VBE_TOTAL_VIDEO_MEMORY_DIV_64K (4*1024/64)
@@ -290,6 +290,7 @@ typedef struct ModeInfoBlock
#define VBE_DISPI_DISABLED 0x00
#define VBE_DISPI_ENABLED 0x01
-
+
+ #define VBE_DISPI_LFB_PHYSICAL_ADDRESS 0xE0000000
#endif \ No newline at end of file
diff --git a/vbe_display_api.txt b/vbe_display_api.txt
index a04a25f..c9ec123 100644
--- a/vbe_display_api.txt
+++ b/vbe_display_api.txt
@@ -78,7 +78,8 @@ Abbreviations
#define VBE_DISPI_DISABLED 0x00
#define VBE_DISPI_ENABLED 0x01
-
+
+ #define VBE_DISPI_LFB_PHYSICAL_ADDRESS 0xE0000000
API
---
@@ -92,7 +93,7 @@ API
This way, the display code knows the vbebios 'ID' and the vbebios can check if the correct
display code is present.
As a result, a PANIC can be generated if an incompatible vbebios/display code combination is detected.
- This panic can be generated from both the display code and the bios.
+ This panic can be generated from the bochs display code (NOT the bios, see Notes).
Example values: VBE_DISPI_ID0
@@ -155,3 +156,6 @@ Notes
* Since the XRES/YRES/BPP may not be written when VBE is enabled, if you want to switch from one VBE mode
to another, you will need to disable VBE first.
+
+ * Note when the bios doesn't find a valid DISPI_ID, it can disable the VBE functions. This allows people to
+ use the same bios for both vbe enabled and disabled bochs executables. \ No newline at end of file