From 2ddbeb9f7214f6d3feef651eba83e6a9d120a743 Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Thu, 13 Aug 2020 17:58:50 -0400 Subject: lots of progress, including readonly PATA driver and part of FAT16 driver --- src/kernel/vesa.h | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) (limited to 'src/kernel/vesa.h') diff --git a/src/kernel/vesa.h b/src/kernel/vesa.h index 495b593..b2f17c8 100644 --- a/src/kernel/vesa.h +++ b/src/kernel/vesa.h @@ -1,23 +1,16 @@ #ifndef VESA_H #define VESA_H -struct video_mode { - //TODO -}; +#include -#define VESA_INFO \ - ((struct { \ - uint32_t sig; \ - uint16_t vbe_ver; \ - char *oem; \ - uint32_t capabilities; \ - struct video_mode *modes; \ - uint16_t vram_size_high; \ - uint16_t soft_ver; \ - char *vendor; \ - char *pname; \ - char *prev; \ - } *)0x4200) +extern uint16_t screen_width; +extern uint16_t screen_height; +extern uint8_t bpp; + +typedef uint32_t color; + +void put_pixel(uint16_t x, uint16_t y, color c); +void screen_fill(color c); void init_vesa(); -- cgit v1.2.3