summaryrefslogtreecommitdiff
path: root/src/vga.h
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-10-29 14:25:57 +0100
committerOlivier Gayot <duskcoder@gmail.com>2015-10-29 14:25:57 +0100
commit74eb20d8c4810b7757d85f7066359a566621a661 (patch)
treef511c21ad6d4f2b45ad2c42f689758ea294f2541 /src/vga.h
parente7edce9f232e1359097793b2610e04b16dab7f7e (diff)
kfs: added the serial print
* 38400 bauds * 1 stop bit * no parity check * 8 bits words Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'src/vga.h')
-rw-r--r--src/vga.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/vga.h b/src/vga.h
new file mode 100644
index 0000000..a8f41ba
--- /dev/null
+++ b/src/vga.h
@@ -0,0 +1,11 @@
+#ifndef VGA_H
+#define VGA_H
+
+#define VGA_BASE 0xB8000
+
+#define VGA_COLS 80
+#define VGA_ROWS 25
+#define VGA_BPC 2
+#define VGA_BPR (VGA_BPC * VGA_COLS)
+
+#endif /* VGA_H */