summaryrefslogtreecommitdiff
path: root/src/kernel/vesa.h
diff options
context:
space:
mode:
authorBenji Dial <Benji3.141@gmail.com>2020-08-13 17:58:50 -0400
committerBenji Dial <Benji3.141@gmail.com>2020-08-13 17:58:50 -0400
commit2ddbeb9f7214f6d3feef651eba83e6a9d120a743 (patch)
tree10a2aef195e0f40b0e44ffac82dcf60e426c4385 /src/kernel/vesa.h
parent63167f223e1f54910f6b80e698390ee60aec79ee (diff)
downloadportland-os-2ddbeb9f7214f6d3feef651eba83e6a9d120a743.tar.gz
lots of progress, including readonly PATA driver and part of FAT16 driver
Diffstat (limited to 'src/kernel/vesa.h')
-rw-r--r--src/kernel/vesa.h25
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();