summaryrefslogtreecommitdiff
path: root/include/vbe.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-12-29 19:32:26 -0700
committerSimon Glass <sjg@chromium.org>2015-01-23 17:24:16 -0700
commit222f25f85503f19acb9cb7ff138d3fe5215c3ad9 (patch)
tree086616c0b62f188e5bb18d99707a5e4efe446131 /include/vbe.h
parente78dd86998298df6d6108b1bc070d934bd805873 (diff)
bios_emulator: Add some VESA interface debugging
Allow the supported modes to be listed when in debug mode. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/vbe.h')
-rw-r--r--include/vbe.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/vbe.h b/include/vbe.h
index d4056914c4e..c5deee9eca9 100644
--- a/include/vbe.h
+++ b/include/vbe.h
@@ -35,10 +35,14 @@ struct __packed screen_info_input {
struct __packed vbe_info {
char signature[4];
u16 version;
- u8 *oem_string_ptr;
+ u32 oem_string_ptr;
u32 capabilities;
- u16 video_mode_list[256];
+ u32 modes_ptr;
u16 total_memory;
+ u16 oem_version;
+ u32 vendor_name_ptr;
+ u32 product_name_ptr;
+ u32 product_rev_ptr;
};
struct __packed vesa_mode_info {
@@ -96,6 +100,7 @@ struct vbe_ddc_info {
#define VESA_GET_INFO 0x4f00
#define VESA_GET_MODE_INFO 0x4f01
#define VESA_SET_MODE 0x4f02
+#define VESA_GET_CUR_MODE 0x4f03
struct graphic_device;
int vbe_get_video_info(struct graphic_device *gdev);