]> git.pld-linux.org Git - packages/linux-libc-headers.git/blame - linux-libc-headers-fbsplash.patch
- up to 3.15.6
[packages/linux-libc-headers.git] / linux-libc-headers-fbsplash.patch
CommitLineData
963876a8
JB
1diff --git a/include/linux/console_splash.h b/include/linux/console_splash.h
2new file mode 100644
3index 0000000..c448dd2
4--- /dev/null
d3addd79 5+++ b/include/uapi/linux/console_splash.h
2ec5a54e 6@@ -0,0 +1,13 @@
7+#ifndef _LINUX_CONSOLE_SPLASH_H_
8+#define _LINUX_CONSOLE_SPLASH_H_ 1
9+
10+/* A structure used by the framebuffer splash code (drivers/video/fbsplash.c) */
11+struct vc_splash {
12+ __u8 bg_color; /* The color that is to be treated as transparent */
13+ __u8 state; /* Current splash state: 0 = off, 1 = on */
14+ __u16 tx, ty; /* Top left corner coordinates of the text field */
15+ __u16 twidth, theight; /* Width and height of the text field */
16+ char* theme;
17+};
18+
19+#endif
d3addd79
JB
20--- linux-3.7/include/uapi/linux/fb.h.orig 2010-08-02 00:11:14.000000000 +0200
21+++ linux-3.7/include/uapi/linux/fb.h 2010-08-04 08:51:32.242821619 +0200
5d278d6c
JB
22@@ -8,6 +8,13 @@
23
2ec5a54e 24 #define FB_MAX 32 /* sufficient for now */
25
26+struct fb_splash_iowrapper
27+{
28+ unsigned short vc; /* Virtual console */
29+ unsigned char origin; /* Point of origin of the request */
30+ void *data;
31+};
32+
33 /* ioctls
34 0x46 is 'F' */
35 #define FBIOGET_VSCREENINFO 0x4600
5d278d6c 36@@ -35,8 +42,17 @@
963876a8 37 #define FBIOGET_HWCINFO 0x4616
2ec5a54e 38 #define FBIOPUT_MODEINFO 0x4617
39 #define FBIOGET_DISPINFO 0x4618
2ec5a54e 40+#define FBIOSPLASH_SETCFG _IOWR('F', 0x19, struct fb_splash_iowrapper)
41+#define FBIOSPLASH_GETCFG _IOR('F', 0x1A, struct fb_splash_iowrapper)
42+#define FBIOSPLASH_SETSTATE _IOWR('F', 0x1B, struct fb_splash_iowrapper)
43+#define FBIOSPLASH_GETSTATE _IOR('F', 0x1C, struct fb_splash_iowrapper)
6cad2c5e 44+#define FBIOSPLASH_SETPIC _IOWR('F', 0x1D, struct fb_splash_iowrapper)
5d278d6c 45 #define FBIO_WAITFORVSYNC _IOW('F', 0x20, __u32)
963876a8 46
2ec5a54e 47+#define FB_SPLASH_THEME_LEN 128 /* Maximum lenght of a theme name */
48+#define FB_SPLASH_IO_ORIG_KERNEL 0 /* Kernel ioctl origin */
49+#define FB_SPLASH_IO_ORIG_USER 1 /* User ioctl origin */
5d278d6c 50+
2ec5a54e 51 #define FB_TYPE_PACKED_PIXELS 0 /* Packed Pixels */
52 #define FB_TYPE_PLANES 1 /* Non interleaved planes */
5d278d6c 53 #define FB_TYPE_INTERLEAVED_PLANES 2 /* Interleaved planes */
d3addd79
JB
54--- a/include/uapi/linux/Kbuild
55+++ b/include/uapi/linux/Kbuild
56@@ -418,0 +418,1 @@
963876a8 57+header-y += console_splash.h
This page took 0.03475 seconds and 4 git commands to generate.