blob: 0d8591a02734b3bfe73e43a4ea160a1946af43ec [file] [log] [blame]
Iliyan Malchev3a5d6682011-08-03 20:59:19 -07001/****************************************************************************
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_DSSCOMP_H
20#define _LINUX_DSSCOMP_H
21enum omap_plane {
22 OMAP_DSS_GFX = 0,
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 OMAP_DSS_VIDEO1 = 1,
25 OMAP_DSS_VIDEO2 = 2,
26 OMAP_DSS_VIDEO3 = 3,
27 OMAP_DSS_WB = 4,
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29};
30enum omap_channel {
31 OMAP_DSS_CHANNEL_LCD = 0,
32 OMAP_DSS_CHANNEL_DIGIT = 1,
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 OMAP_DSS_CHANNEL_LCD2 = 2,
35};
36enum omap_color_mode {
37 OMAP_DSS_COLOR_CLUT1 = 1 << 0,
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 OMAP_DSS_COLOR_CLUT2 = 1 << 1,
40 OMAP_DSS_COLOR_CLUT4 = 1 << 2,
41 OMAP_DSS_COLOR_CLUT8 = 1 << 3,
42 OMAP_DSS_COLOR_RGB12U = 1 << 4,
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 OMAP_DSS_COLOR_ARGB16 = 1 << 5,
45 OMAP_DSS_COLOR_RGB16 = 1 << 6,
46 OMAP_DSS_COLOR_RGB24U = 1 << 7,
47 OMAP_DSS_COLOR_RGB24P = 1 << 8,
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 OMAP_DSS_COLOR_YUV2 = 1 << 9,
50 OMAP_DSS_COLOR_UYVY = 1 << 10,
51 OMAP_DSS_COLOR_ARGB32 = 1 << 11,
52 OMAP_DSS_COLOR_RGBA32 = 1 << 12,
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 OMAP_DSS_COLOR_RGBX24 = 1 << 13,
55 OMAP_DSS_COLOR_RGBX32 = 1 << 13,
56 OMAP_DSS_COLOR_NV12 = 1 << 14,
57 OMAP_DSS_COLOR_RGBA16 = 1 << 15,
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59 OMAP_DSS_COLOR_RGBX12 = 1 << 16,
60 OMAP_DSS_COLOR_RGBX16 = 1 << 16,
61 OMAP_DSS_COLOR_ARGB16_1555 = 1 << 17,
62 OMAP_DSS_COLOR_XRGB15 = 1 << 18,
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64 OMAP_DSS_COLOR_XRGB16_1555 = 1 << 18,
65};
66enum omap_dss_trans_key_type {
67 OMAP_DSS_COLOR_KEY_GFX_DST = 0,
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69 OMAP_DSS_COLOR_KEY_VID_SRC = 1,
70};
71enum omap_dss_display_state {
72 OMAP_DSS_DISPLAY_DISABLED = 0,
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74 OMAP_DSS_DISPLAY_ACTIVE,
75 OMAP_DSS_DISPLAY_SUSPENDED,
76 OMAP_DSS_DISPLAY_TRANSITION,
77};
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79struct omap_video_timings {
80 __u16 x_res;
81 __u16 y_res;
82 __u32 pixel_clock;
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84 __u16 hsw;
85 __u16 hfp;
86 __u16 hbp;
87 __u16 vsw;
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89 __u16 vfp;
90 __u16 vbp;
91};
92struct omap_dss_cconv_coefs {
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94 __s16 ry, rcr, rcb;
95 __s16 gy, gcr, gcb;
96 __s16 by, bcr, bcb;
97 __u16 full_range;
98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99} __attribute__ ((aligned(4)));
100struct omap_dss_cpr_coefs {
101 __s16 rr, rg, rb;
102 __s16 gr, gg, gb;
103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104 __s16 br, bg, bb;
105};
106enum s3d_disp_type {
107 S3D_DISP_NONE = 0,
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109 S3D_DISP_FRAME_SEQ,
110 S3D_DISP_ROW_IL,
111 S3D_DISP_COL_IL,
112 S3D_DISP_PIX_IL,
113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114 S3D_DISP_CHECKB,
115 S3D_DISP_OVERUNDER,
116 S3D_DISP_SIDEBYSIDE,
117};
118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119enum s3d_disp_sub_sampling {
120 S3D_DISP_SUB_SAMPLE_NONE = 0,
121 S3D_DISP_SUB_SAMPLE_V,
122 S3D_DISP_SUB_SAMPLE_H,
123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124};
125enum s3d_disp_order {
126 S3D_DISP_ORDER_L = 0,
127 S3D_DISP_ORDER_R = 1,
128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129};
130enum s3d_disp_view {
131 S3D_DISP_VIEW_L = 0,
132 S3D_DISP_VIEW_R,
133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
134};
135struct s3d_disp_info {
136 enum s3d_disp_type type;
137 enum s3d_disp_sub_sampling sub_samp;
138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
139 enum s3d_disp_order order;
140 unsigned int gap;
141};
142enum omap_dss_ilace_mode {
143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
144 OMAP_DSS_ILACE = (1 << 0),
145 OMAP_DSS_ILACE_SEQ = (1 << 1),
146 OMAP_DSS_ILACE_SWAP = (1 << 2),
147 OMAP_DSS_ILACE_NONE = 0,
148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
149 OMAP_DSS_ILACE_IL_TB = OMAP_DSS_ILACE,
150 OMAP_DSS_ILACE_IL_BT = OMAP_DSS_ILACE | OMAP_DSS_ILACE_SWAP,
151 OMAP_DSS_ILACE_SEQ_TB = OMAP_DSS_ILACE_IL_TB | OMAP_DSS_ILACE_SEQ,
152 OMAP_DSS_ILACE_SEQ_BT = OMAP_DSS_ILACE_IL_BT | OMAP_DSS_ILACE_SEQ,
153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
154};
155struct dss2_vc1_range_map_info {
156 __u8 enable;
157 __u8 range_y;
158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
159 __u8 range_uv;
160} __attribute__ ((aligned(4)));
161struct dss2_rect_t {
162 __s32 x;
163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
164 __s32 y;
165 __u32 w;
166 __u32 h;
167} __attribute__ ((aligned(4)));
168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
169struct dss2_decim {
170 __u8 min_x;
171 __u8 max_x;
172 __u8 min_y;
173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
174 __u8 max_y;
175} __attribute__ ((aligned(4)));
176struct dss2_ovl_cfg {
177 __u16 width;
178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
179 __u16 height;
180 __u32 stride;
181 enum omap_color_mode color_mode;
182 __u8 pre_mult_alpha;
183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
184 __u8 global_alpha;
185 __u8 rotation;
186 __u8 mirror;
187 enum omap_dss_ilace_mode ilace;
188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
189 struct dss2_rect_t win;
190 struct dss2_rect_t crop;
191 struct dss2_decim decim;
192 struct omap_dss_cconv_coefs cconv;
193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
194 struct dss2_vc1_range_map_info vc1;
195 __u8 ix;
196 __u8 zorder;
197 __u8 enabled;
198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
199 __u8 zonly;
200} __attribute__ ((aligned(4)));
201enum omapdss_buffer_type {
202 OMAP_DSS_BUFTYPE_SDMA,
203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
204 OMAP_DSS_BUFTYPE_TILER_8BIT,
205 OMAP_DSS_BUFTYPE_TILER_16BIT,
206 OMAP_DSS_BUFTYPE_TILER_32BIT,
207 OMAP_DSS_BUFTYPE_TILER_PAGE,
208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
209};
210struct dss2_ovl_info {
211 struct dss2_ovl_cfg cfg;
212 union {
213/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
214 struct {
215 void *address;
216 __u16 ba_type;
217 __u16 uv_type;
218/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
219 };
220 struct {
221 __u32 ba;
222 __u32 uv;
223/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
224 };
225 };
226};
227struct dss2_mgr_info {
228/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
229 __u32 ix;
230 __u32 default_color;
231 enum omap_dss_trans_key_type trans_key_type;
232 __u32 trans_key;
233/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
234 struct omap_dss_cpr_coefs cpr_coefs;
235 __u8 trans_enabled;
236 __u8 interlaced;
237 __u8 alpha_blending;
238/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
239 __u8 cpr_enabled;
240 __u8 swap_rb;
241} __attribute__ ((aligned(4)));
242enum dsscomp_setup_mode {
243/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
244 DSSCOMP_SETUP_MODE_APPLY = (1 << 0),
245 DSSCOMP_SETUP_MODE_DISPLAY = (1 << 1),
246 DSSCOMP_SETUP_MODE_CAPTURE = (1 << 2),
247 DSSCOMP_SETUP_APPLY = DSSCOMP_SETUP_MODE_APPLY,
248/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
249 DSSCOMP_SETUP_DISPLAY =
250 DSSCOMP_SETUP_MODE_APPLY | DSSCOMP_SETUP_MODE_DISPLAY,
251 DSSCOMP_SETUP_CAPTURE =
252 DSSCOMP_SETUP_MODE_APPLY | DSSCOMP_SETUP_MODE_CAPTURE,
253/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
254 DSSCOMP_SETUP_DISPLAY_CAPTURE =
255 DSSCOMP_SETUP_DISPLAY | DSSCOMP_SETUP_CAPTURE,
256};
257struct dsscomp_setup_mgr_data {
258/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
259 __u32 sync_id;
260 struct dss2_rect_t win;
261 enum dsscomp_setup_mode mode;
262 __u16 num_ovls;
263/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
264 __u16 get_sync_obj;
265 struct dss2_mgr_info mgr;
266 struct dss2_ovl_info ovls[0];
267};
268/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
269struct dsscomp_check_ovl_data {
270 enum dsscomp_setup_mode mode;
271 struct dss2_mgr_info mgr;
272 struct dss2_ovl_info ovl;
273/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
274};
Iliyan Malchev55980772011-08-04 15:41:25 -0700275struct dsscomp_setup_dispc_data {
276 __u32 sync_id;
277 struct dss2_rect_t win;
278/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
279 enum dsscomp_setup_mode mode;
280 __u16 num_ovls;
281 __u16 get_sync_obj;
282 struct dss2_mgr_info mgr;
283/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
284 struct dss2_ovl_info ovls[5];
285};
Iliyan Malchev3a5d6682011-08-03 20:59:19 -0700286struct dsscomp_wb_copy_data {
287 struct dss2_ovl_info ovl, wb;
Iliyan Malchev3a5d6682011-08-03 20:59:19 -0700288/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Iliyan Malchev55980772011-08-04 15:41:25 -0700289};
Iliyan Malchev3a5d6682011-08-03 20:59:19 -0700290struct dsscomp_display_info {
291 __u32 ix;
292 __u32 overlays_available;
Iliyan Malchev3a5d6682011-08-03 20:59:19 -0700293/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Iliyan Malchev55980772011-08-04 15:41:25 -0700294 __u32 overlays_owned;
Iliyan Malchev3a5d6682011-08-03 20:59:19 -0700295 enum omap_channel channel;
296 enum omap_dss_display_state state;
297 __u8 enabled;
Iliyan Malchev3a5d6682011-08-03 20:59:19 -0700298/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Iliyan Malchev55980772011-08-04 15:41:25 -0700299 struct omap_video_timings timings;
Iliyan Malchev3a5d6682011-08-03 20:59:19 -0700300 struct s3d_disp_info s3d_info;
301 struct dss2_mgr_info mgr;
302};
Iliyan Malchev3a5d6682011-08-03 20:59:19 -0700303/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Iliyan Malchev55980772011-08-04 15:41:25 -0700304enum dsscomp_wait_phase {
Iliyan Malchev3a5d6682011-08-03 20:59:19 -0700305 DSSCOMP_WAIT_PROGRAMMED = 1,
306 DSSCOMP_WAIT_DISPLAYED,
307 DSSCOMP_WAIT_RELEASED,
Iliyan Malchev3a5d6682011-08-03 20:59:19 -0700308/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Iliyan Malchev55980772011-08-04 15:41:25 -0700309};
Iliyan Malchev3a5d6682011-08-03 20:59:19 -0700310struct dsscomp_wait_data {
311 __u32 timeout_us;
312 enum dsscomp_wait_phase phase;
Iliyan Malchev3a5d6682011-08-03 20:59:19 -0700313/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Iliyan Malchev55980772011-08-04 15:41:25 -0700314};
Iliyan Malchev3a5d6682011-08-03 20:59:19 -0700315#define DSSCOMP_SETUP_MGR _IOW('O', 128, struct dsscomp_setup_mgr_data)
316#define DSSCOMP_CHECK_OVL _IOWR('O', 129, struct dsscomp_check_ovl_data)
317#define DSSCOMP_WB_COPY _IOW('O', 130, struct dsscomp_wb_copy_data)
Iliyan Malchev3a5d6682011-08-03 20:59:19 -0700318/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Iliyan Malchev55980772011-08-04 15:41:25 -0700319#define DSSCOMP_QUERY_DISPLAY _IOWR('O', 131, struct dsscomp_display_info)
Iliyan Malchev3a5d6682011-08-03 20:59:19 -0700320#define DSSCOMP_WAIT _IOW('O', 132, struct dsscomp_wait_data)
Iliyan Malchev55980772011-08-04 15:41:25 -0700321#define DSSCOMP_SETUP_DISPC _IOW('O', 127, struct dsscomp_setup_dispc_data)
Iliyan Malchev3a5d6682011-08-03 20:59:19 -0700322#endif
Iliyan Malchev55980772011-08-04 15:41:25 -0700323/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Iliyan Malchev3a5d6682011-08-03 20:59:19 -0700324