1 |
Author: mpagano |
2 |
Date: 2010-08-02 12:58:52 +0000 (Mon, 02 Aug 2010) |
3 |
New Revision: 1728 |
4 |
|
5 |
Modified: |
6 |
genpatches-2.6/trunk/2.6.35/4200_fbcondecor-0.9.6.patch |
7 |
Log: |
8 |
2.6.35 patch for fbcondecor |
9 |
|
10 |
Modified: genpatches-2.6/trunk/2.6.35/4200_fbcondecor-0.9.6.patch |
11 |
=================================================================== |
12 |
--- genpatches-2.6/trunk/2.6.35/4200_fbcondecor-0.9.6.patch 2010-07-30 12:51:12 UTC (rev 1727) |
13 |
+++ genpatches-2.6/trunk/2.6.35/4200_fbcondecor-0.9.6.patch 2010-08-02 12:58:52 UTC (rev 1728) |
14 |
@@ -225,7 +225,7 @@ |
15 |
+ Michal Januszewski <spock@g.o> |
16 |
+ |
17 |
diff --git a/drivers/Makefile b/drivers/Makefile |
18 |
-index 6ee53c7..4285118 100644 |
19 |
+index 91874e0..dc7663b 100644 |
20 |
--- a/drivers/Makefile |
21 |
+++ b/drivers/Makefile |
22 |
@@ -9,6 +9,9 @@ obj-y += gpio/ |
23 |
@@ -236,9 +236,9 @@ |
24 |
+# default. |
25 |
+obj-y += char/ |
26 |
obj-y += video/ |
27 |
+ obj-y += idle/ |
28 |
obj-$(CONFIG_ACPI) += acpi/ |
29 |
- obj-$(CONFIG_SFI) += sfi/ |
30 |
-@@ -22,10 +25,6 @@ obj-$(CONFIG_XEN) += xen/ |
31 |
+@@ -24,10 +27,6 @@ obj-$(CONFIG_XEN) += xen/ |
32 |
# regulators early, since some subsystems rely on them to initialize |
33 |
obj-$(CONFIG_REGULATOR) += regulator/ |
34 |
|
35 |
@@ -250,10 +250,10 @@ |
36 |
obj-y += gpu/ |
37 |
|
38 |
diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig |
39 |
-index 5a5c303..5c55b00 100644 |
40 |
+index 3d94a14..54e113d 100644 |
41 |
--- a/drivers/video/Kconfig |
42 |
+++ b/drivers/video/Kconfig |
43 |
-@@ -1180,7 +1180,6 @@ config FB_MATROX |
44 |
+@@ -1195,7 +1195,6 @@ config FB_MATROX |
45 |
select FB_CFB_FILLRECT |
46 |
select FB_CFB_COPYAREA |
47 |
select FB_CFB_IMAGEBLIT |
48 |
@@ -262,10 +262,10 @@ |
49 |
---help--- |
50 |
Say Y here if you have a Matrox Millennium, Matrox Millennium II, |
51 |
diff --git a/drivers/video/console/Kconfig b/drivers/video/console/Kconfig |
52 |
-index fc7d9bb..cb8412e 100644 |
53 |
+index 8e8f18d..86875c3 100644 |
54 |
--- a/drivers/video/console/Kconfig |
55 |
+++ b/drivers/video/console/Kconfig |
56 |
-@@ -121,6 +121,19 @@ config FRAMEBUFFER_CONSOLE_ROTATION |
57 |
+@@ -122,6 +122,19 @@ config FRAMEBUFFER_CONSOLE_ROTATION |
58 |
such that other users of the framebuffer will remain normally |
59 |
oriented. |
60 |
|
61 |
@@ -298,10 +298,10 @@ |
62 |
|
63 |
ifeq ($(CONFIG_USB_SISUSBVGA_CON),y) |
64 |
diff --git a/drivers/video/console/bitblit.c b/drivers/video/console/bitblit.c |
65 |
-index 6b7c8fb..6b4d555 100644 |
66 |
+index af88651..4cd893d 100644 |
67 |
--- a/drivers/video/console/bitblit.c |
68 |
+++ b/drivers/video/console/bitblit.c |
69 |
-@@ -17,6 +17,7 @@ |
70 |
+@@ -18,6 +18,7 @@ |
71 |
#include <linux/console.h> |
72 |
#include <asm/types.h> |
73 |
#include "fbcon.h" |
74 |
@@ -309,7 +309,7 @@ |
75 |
|
76 |
/* |
77 |
* Accelerated handlers. |
78 |
-@@ -54,6 +55,13 @@ static void bit_bmove(struct vc_data *vc, struct fb_info *info, int sy, |
79 |
+@@ -55,6 +56,13 @@ static void bit_bmove(struct vc_data *vc, struct fb_info *info, int sy, |
80 |
area.height = height * vc->vc_font.height; |
81 |
area.width = width * vc->vc_font.width; |
82 |
|
83 |
@@ -323,7 +323,7 @@ |
84 |
info->fbops->fb_copyarea(info, &area); |
85 |
} |
86 |
|
87 |
-@@ -379,11 +387,15 @@ static void bit_cursor(struct vc_data *vc, struct fb_info *info, int mode, |
88 |
+@@ -380,11 +388,15 @@ static void bit_cursor(struct vc_data *vc, struct fb_info *info, int mode, |
89 |
cursor.image.depth = 1; |
90 |
cursor.rop = ROP_XOR; |
91 |
|
92 |
@@ -345,10 +345,10 @@ |
93 |
} |
94 |
diff --git a/drivers/video/console/cfbcondecor.c b/drivers/video/console/cfbcondecor.c |
95 |
new file mode 100644 |
96 |
-index 0000000..7654ec6 |
97 |
+index 0000000..18a5452 |
98 |
--- /dev/null |
99 |
+++ b/drivers/video/console/cfbcondecor.c |
100 |
-@@ -0,0 +1,471 @@ |
101 |
+@@ -0,0 +1,472 @@ |
102 |
+/* |
103 |
+ * linux/drivers/video/cfbcon_decor.c -- Framebuffer decor render functions |
104 |
+ * |
105 |
@@ -822,7 +822,7 @@ |
106 |
+} |
107 |
+ |
108 |
diff --git a/drivers/video/console/fbcon.c b/drivers/video/console/fbcon.c |
109 |
-index 3681c6a..f3da96a 100644 |
110 |
+index b0a3fa0..7121e94 100644 |
111 |
--- a/drivers/video/console/fbcon.c |
112 |
+++ b/drivers/video/console/fbcon.c |
113 |
@@ -80,6 +80,7 @@ |
114 |
@@ -1187,7 +1187,7 @@ |
115 |
updatescrollmode(p, info, vc); |
116 |
scrollback_max = 0; |
117 |
scrollback_current = 0; |
118 |
-@@ -3498,6 +3634,7 @@ static void fbcon_exit(void) |
119 |
+@@ -3516,6 +3652,7 @@ static void fbcon_exit(void) |
120 |
} |
121 |
} |
122 |
|
123 |
@@ -1881,7 +1881,7 @@ |
124 |
} |
125 |
|
126 |
diff --git a/drivers/video/fbmem.c b/drivers/video/fbmem.c |
127 |
-index 99bbd28..893bca4 100644 |
128 |
+index 731fce6..f0ecef4 100644 |
129 |
--- a/drivers/video/fbmem.c |
130 |
+++ b/drivers/video/fbmem.c |
131 |
@@ -1184,15 +1184,6 @@ struct fb_fix_screeninfo32 { |
132 |
@@ -1974,18 +1974,11 @@ |
133 |
}; |
134 |
|
135 |
diff --git a/include/linux/fb.h b/include/linux/fb.h |
136 |
-index 369767b..2c14913 100644 |
137 |
+index 8e5a9df..7883651 100644 |
138 |
--- a/include/linux/fb.h |
139 |
+++ b/include/linux/fb.h |
140 |
-@@ -3,13 +3,31 @@ |
141 |
+@@ -8,6 +8,25 @@ |
142 |
|
143 |
- #include <linux/types.h> |
144 |
- #include <linux/i2c.h> |
145 |
-- |
146 |
- struct dentry; |
147 |
- |
148 |
- /* Definitions of frame buffers */ |
149 |
- |
150 |
#define FB_MAX 32 /* sufficient for now */ |
151 |
|
152 |
+struct fbcon_decor_iowrapper |
153 |
@@ -2010,10 +2003,10 @@ |
154 |
/* ioctls |
155 |
0x46 is 'F' */ |
156 |
#define FBIOGET_VSCREENINFO 0x4600 |
157 |
-@@ -37,7 +55,24 @@ struct dentry; |
158 |
- #define FBIOGET_HWCINFO 0x4616 |
159 |
+@@ -36,6 +55,24 @@ |
160 |
#define FBIOPUT_MODEINFO 0x4617 |
161 |
#define FBIOGET_DISPINFO 0x4618 |
162 |
+ #define FBIO_WAITFORVSYNC _IOW('F', 0x20, __u32) |
163 |
+#define FBIOCONDECOR_SETCFG _IOWR('F', 0x19, struct fbcon_decor_iowrapper) |
164 |
+#define FBIOCONDECOR_GETCFG _IOR('F', 0x1A, struct fbcon_decor_iowrapper) |
165 |
+#define FBIOCONDECOR_SETSTATE _IOWR('F', 0x1B, struct fbcon_decor_iowrapper) |
166 |
@@ -2028,14 +2021,14 @@ |
167 |
+#define FBIOCONDECOR_SETPIC32 _IOWR('F', 0x1D, struct fbcon_decor_iowrapper32) |
168 |
+#endif /* CONFIG_COMPAT */ |
169 |
+#endif /* __KERNEL__ */ |
170 |
- |
171 |
++ |
172 |
+#define FBCON_DECOR_THEME_LEN 128 /* Maximum lenght of a theme name */ |
173 |
+#define FBCON_DECOR_IO_ORIG_KERNEL 0 /* Kernel ioctl origin */ |
174 |
+#define FBCON_DECOR_IO_ORIG_USER 1 /* User ioctl origin */ |
175 |
|
176 |
#define FB_TYPE_PACKED_PIXELS 0 /* Packed Pixels */ |
177 |
#define FB_TYPE_PLANES 1 /* Non interleaved planes */ |
178 |
-@@ -282,6 +317,28 @@ struct fb_cmap { |
179 |
+@@ -280,6 +317,28 @@ struct fb_cmap { |
180 |
__u16 *transp; /* transparency, can be NULL */ |
181 |
}; |
182 |
|
183 |
@@ -2064,7 +2057,7 @@ |
184 |
struct fb_con2fbmap { |
185 |
__u32 console; |
186 |
__u32 framebuffer; |
187 |
-@@ -363,6 +420,34 @@ struct fb_image { |
188 |
+@@ -361,6 +420,34 @@ struct fb_image { |
189 |
struct fb_cmap cmap; /* color map info */ |
190 |
}; |
191 |
|
192 |
@@ -2099,7 +2092,7 @@ |
193 |
/* |
194 |
* hardware cursor control |
195 |
*/ |
196 |
-@@ -855,6 +940,9 @@ struct fb_info { |
197 |
+@@ -856,6 +943,9 @@ struct fb_info { |
198 |
#define FBINFO_STATE_SUSPENDED 1 |
199 |
u32 state; /* Hardware state i.e suspend */ |
200 |
void *fbcon_par; /* fbcon use-only private area */ |
201 |
@@ -2110,20 +2103,21 @@ |
202 |
void *par; |
203 |
/* we need the PCI or similiar aperture base/size not |
204 |
diff --git a/kernel/sysctl.c b/kernel/sysctl.c |
205 |
-index 8a68b24..3232e2f 100644 |
206 |
+index d24f761..a47ce49 100644 |
207 |
--- a/kernel/sysctl.c |
208 |
+++ b/kernel/sysctl.c |
209 |
-@@ -123,6 +123,9 @@ static int ngroups_max = NGROUPS_MAX; |
210 |
- extern char modprobe_path[]; |
211 |
- extern int modules_disabled; |
212 |
- #endif |
213 |
+@@ -130,6 +130,10 @@ static int min_percpu_pagelist_fract = 8; |
214 |
+ |
215 |
+ static int ngroups_max = NGROUPS_MAX; |
216 |
+ |
217 |
+#ifdef CONFIG_FB_CON_DECOR |
218 |
+extern char fbcon_decor_path[]; |
219 |
+#endif |
220 |
- #ifdef CONFIG_CHR_DEV_SG |
221 |
- extern int sg_big_buff; |
222 |
++ |
223 |
+ #ifdef CONFIG_SPARC |
224 |
+ #include <asm/system.h> |
225 |
#endif |
226 |
-@@ -232,6 +235,16 @@ static struct ctl_table root_table[] = { |
227 |
+@@ -245,6 +249,16 @@ static struct ctl_table root_table[] = { |
228 |
.mode = 0555, |
229 |
.child = dev_table, |
230 |
}, |
231 |
@@ -2140,4 +2134,3 @@ |
232 |
/* |
233 |
* NOTE: do not add new entries to this table unless you have read |
234 |
* Documentation/sysctl/ctl_unnumbered.txt |
235 |
- |