]> git.pld-linux.org Git - packages/linux-libc-headers.git/commitdiff
- needed for splashutils
authorhavner <havner@pld-linux.org>
Sat, 8 Jan 2005 04:21:28 +0000 (04:21 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    linux-libc-headers-fbsplash.patch -> 1.1

linux-libc-headers-fbsplash.patch [new file with mode: 0644]

diff --git a/linux-libc-headers-fbsplash.patch b/linux-libc-headers-fbsplash.patch
new file mode 100644 (file)
index 0000000..08abbaf
--- /dev/null
@@ -0,0 +1,75 @@
+diff -Nru a/include/linux/console_splash.h b/include/linux/console_splash.h
+--- /dev/null  Wed Dec 31 16:00:00 196900
++++ b/include/linux/console_splash.h   2004-12-11 19:23:54 +01:00
+@@ -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
+diff -Nru a/include/linux/console_struct.h b/include/linux/console_struct.h
+--- a/include/linux/console_struct.h   2004-12-11 19:23:54 +01:00
++++ b/include/linux/console_struct.h   2004-12-11 19:23:54 +01:00
+@@ -10,6 +10,7 @@
+  */
+ #define NPAR 16
++#include <linux/console_splash.h>
+ struct vc_data {
+       unsigned short  vc_num;                 /* Console number */
+@@ -87,6 +88,8 @@
+       struct vc_data **vc_display_fg;         /* [!] Ptr to var holding fg console for this display */
+       unsigned long   vc_uni_pagedir;
+       unsigned long   *vc_uni_pagedir_loc;  /* [!] Location of uni_pagedir variable for this console */
++
++      struct vc_splash vc_splash;
+       /* additional information is in vt_kern.h */
+ };
+diff -Nru a/include/linux/fb.h b/include/linux/fb.h
+--- a/include/linux/fb.h       2004-12-11 19:23:54 +01:00
++++ b/include/linux/fb.h       2004-12-11 19:23:54 +01:00
+@@ -8,6 +8,13 @@
+ #define FB_MAJOR              29
+ #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,7 +42,19 @@
+ #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_SETMODE    _IOWR('F', 0x1D, unsigned int)
++#define FBIOSPLASH_GETMODE    _IOR('F', 0x1E, unsigned int)
++#define FBIOSPLASH_SETPIC     _IOWR('F', 0x1F, struct fb_splash_iowrapper)
++
++#define FB_SPLASH_MODE_VERBOSE                1       /* Verbose mode */
++#define FB_SPLASH_MODE_SILENT                 2       /* Silent mode */
++#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 */
This page took 0.028787 seconds and 4 git commands to generate.