]> git.pld-linux.org Git - packages/linux-libc-headers.git/blob - linux-libc-headers-fbsplash.patch
- up to 3.15.6
[packages/linux-libc-headers.git] / linux-libc-headers-fbsplash.patch
1 diff --git a/include/linux/console_splash.h b/include/linux/console_splash.h
2 new file mode 100644
3 index 0000000..c448dd2
4 --- /dev/null
5 +++ b/include/uapi/linux/console_splash.h
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
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
22 @@ -8,6 +8,13 @@
23  
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
36 @@ -35,8 +42,17 @@
37  #define FBIOGET_HWCINFO         0x4616
38  #define FBIOPUT_MODEINFO        0x4617
39  #define FBIOGET_DISPINFO        0x4618
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)
44 +#define FBIOSPLASH_SETPIC      _IOWR('F', 0x1D, struct fb_splash_iowrapper)
45  #define FBIO_WAITFORVSYNC      _IOW('F', 0x20, __u32)
46  
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 */
50 +  
51  #define FB_TYPE_PACKED_PIXELS          0       /* Packed Pixels        */
52  #define FB_TYPE_PLANES                 1       /* Non interleaved planes */
53  #define FB_TYPE_INTERLEAVED_PLANES     2       /* Interleaved planes   */
54 --- a/include/uapi/linux/Kbuild
55 +++ b/include/uapi/linux/Kbuild
56 @@ -418,0 +418,1 @@
57 +header-y += console_splash.h
This page took 0.031874 seconds and 3 git commands to generate.