aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2015-03-09 23:34:46 +0100
committerAlex Auvolat <alex@adnab.me>2015-03-09 23:34:46 +0100
commit011d99fc5f90b1e2b51f7b96688bdcbbb944e104 (patch)
tree20a2a03ef168a09185b77fbea04adfeefc1d99bf /src/common
parente499d74b6f0b57f9a11486c346dbc335e4f8433d (diff)
downloadkogata-011d99fc5f90b1e2b51f7b96688bdcbbb944e104.tar.gz
kogata-011d99fc5f90b1e2b51f7b96688bdcbbb944e104.zip
VESA mode setting ; displays kogata logo!
Diffstat (limited to 'src/common')
-rw-r--r--src/common/include/framebuffer.h19
-rw-r--r--src/common/include/fs.h2
2 files changed, 20 insertions, 1 deletions
diff --git a/src/common/include/framebuffer.h b/src/common/include/framebuffer.h
new file mode 100644
index 0000000..febbfaa
--- /dev/null
+++ b/src/common/include/framebuffer.h
@@ -0,0 +1,19 @@
+#pragma once
+
+typedef struct {
+ uint32_t width, height;
+ uint32_t pitch; // bytes per line
+ uint32_t bpp;
+} framebuffer_info_t;
+
+typedef struct {
+ int mode_number;
+ framebuffer_info_t geom;
+} fbdev_mode_info_t;
+
+#define IOCTL_FBDEV_GET_MODE_INFO 10
+#define IOCTL_FBDEV_SET_MODE 11
+
+#define IOCTL_FB_GET_INFO 12
+
+/* vim: set ts=4 sw=4 tw=0 noet :*/
diff --git a/src/common/include/fs.h b/src/common/include/fs.h
index 5a2fc84..e70ff55 100644
--- a/src/common/include/fs.h
+++ b/src/common/include/fs.h
@@ -11,7 +11,7 @@ typedef int fd_t;
#define FT_BLOCKDEV (0x04)
#define FT_CHARDEV (0x08)
#define FT_CHANNEL (0x10) // dual-pipe
-// #define FT_SOCKET (0x20) // Not yet! Semantics not defined. (TODO)
+#define FT_FRAMEBUFFER (0x20)
// FM_* enum describes modes for opening a file as well as authorized operations in stat_t
// (some flags are used only for open() or only in stat_t.access)