1/****************************************************************************
2 ****************************************************************************
3 ***
4 ***   This header was automatically generated from a Linux kernel header
5 ***   of the same name, to make information necessary for userspace to
6 ***   call into the kernel available to libc.  It contains only constants,
7 ***   structures, and macros generated from the original header, and thus,
8 ***   contains no copyrightable information.
9 ***
10 ***   To edit the content of this header, modify the corresponding
11 ***   source file (e.g. under external/kernel-headers/original/) then
12 ***   run bionic/libc/kernel/tools/update_all.py
13 ***
14 ***   Any manual change here will be lost the next time this script will
15 ***   be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _LINUX_FB_H
20#define _LINUX_FB_H
21#include <linux/types.h>
22#include <linux/i2c.h>
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define FB_MAX 32
25#define FBIOGET_VSCREENINFO 0x4600
26#define FBIOPUT_VSCREENINFO 0x4601
27#define FBIOGET_FSCREENINFO 0x4602
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define FBIOGETCMAP 0x4604
30#define FBIOPUTCMAP 0x4605
31#define FBIOPAN_DISPLAY 0x4606
32#define FBIO_CURSOR _IOWR('F', 0x08, struct fb_cursor)
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34#define FBIOGET_CON2FBMAP 0x460F
35#define FBIOPUT_CON2FBMAP 0x4610
36#define FBIOBLANK 0x4611
37#define FBIOGET_VBLANK _IOR('F', 0x12, struct fb_vblank)
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39#define FBIO_ALLOC 0x4613
40#define FBIO_FREE 0x4614
41#define FBIOGET_GLYPH 0x4615
42#define FBIOGET_HWCINFO 0x4616
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44#define FBIOPUT_MODEINFO 0x4617
45#define FBIOGET_DISPINFO 0x4618
46#define FBIO_WAITFORVSYNC _IOW('F', 0x20, __u32)
47#define FB_TYPE_PACKED_PIXELS 0
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49#define FB_TYPE_PLANES 1
50#define FB_TYPE_INTERLEAVED_PLANES 2
51#define FB_TYPE_TEXT 3
52#define FB_TYPE_VGA_PLANES 4
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54#define FB_TYPE_FOURCC 5
55#define FB_AUX_TEXT_MDA 0
56#define FB_AUX_TEXT_CGA 1
57#define FB_AUX_TEXT_S3_MMIO 2
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59#define FB_AUX_TEXT_MGA_STEP16 3
60#define FB_AUX_TEXT_MGA_STEP8 4
61#define FB_AUX_TEXT_SVGA_GROUP 8
62#define FB_AUX_TEXT_SVGA_MASK 7
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64#define FB_AUX_TEXT_SVGA_STEP2 8
65#define FB_AUX_TEXT_SVGA_STEP4 9
66#define FB_AUX_TEXT_SVGA_STEP8 10
67#define FB_AUX_TEXT_SVGA_STEP16 11
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69#define FB_AUX_TEXT_SVGA_LAST 15
70#define FB_AUX_VGA_PLANES_VGA4 0
71#define FB_AUX_VGA_PLANES_CFB4 1
72#define FB_AUX_VGA_PLANES_CFB8 2
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74#define FB_VISUAL_MONO01 0
75#define FB_VISUAL_MONO10 1
76#define FB_VISUAL_TRUECOLOR 2
77#define FB_VISUAL_PSEUDOCOLOR 3
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79#define FB_VISUAL_DIRECTCOLOR 4
80#define FB_VISUAL_STATIC_PSEUDOCOLOR 5
81#define FB_VISUAL_FOURCC 6
82#define FB_ACCEL_NONE 0
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84#define FB_ACCEL_ATARIBLITT 1
85#define FB_ACCEL_AMIGABLITT 2
86#define FB_ACCEL_S3_TRIO64 3
87#define FB_ACCEL_NCR_77C32BLT 4
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89#define FB_ACCEL_S3_VIRGE 5
90#define FB_ACCEL_ATI_MACH64GX 6
91#define FB_ACCEL_DEC_TGA 7
92#define FB_ACCEL_ATI_MACH64CT 8
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94#define FB_ACCEL_ATI_MACH64VT 9
95#define FB_ACCEL_ATI_MACH64GT 10
96#define FB_ACCEL_SUN_CREATOR 11
97#define FB_ACCEL_SUN_CGSIX 12
98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99#define FB_ACCEL_SUN_LEO 13
100#define FB_ACCEL_IMS_TWINTURBO 14
101#define FB_ACCEL_3DLABS_PERMEDIA2 15
102#define FB_ACCEL_MATROX_MGA2064W 16
103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104#define FB_ACCEL_MATROX_MGA1064SG 17
105#define FB_ACCEL_MATROX_MGA2164W 18
106#define FB_ACCEL_MATROX_MGA2164W_AGP 19
107#define FB_ACCEL_MATROX_MGAG100 20
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109#define FB_ACCEL_MATROX_MGAG200 21
110#define FB_ACCEL_SUN_CG14 22
111#define FB_ACCEL_SUN_BWTWO 23
112#define FB_ACCEL_SUN_CGTHREE 24
113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114#define FB_ACCEL_SUN_TCX 25
115#define FB_ACCEL_MATROX_MGAG400 26
116#define FB_ACCEL_NV3 27
117#define FB_ACCEL_NV4 28
118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119#define FB_ACCEL_NV5 29
120#define FB_ACCEL_CT_6555x 30
121#define FB_ACCEL_3DFX_BANSHEE 31
122#define FB_ACCEL_ATI_RAGE128 32
123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124#define FB_ACCEL_IGS_CYBER2000 33
125#define FB_ACCEL_IGS_CYBER2010 34
126#define FB_ACCEL_IGS_CYBER5000 35
127#define FB_ACCEL_SIS_GLAMOUR 36
128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129#define FB_ACCEL_3DLABS_PERMEDIA3 37
130#define FB_ACCEL_ATI_RADEON 38
131#define FB_ACCEL_I810 39
132#define FB_ACCEL_SIS_GLAMOUR_2 40
133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
134#define FB_ACCEL_SIS_XABRE 41
135#define FB_ACCEL_I830 42
136#define FB_ACCEL_NV_10 43
137#define FB_ACCEL_NV_20 44
138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
139#define FB_ACCEL_NV_30 45
140#define FB_ACCEL_NV_40 46
141#define FB_ACCEL_XGI_VOLARI_V 47
142#define FB_ACCEL_XGI_VOLARI_Z 48
143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
144#define FB_ACCEL_OMAP1610 49
145#define FB_ACCEL_TRIDENT_TGUI 50
146#define FB_ACCEL_TRIDENT_3DIMAGE 51
147#define FB_ACCEL_TRIDENT_BLADE3D 52
148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
149#define FB_ACCEL_TRIDENT_BLADEXP 53
150#define FB_ACCEL_CIRRUS_ALPINE 53
151#define FB_ACCEL_NEOMAGIC_NM2070 90
152#define FB_ACCEL_NEOMAGIC_NM2090 91
153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
154#define FB_ACCEL_NEOMAGIC_NM2093 92
155#define FB_ACCEL_NEOMAGIC_NM2097 93
156#define FB_ACCEL_NEOMAGIC_NM2160 94
157#define FB_ACCEL_NEOMAGIC_NM2200 95
158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
159#define FB_ACCEL_NEOMAGIC_NM2230 96
160#define FB_ACCEL_NEOMAGIC_NM2360 97
161#define FB_ACCEL_NEOMAGIC_NM2380 98
162#define FB_ACCEL_PXA3XX 99
163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
164#define FB_ACCEL_SAVAGE4 0x80
165#define FB_ACCEL_SAVAGE3D 0x81
166#define FB_ACCEL_SAVAGE3D_MV 0x82
167#define FB_ACCEL_SAVAGE2000 0x83
168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
169#define FB_ACCEL_SAVAGE_MX_MV 0x84
170#define FB_ACCEL_SAVAGE_MX 0x85
171#define FB_ACCEL_SAVAGE_IX_MV 0x86
172#define FB_ACCEL_SAVAGE_IX 0x87
173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
174#define FB_ACCEL_PROSAVAGE_PM 0x88
175#define FB_ACCEL_PROSAVAGE_KM 0x89
176#define FB_ACCEL_S3TWISTER_P 0x8a
177#define FB_ACCEL_S3TWISTER_K 0x8b
178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
179#define FB_ACCEL_SUPERSAVAGE 0x8c
180#define FB_ACCEL_PROSAVAGE_DDR 0x8d
181#define FB_ACCEL_PROSAVAGE_DDRK 0x8e
182#define FB_ACCEL_PUV3_UNIGFX 0xa0
183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
184#define FB_CAP_FOURCC 1
185struct fb_fix_screeninfo {
186 char id[16];
187 unsigned long smem_start;
188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
189 __u32 smem_len;
190 __u32 type;
191 __u32 type_aux;
192 __u32 visual;
193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
194 __u16 xpanstep;
195 __u16 ypanstep;
196 __u16 ywrapstep;
197 __u32 line_length;
198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
199 unsigned long mmio_start;
200 __u32 mmio_len;
201 __u32 accel;
202 __u16 capabilities;
203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
204 __u16 reserved[2];
205};
206struct fb_bitfield {
207 __u32 offset;
208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
209 __u32 length;
210 __u32 msb_right;
211};
212#define FB_NONSTD_HAM 1
213/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
214#define FB_NONSTD_REV_PIX_IN_B 2
215#define FB_ACTIVATE_NOW 0
216#define FB_ACTIVATE_NXTOPEN 1
217#define FB_ACTIVATE_TEST 2
218/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
219#define FB_ACTIVATE_MASK 15
220#define FB_ACTIVATE_VBL 16
221#define FB_CHANGE_CMAP_VBL 32
222#define FB_ACTIVATE_ALL 64
223/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
224#define FB_ACTIVATE_FORCE 128
225#define FB_ACTIVATE_INV_MODE 256
226#define FB_ACCELF_TEXT 1
227#define FB_SYNC_HOR_HIGH_ACT 1
228/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
229#define FB_SYNC_VERT_HIGH_ACT 2
230#define FB_SYNC_EXT 4
231#define FB_SYNC_COMP_HIGH_ACT 8
232#define FB_SYNC_BROADCAST 16
233/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
234#define FB_SYNC_ON_GREEN 32
235#define FB_VMODE_NONINTERLACED 0
236#define FB_VMODE_INTERLACED 1
237#define FB_VMODE_DOUBLE 2
238/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
239#define FB_VMODE_ODD_FLD_FIRST 4
240#define FB_VMODE_MASK 255
241#define FB_VMODE_YWRAP 256
242#define FB_VMODE_SMOOTH_XPAN 512
243/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
244#define FB_VMODE_CONUPDATE 512
245#define FB_FLAG_RATIO_4_3 64
246#define FB_FLAG_RATIO_16_9 128
247#define FB_FLAG_PIXEL_REPEAT 256
248/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
249#define FB_FLAG_PREFERRED 512
250#define FB_FLAG_HW_CAPABLE 1024
251#define FB_ROTATE_UR 0
252#define FB_ROTATE_CW 1
253/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
254#define FB_ROTATE_UD 2
255#define FB_ROTATE_CCW 3
256#define PICOS2KHZ(a) (1000000000UL/(a))
257#define KHZ2PICOS(a) (1000000000UL/(a))
258/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
259struct fb_var_screeninfo {
260 __u32 xres;
261 __u32 yres;
262 __u32 xres_virtual;
263/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
264 __u32 yres_virtual;
265 __u32 xoffset;
266 __u32 yoffset;
267 __u32 bits_per_pixel;
268/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
269 __u32 grayscale;
270 struct fb_bitfield red;
271 struct fb_bitfield green;
272 struct fb_bitfield blue;
273/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
274 struct fb_bitfield transp;
275 __u32 nonstd;
276 __u32 activate;
277 __u32 height;
278/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
279 __u32 width;
280 __u32 accel_flags;
281 __u32 pixclock;
282 __u32 left_margin;
283/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
284 __u32 right_margin;
285 __u32 upper_margin;
286 __u32 lower_margin;
287 __u32 hsync_len;
288/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
289 __u32 vsync_len;
290 __u32 sync;
291 __u32 vmode;
292 __u32 rotate;
293/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
294 __u32 colorspace;
295 __u32 reserved[4];
296};
297struct fb_cmap {
298/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
299 __u32 start;
300 __u32 len;
301 __u16 *red;
302 __u16 *green;
303/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
304 __u16 *blue;
305 __u16 *transp;
306};
307struct fb_con2fbmap {
308/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
309 __u32 console;
310 __u32 framebuffer;
311};
312#define VESA_NO_BLANKING 0
313/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
314#define VESA_VSYNC_SUSPEND 1
315#define VESA_HSYNC_SUSPEND 2
316#define VESA_POWERDOWN 3
317enum {
318/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
319 FB_BLANK_UNBLANK = VESA_NO_BLANKING,
320 FB_BLANK_NORMAL = VESA_NO_BLANKING + 1,
321 FB_BLANK_VSYNC_SUSPEND = VESA_VSYNC_SUSPEND + 1,
322 FB_BLANK_HSYNC_SUSPEND = VESA_HSYNC_SUSPEND + 1,
323/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
324 FB_BLANK_POWERDOWN = VESA_POWERDOWN + 1
325};
326#define FB_VBLANK_VBLANKING 0x001
327#define FB_VBLANK_HBLANKING 0x002
328/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
329#define FB_VBLANK_HAVE_VBLANK 0x004
330#define FB_VBLANK_HAVE_HBLANK 0x008
331#define FB_VBLANK_HAVE_COUNT 0x010
332#define FB_VBLANK_HAVE_VCOUNT 0x020
333/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
334#define FB_VBLANK_HAVE_HCOUNT 0x040
335#define FB_VBLANK_VSYNCING 0x080
336#define FB_VBLANK_HAVE_VSYNC 0x100
337struct fb_vblank {
338/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
339 __u32 flags;
340 __u32 count;
341 __u32 vcount;
342 __u32 hcount;
343/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
344 __u32 reserved[4];
345};
346#define ROP_COPY 0
347#define ROP_XOR 1
348/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
349struct fb_copyarea {
350 __u32 dx;
351 __u32 dy;
352 __u32 width;
353/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
354 __u32 height;
355 __u32 sx;
356 __u32 sy;
357};
358/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
359struct fb_fillrect {
360 __u32 dx;
361 __u32 dy;
362 __u32 width;
363/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
364 __u32 height;
365 __u32 color;
366 __u32 rop;
367};
368/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
369struct fb_image {
370 __u32 dx;
371 __u32 dy;
372 __u32 width;
373/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
374 __u32 height;
375 __u32 fg_color;
376 __u32 bg_color;
377 __u8 depth;
378/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
379 const char *data;
380 struct fb_cmap cmap;
381};
382#define FB_CUR_SETIMAGE 0x01
383/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
384#define FB_CUR_SETPOS 0x02
385#define FB_CUR_SETHOT 0x04
386#define FB_CUR_SETCMAP 0x08
387#define FB_CUR_SETSHAPE 0x10
388/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
389#define FB_CUR_SETSIZE 0x20
390#define FB_CUR_SETALL 0xFF
391struct fbcurpos {
392 __u16 x, y;
393/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
394};
395struct fb_cursor {
396 __u16 set;
397 __u16 enable;
398/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
399 __u16 rop;
400 const char *mask;
401 struct fbcurpos hot;
402 struct fb_image image;
403/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
404};
405#endif
406
407