1 diff --git a/include/linux/console_splash.h b/include/linux/console_splash.h
5 +++ b/include/linux/console_splash.h
7 +#ifndef _LINUX_CONSOLE_SPLASH_H_
8 +#define _LINUX_CONSOLE_SPLASH_H_ 1
10 +/* A structure used by the framebuffer splash code (drivers/video/fbsplash.c) */
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 */
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
26 #define FB_MAX 32 /* sufficient for now */
28 +struct fb_splash_iowrapper
30 + unsigned short vc; /* Virtual console */
31 + unsigned char origin; /* Point of origin of the request */
37 #define FBIOGET_VSCREENINFO 0x4600
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)
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 */
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
57 +header-y += console_splash.h