]> git.pld-linux.org Git - packages/linux-libc-headers.git/blob - linux-libc-headers-fbsplash.patch
- missing include for __[su]* types
[packages/linux-libc-headers.git] / linux-libc-headers-fbsplash.patch
1 diff -uNr linux-libc-headers-2.6.11.0.orig/include/linux/console_splash.h linux-libc-headers-2.6.11.0/include/linux/console_splash.h
2 --- linux-libc-headers-2.6.11.0.orig/include/linux/console_splash.h     1970-01-01 01:00:00.000000000 +0100
3 +++ linux-libc-headers-2.6.11.0/include/linux/console_splash.h  2005-03-13 23:23:02.000000000 +0100
4 @@ -0,0 +1,13 @@
5 +#ifndef _LINUX_CONSOLE_SPLASH_H_
6 +#define _LINUX_CONSOLE_SPLASH_H_ 1
7 +
8 +/* A structure used by the framebuffer splash code (drivers/video/fbsplash.c) */
9 +struct vc_splash {
10 +       __u8 bg_color;                          /* The color that is to be treated as transparent */
11 +       __u8 state;                             /* Current splash state: 0 = off, 1 = on */
12 +       __u16 tx, ty;                           /* Top left corner coordinates of the text field */
13 +       __u16 twidth, theight;                  /* Width and height of the text field */
14 +       char* theme;
15 +};
16 +
17 +#endif
18 diff -uNr linux-libc-headers-2.6.11.0.orig/include/linux/console_struct.h linux-libc-headers-2.6.11.0/include/linux/console_struct.h
19 --- linux-libc-headers-2.6.11.0.orig/include/linux/console_struct.h     2005-03-13 21:54:02.000000000 +0100
20 +++ linux-libc-headers-2.6.11.0/include/linux/console_struct.h  2005-03-13 23:23:02.000000000 +0100
21 @@ -12,6 +12,7 @@
22  struct vt_struct;
23  
24  #define NPAR 16
25 +#include <linux/console_splash.h>
26  
27  struct vc_data {
28         unsigned short  vc_num;                 /* Console number */
29 @@ -90,6 +91,8 @@
30         unsigned long   vc_uni_pagedir;
31         unsigned long   *vc_uni_pagedir_loc;  /* [!] Location of uni_pagedir variable for this console */
32         struct vt_struct *vc_vt;
33 +
34 +       struct vc_splash vc_splash;
35         /* additional information is in vt_kern.h */
36  };
37  
38 diff -uNr linux-libc-headers-2.6.11.0.orig/include/linux/fb.h linux-libc-headers-2.6.11.0/include/linux/fb.h
39 --- linux-libc-headers-2.6.11.0.orig/include/linux/fb.h 2005-01-08 15:03:32.000000000 +0100
40 +++ linux-libc-headers-2.6.11.0/include/linux/fb.h      2005-03-13 23:33:46.000000000 +0100
41 @@ -8,6 +8,13 @@
42  #define FB_MAJOR               29
43  #define FB_MAX                 32      /* sufficient for now */
44  
45 +struct fb_splash_iowrapper
46 +{
47 +       unsigned short vc;              /* Virtual console */
48 +       unsigned char origin;           /* Point of origin of the request */
49 +       void *data;
50 +};
51 +
52  /* ioctls
53     0x46 is 'F'                                                         */
54  #define FBIOGET_VSCREENINFO    0x4600
55 @@ -32,6 +39,15 @@
56  #define FBIOPUT_MODEINFO        0x4617
57  #define FBIOGET_DISPINFO        0x4618
58  
59 +#define FBIOSPLASH_SETCFG      _IOWR('F', 0x19, struct fb_splash_iowrapper)
60 +#define FBIOSPLASH_GETCFG      _IOR('F', 0x1A, struct fb_splash_iowrapper)
61 +#define FBIOSPLASH_SETSTATE    _IOWR('F', 0x1B, struct fb_splash_iowrapper)
62 +#define FBIOSPLASH_GETSTATE    _IOR('F', 0x1C, struct fb_splash_iowrapper)
63 +#define FBIOSPLASH_SETPIC      _IOWR('F', 0x1D, struct fb_splash_iowrapper)
64 +
65 +#define FB_SPLASH_THEME_LEN            128     /* Maximum lenght of a theme name */
66 +#define FB_SPLASH_IO_ORIG_KERNEL       0       /* Kernel ioctl origin */
67 +#define FB_SPLASH_IO_ORIG_USER         1       /* User ioctl origin */
68  
69  #define FB_TYPE_PACKED_PIXELS          0       /* Packed Pixels        */
70  #define FB_TYPE_PLANES                 1       /* Non interleaved planes */
This page took 0.028772 seconds and 3 git commands to generate.