Repository navigation
Expand file tree
/
Copy pathlinux-libc-headers-fbsplash.patch
More file actions
50 lines (47 loc) · 1.89 KB
/
Copy pathlinux-libc-headers-fbsplash.patch
File metadata and controls
50 lines (47 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
--- /dev/null
+++ linux-5.3/include/uapi/linux/console_splash.h
@@ -0,0 +1,13 @@
+#ifndef _LINUX_CONSOLE_SPLASH_H_
+#define _LINUX_CONSOLE_SPLASH_H_ 1
+
+/* A structure used by the framebuffer splash code (drivers/video/fbsplash.c) */
+struct vc_splash {
+ __u8 bg_color; /* The color that is to be treated as transparent */
+ __u8 state; /* Current splash state: 0 = off, 1 = on */
+ __u16 tx, ty; /* Top left corner coordinates of the text field */
+ __u16 twidth, theight; /* Width and height of the text field */
+ char* theme;
+};
+
+#endif
--- linux-3.7/include/uapi/linux/fb.h.orig 2010-08-02 00:11:14.000000000 +0200
+++ linux-3.7/include/uapi/linux/fb.h 2010-08-04 08:51:32.242821619 +0200
@@ -8,6 +8,13 @@
#define FB_MAX 32 /* sufficient for now */
+struct fb_splash_iowrapper
+{
+ unsigned short vc; /* Virtual console */
+ unsigned char origin; /* Point of origin of the request */
+ void *data;
+};
+
/* ioctls
0x46 is 'F' */
#define FBIOGET_VSCREENINFO 0x4600
@@ -35,8 +42,17 @@
#define FBIOGET_HWCINFO 0x4616
#define FBIOPUT_MODEINFO 0x4617
#define FBIOGET_DISPINFO 0x4618
+#define FBIOSPLASH_SETCFG _IOWR('F', 0x19, struct fb_splash_iowrapper)
+#define FBIOSPLASH_GETCFG _IOR('F', 0x1A, struct fb_splash_iowrapper)
+#define FBIOSPLASH_SETSTATE _IOWR('F', 0x1B, struct fb_splash_iowrapper)
+#define FBIOSPLASH_GETSTATE _IOR('F', 0x1C, struct fb_splash_iowrapper)
+#define FBIOSPLASH_SETPIC _IOWR('F', 0x1D, struct fb_splash_iowrapper)
#define FBIO_WAITFORVSYNC _IOW('F', 0x20, __u32)
+#define FB_SPLASH_THEME_LEN 128 /* Maximum lenght of a theme name */
+#define FB_SPLASH_IO_ORIG_KERNEL 0 /* Kernel ioctl origin */
+#define FB_SPLASH_IO_ORIG_USER 1 /* User ioctl origin */
+
#define FB_TYPE_PACKED_PIXELS 0 /* Packed Pixels */
#define FB_TYPE_PLANES 1 /* Non interleaved planes */
#define FB_TYPE_INTERLEAVED_PLANES 2 /* Interleaved planes */