foo
authorJohn Tsiombikas <nuclear@member.fsf.org>
Mon, 7 Jun 2021 17:49:20 +0000 (20:49 +0300)
committerJohn Tsiombikas <nuclear@member.fsf.org>
Mon, 7 Jun 2021 17:49:20 +0000 (20:49 +0300)
sys1/kern/src/con.h [new file with mode: 0644]
sys1/kern/src/vga.h [new file with mode: 0644]

diff --git a/sys1/kern/src/con.h b/sys1/kern/src/con.h
new file mode 100644 (file)
index 0000000..9eb776a
--- /dev/null
@@ -0,0 +1,8 @@
+#ifndef CON_H_
+#define CON_H_
+
+void con_init(void);
+
+void con_putchar(int c);
+
+#endif /* CON_H_ */
diff --git a/sys1/kern/src/vga.h b/sys1/kern/src/vga.h
new file mode 100644 (file)
index 0000000..19571f3
--- /dev/null
@@ -0,0 +1,19 @@
+#ifndef VGA_H_
+#define VGA_H_
+
+enum {
+       VGA_BLACK,
+       VGA_BLUE,
+       VGA_GREEN,
+       VGA_CYAN,
+       VGA_RED,
+       VGA_MAGENTA,
+       VGA_YELLOW,
+       VGA_WHITE
+};
+#define VGA_BRIGHT     0x80
+
+void vga_setcolor(int fg, int bg);
+void vga_setcursor(int x, int y);
+
+#endif /* VGA_H_ */