summaryrefslogtreecommitdiff
path: root/vbe.h
diff options
context:
space:
mode:
authorJeroen Janssen <japj@xs4all.nl>2002-03-08 20:48:49 +0000
committerJeroen Janssen <japj@xs4all.nl>2002-03-08 20:48:49 +0000
commit6c833871580808474ed965578154e91512fe87de (patch)
tree359a00002584f13aa3064c49d90091d25125da92 /vbe.h
parent31b108c7bb1d44cdc4b94b383c29a283272f4bd0 (diff)
downloadqemu-vgabios-6c833871580808474ed965578154e91512fe87de.tar.gz
- updating vbe code with #defines from API
Diffstat (limited to 'vbe.h')
-rw-r--r--vbe.h35
1 files changed, 28 insertions, 7 deletions
diff --git a/vbe.h b/vbe.h
index 6abdb47..a0bc649 100644
--- a/vbe.h
+++ b/vbe.h
@@ -260,14 +260,35 @@ 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_PHYSICAL_BASE_ADDRESS 0x3b00000
-#define VGAMEM_GRAPH_PHYSICAL_ADDRESS 0xA0000
-#define VBE_BANK_SIZE_KB 64
-
-// FIXME: Add actual host <-> guest IOPORT
-#define VBE_BIOS_CALLBACK_IOPORT 0xFF00
#define VBE_TOTAL_VIDEO_MEMORY_DIV_64K (4*1024/64)
-// FIXME: Add host <-> guest index port commands
+ #define VBE_DISPI_BANK_ADDRESS 0xA0000
+ #define VBE_DISPI_BANK_SIZE_KB 64
+
+ #define VBE_DISPI_MAX_XRES 1024
+ #define VBE_DISPI_MAX_YRES 768
+
+ #define VBE_DISPI_IOPORT_INDEX 0xFF80
+ #define VBE_DISPI_IOPORT_DATA 0xFF81
+
+ #define VBE_DISPI_INDEX_ID 0x0
+ #define VBE_DISPI_INDEX_XRES 0x1
+ #define VBE_DISPI_INDEX_YRES 0x2
+ #define VBE_DISPI_INDEX_BPP 0x3
+ #define VBE_DISPI_INDEX_ENABLE 0x4
+ #define VBE_DISPI_INDEX_BANK 0x5
+
+ #define VBE_DISPI_ID0 0xB0C0
+
+ #define VBE_DISPI_BPP_8 0x0
+// The following is not support yet, but just for reference available.
+// #define VBE_DISPI_BPP_RGB565 0x1
+// #define VBE_DISPI_BPP_RGB555 0x2
+
+ #define VBE_DISPI_DISABLED 0x00
+ #define VBE_DISPI_ENABLED 0x01
+
+
#endif \ No newline at end of file