summaryrefslogtreecommitdiff
path: root/src/kernel/vesa.c
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.c
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.c')
-rw-r--r--src/kernel/vesa.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/kernel/vesa.c b/src/kernel/vesa.c
index e781249..4cdabb2 100644
--- a/src/kernel/vesa.c
+++ b/src/kernel/vesa.c
@@ -1,5 +1,21 @@
#include "vesa.h"
+uint16_t screen_width;
+uint16_t screen_height;
+uint8_t bpp;
+
+void *frame_buffer;
+
+void put_pixel(uint16_t x, uint16_t y, color c) {
+
+}
+
+void screen_fill(color c) {
+
+}
+
void init_vesa() {
-
+// for (void *v = 0; v < 0x65536; ++v) {
+// if (*(uint32_t *)v == 'P' + 'M' * 256 + 'I' * 65536 + 'D' * 16777216)
+// }
} \ No newline at end of file