From 5121d4bc820b39901461c759a8fbd57d3a8462e3 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 22 Jul 2020 16:32:32 +0200 Subject: Switched to Makefile. Kinda for the sake of minimalism --- src/inc/vesa.h | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 src/inc/vesa.h (limited to 'src/inc') diff --git a/src/inc/vesa.h b/src/inc/vesa.h new file mode 100644 index 0000000..e2ac4e5 --- /dev/null +++ b/src/inc/vesa.h @@ -0,0 +1,53 @@ +#ifndef VBE_H +#define VBE_H + +#include + +struct vbe { + u16 attributes; + u8 window_a; + u8 window_b; + u16 granularity; + u16 window_size; + u16 segment_a; + u16 segment_b; + u32 win_func_ptr; + u16 pitch; + u16 width; + u16 height; + u8 w_char; + u8 y_char; + u8 planes; + u8 bpp; + u8 banks; + u8 memory_model; + u8 bank_size; + u8 image_pages; + u8 reserved0; + + u8 red_mask; + u8 red_position; + u8 green_mask; + u8 green_position; + u8 blue_mask; + u8 blue_position; + u8 reserved_mask; + u8 reserved_position; + u8 direct_color_attributes; + + u32 framebuffer; + u32 off_screen_mem_off; + u16 off_screen_mem_size; + u8 reserved1[206]; +}; + +struct vid_info { + u32 mode; + struct vbe *info; +}; + +struct vbe *vbe; + +void vesa_clear(const u32 color[3]); + +#endif -- cgit v1.2.3