diff options
Diffstat (limited to 'src/kernel/vesa.h')
-rw-r--r-- | src/kernel/vesa.h | 25 |
1 files changed, 9 insertions, 16 deletions
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 <stdint.h> -#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(); |