summaryrefslogtreecommitdiffstats
path: root/drivers/video/console/vgacon.h
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2021-08-30 12:48:24 +0000
committerJoursoir <chat@joursoir.net>2021-08-30 12:48:24 +0000
commitd835cae0968ea5d6e9989dac637449b8d403ac5e (patch)
tree4d9e9cbea5ac763207e6c5c17a3ad55638b2f13e /drivers/video/console/vgacon.h
parent347bc7de0dc25891f1ad0356fbd95ce54843a8f2 (diff)
downloadmfsos-d835cae0968ea5d6e9989dac637449b8d403ac5e.tar.gz
mfsos-d835cae0968ea5d6e9989dac637449b8d403ac5e.tar.bz2
mfsos-d835cae0968ea5d6e9989dac637449b8d403ac5e.zip
move interaction with VGA to driver
Diffstat (limited to 'drivers/video/console/vgacon.h')
-rw-r--r--drivers/video/console/vgacon.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/video/console/vgacon.h b/drivers/video/console/vgacon.h
new file mode 100644
index 0000000..ac2e9e3
--- /dev/null
+++ b/drivers/video/console/vgacon.h
@@ -0,0 +1,15 @@
+#ifndef DRIVERS_VIDEO_CONSOLE_VGA_H
+#define DRIVERS_VIDEO_CONSOLE_VGA_H
+
+#include <stddef.h>
+#include <stdint.h>
+
+void vgacon_init(void);
+void vgacon_setattr(uint8_t attr);
+void vgacon_scroll(size_t lines);
+void vgacon_cls(void);
+void vgacon_putchar(char c);
+void vgacon_write(const char *str, size_t size);
+void vgacon_print(const char *str);
+
+#endif /* DRIVERS_VIDEO_CONSOLE_VGA_H */