From 974e996d33104598484ff61ec4bd32087340824c Mon Sep 17 00:00:00 2001 From: Sahan Fernando Date: Sat, 12 Jun 2021 22:46:54 +1000 Subject: Userland: Add FB_FLUSH ioctl for fbdev --- Userland/Libraries/LibC/sys/ioctl_numbers.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Userland/Libraries/LibC') 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 -- cgit v1.2.3