summaryrefslogtreecommitdiff
path: root/Libraries/LibC/sys/ioctl_numbers.h
diff options
context:
space:
mode:
authorConrad Pankoff <deoxxa@fknsrs.biz>2019-08-18 12:25:22 +1000
committerAndreas Kling <awesomekling@gmail.com>2019-08-18 07:40:02 +0200
commit5e46122a821344e0c3377e5d7d7ea0ebd6bfd267 (patch)
tree6bb7e837f439e133f294198020f563337522c881 /Libraries/LibC/sys/ioctl_numbers.h
parent1868523e007fea21d74f282eef2e9252d84411d9 (diff)
downloadserenity-5e46122a821344e0c3377e5d7d7ea0ebd6bfd267.zip
Kernel: Add framebuffer ioctls; wrap raw ioctls with a C API
Diffstat (limited to 'Libraries/LibC/sys/ioctl_numbers.h')
-rw-r--r--Libraries/LibC/sys/ioctl_numbers.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/Libraries/LibC/sys/ioctl_numbers.h b/Libraries/LibC/sys/ioctl_numbers.h
index 26ec4548d5..3156b950fa 100644
--- a/Libraries/LibC/sys/ioctl_numbers.h
+++ b/Libraries/LibC/sys/ioctl_numbers.h
@@ -9,6 +9,12 @@ struct winsize {
unsigned short ws_col;
};
+struct FBResolution {
+ int pitch;
+ int width;
+ int height;
+};
+
__END_DECLS
enum IOCtlNumber {
@@ -22,4 +28,9 @@ enum IOCtlNumber {
TIOCSCTTY,
TIOCNOTTY,
TIOCSWINSZ,
+ FB_IOCTL_GET_SIZE_IN_BYTES,
+ FB_IOCTL_GET_RESOLUTION,
+ FB_IOCTL_SET_RESOLUTION,
+ FB_IOCTL_GET_BUFFER,
+ FB_IOCTL_SET_BUFFER,
};