]> git.pld-linux.org Git - packages/linux-libc-headers.git/blob - linux-libc-headers-fbsplash.patch
- rel 1
[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/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 diff --git a/include/linux/fb.h b/include/linux/fb.h
21 index 64177ec..dc99c4f 100644
22 --- a/include/linux/fb.h
23 +++ b/include/linux/fb.h
24 @@ -9,6 +9,13 @@
25  #define FB_MAJOR               29
26  #define FB_MAX                 32      /* sufficient for now */
27  
28 +struct fb_splash_iowrapper
29 +{
30 +       unsigned short vc;              /* Virtual console */
31 +       unsigned char origin;           /* Point of origin of the request */
32 +       void *data;
33 +};
34 +
35  /* ioctls
36     0x46 is 'F'                                                         */
37  #define FBIOGET_VSCREENINFO    0x4600
38 @@ -36,7 +43,15 @@
39  #define FBIOGET_HWCINFO         0x4616
40  #define FBIOPUT_MODEINFO        0x4617
41  #define FBIOGET_DISPINFO        0x4618
42 +#define FBIOSPLASH_SETCFG      _IOWR('F', 0x19, struct fb_splash_iowrapper)
43 +#define FBIOSPLASH_GETCFG      _IOR('F', 0x1A, struct fb_splash_iowrapper)
44 +#define FBIOSPLASH_SETSTATE    _IOWR('F', 0x1B, struct fb_splash_iowrapper)
45 +#define FBIOSPLASH_GETSTATE    _IOR('F', 0x1C, struct fb_splash_iowrapper)
46 +#define FBIOSPLASH_SETPIC      _IOWR('F', 0x1D, struct fb_splash_iowrapper)
47  
48 +#define FB_SPLASH_THEME_LEN            128     /* Maximum lenght of a theme name */
49 +#define FB_SPLASH_IO_ORIG_KERNEL       0       /* Kernel ioctl origin */
50 +#define FB_SPLASH_IO_ORIG_USER         1       /* User ioctl origin */
51  
52  #define FB_TYPE_PACKED_PIXELS          0       /* Packed Pixels        */
53  #define FB_TYPE_PLANES                 1       /* Non interleaved planes */
54 --- a/include/linux/Kbuild
55 +++ b/include/linux/Kbuild
56 @@ -342,0 +342,1 @@
57 +header-y += console_splash.h
This page took 0.027458 seconds and 3 git commands to generate.