summaryrefslogtreecommitdiffstats
path: root/arch/x86/io/VGADisplayInfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/io/VGADisplayInfo.h')
-rw-r--r--arch/x86/io/VGADisplayInfo.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/x86/io/VGADisplayInfo.h b/arch/x86/io/VGADisplayInfo.h
new file mode 100644
index 0000000..33235cc
--- /dev/null
+++ b/arch/x86/io/VGADisplayInfo.h
@@ -0,0 +1,27 @@
+#ifndef VGAINFOCLASS_H
+#define VGAINFOCLASS_H
+
+#include "../inc/types.h"
+
+#define TOBG(attr) attr << 4
+
+class VGADisplayInfo
+{
+ public:
+ const static uint32 videoMemAddr = 0xB8000;
+ const static uint16 width = 80;
+ const static uint16 height = 25;
+ const static uint16 tabSize = 8;
+ enum class colorAttr {
+ black = 0,
+ blue = 1,
+ green = 2,
+ cyan = 3,
+ red = 4,
+ magenta = 5,
+ brown = 6,
+ gray = 7
+ };
+};
+
+#endif