summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibC
diff options
context:
space:
mode:
authorSahan Fernando <sahan.h.fernando@gmail.com>2021-06-12 22:46:54 +1000
committerAndreas Kling <kling@serenityos.org>2021-06-25 19:26:30 +0200
commit974e996d33104598484ff61ec4bd32087340824c (patch)
tree6a92672d454a8c6fe1e1518b0effa5cbd024deef /Userland/Libraries/LibC
parent34e9fa4d3be0284ac120e885ab920bb6024e4f04 (diff)
downloadserenity-974e996d33104598484ff61ec4bd32087340824c.zip
Userland: Add FB_FLUSH ioctl for fbdev
Diffstat (limited to 'Userland/Libraries/LibC')
-rw-r--r--Userland/Libraries/LibC/sys/ioctl_numbers.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/Userland/Libraries/LibC/sys/ioctl_numbers.h b/Userland/Libraries/LibC/sys/ioctl_numbers.h
index 6123e9496d..87d5e2cf1d 100644
--- a/Userland/Libraries/LibC/sys/ioctl_numbers.h
+++ b/Userland/Libraries/LibC/sys/ioctl_numbers.h
@@ -23,6 +23,13 @@ struct FBResolution {
unsigned height;
};
+struct FBRect {
+ unsigned x;
+ unsigned y;
+ unsigned width;
+ unsigned height;
+};
+
__END_DECLS
enum IOCtlNumber {
@@ -43,6 +50,7 @@ enum IOCtlNumber {
FB_IOCTL_SET_RESOLUTION,
FB_IOCTL_GET_BUFFER,
FB_IOCTL_SET_BUFFER,
+ FB_IOCTL_FLUSH_BUFFER,
SIOCSIFADDR,
SIOCGIFADDR,
SIOCGIFHWADDR,
@@ -75,6 +83,7 @@ enum IOCtlNumber {
#define FB_IOCTL_SET_RESOLUTION FB_IOCTL_SET_RESOLUTION
#define FB_IOCTL_GET_BUFFER FB_IOCTL_GET_BUFFER
#define FB_IOCTL_SET_BUFFER FB_IOCTL_SET_BUFFER
+#define FB_IOCTL_FLUSH_BUFFER FB_IOCTL_FLUSH_BUFFER
#define SIOCSIFADDR SIOCSIFADDR
#define SIOCGIFADDR SIOCGIFADDR
#define SIOCGIFHWADDR SIOCGIFHWADDR