blob: 753ecc413f0f4e8a863e8f786ceb49b760f02436 [file] [log] [blame]
Greg Hackmann16a2abf2012-05-29 13:14:45 -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 __S3C_FB_H__
20#define __S3C_FB_H__
21struct s3c_fb_user_window {
22 int x;
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 int y;
25};
26struct s3c_fb_user_plane_alpha {
27 int channel;
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 unsigned char red;
30 unsigned char green;
31 unsigned char blue;
32};
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34struct s3c_fb_user_chroma {
35 int enabled;
36 unsigned char red;
37 unsigned char green;
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 unsigned char blue;
40};
41struct s3c_fb_user_ion_client {
42 int fd;
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 int offset;
45};
46enum s3c_fb_pixel_format {
47 S3C_FB_PIXEL_FORMAT_RGBA_8888 = 0,
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Greg Hackmann8a249a32012-06-27 11:52:53 -070049 S3C_FB_PIXEL_FORMAT_RGBX_8888 = 1,
50 S3C_FB_PIXEL_FORMAT_RGBA_5551 = 2,
Sanghee Kim05cbd792012-09-14 23:58:28 -070051 S3C_FB_PIXEL_FORMAT_RGB_565 = 3,
Greg Hackmann9eb2a022012-09-26 09:37:12 -070052 S3C_FB_PIXEL_FORMAT_BGRA_8888 = 4,
Greg Hackmann16a2abf2012-05-29 13:14:45 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Greg Hackmann9eb2a022012-09-26 09:37:12 -070054 S3C_FB_PIXEL_FORMAT_MAX = 5,
55};
Greg Hackmann93cc5e72012-08-03 13:29:33 -070056enum s3c_fb_blending {
57 S3C_FB_BLENDING_NONE = 0,
Greg Hackmann9eb2a022012-09-26 09:37:12 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Greg Hackmann93cc5e72012-08-03 13:29:33 -070059 S3C_FB_BLENDING_PREMULT = 1,
60 S3C_FB_BLENDING_COVERAGE = 2,
Greg Hackmann93cc5e72012-08-03 13:29:33 -070061 S3C_FB_BLENDING_MAX = 3,
Greg Hackmann16a2abf2012-05-29 13:14:45 -070062};
Greg Hackmann9eb2a022012-09-26 09:37:12 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Greg Hackmann16a2abf2012-05-29 13:14:45 -070064struct s3c_fb_win_config {
Greg Hackmann16a2abf2012-05-29 13:14:45 -070065 enum {
Greg Hackmann93cc5e72012-08-03 13:29:33 -070066 S3C_FB_WIN_STATE_DISABLED = 0,
Greg Hackmann16a2abf2012-05-29 13:14:45 -070067 S3C_FB_WIN_STATE_COLOR,
Greg Hackmann9eb2a022012-09-26 09:37:12 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Greg Hackmann16a2abf2012-05-29 13:14:45 -070069 S3C_FB_WIN_STATE_BUFFER,
Greg Hackmann16a2abf2012-05-29 13:14:45 -070070 } state;
Greg Hackmann93cc5e72012-08-03 13:29:33 -070071 union {
Greg Hackmann16a2abf2012-05-29 13:14:45 -070072 __u32 color;
Greg Hackmann9eb2a022012-09-26 09:37:12 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Greg Hackmann16a2abf2012-05-29 13:14:45 -070074 struct {
Greg Hackmann16a2abf2012-05-29 13:14:45 -070075 int fd;
Greg Hackmann93cc5e72012-08-03 13:29:33 -070076 __u32 offset;
Greg Hackmann8a249a32012-06-27 11:52:53 -070077 __u32 stride;
Greg Hackmann9eb2a022012-09-26 09:37:12 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Greg Hackmann8a249a32012-06-27 11:52:53 -070079 enum s3c_fb_pixel_format format;
Greg Hackmann93cc5e72012-08-03 13:29:33 -070080 enum s3c_fb_blending blending;
Greg Hackmannbb3bd9e2012-09-18 13:10:33 -070081 int fence_fd;
Greg Hackmann93cc5e72012-08-03 13:29:33 -070082 };
Greg Hackmann9eb2a022012-09-26 09:37:12 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Greg Hackmann93cc5e72012-08-03 13:29:33 -070084 };
Greg Hackmann8a249a32012-06-27 11:52:53 -070085 int x;
Greg Hackmannbb3bd9e2012-09-18 13:10:33 -070086 int y;
Greg Hackmann16a2abf2012-05-29 13:14:45 -070087 __u32 w;
Greg Hackmann9eb2a022012-09-26 09:37:12 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Greg Hackmann16a2abf2012-05-29 13:14:45 -070089 __u32 h;
Greg Hackmann16a2abf2012-05-29 13:14:45 -070090};
Greg Hackmannbb3bd9e2012-09-18 13:10:33 -070091#define S3C_FB_MAX_WIN (5)
Greg Hackmann16a2abf2012-05-29 13:14:45 -070092struct s3c_fb_win_config_data {
Greg Hackmann9eb2a022012-09-26 09:37:12 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Greg Hackmann16a2abf2012-05-29 13:14:45 -070094 int fence;
95 struct s3c_fb_win_config config[S3C_FB_MAX_WIN];
Greg Hackmannbb3bd9e2012-09-18 13:10:33 -070096};
Greg Hackmann16a2abf2012-05-29 13:14:45 -070097#define S3CFB_WIN_POSITION _IOW('F', 203, struct s3c_fb_user_window)
Greg Hackmann9eb2a022012-09-26 09:37:12 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Greg Hackmann16a2abf2012-05-29 13:14:45 -070099#define S3CFB_WIN_SET_PLANE_ALPHA _IOW('F', 204, struct s3c_fb_user_plane_alpha)
100#define S3CFB_WIN_SET_CHROMA _IOW('F', 205, struct s3c_fb_user_chroma)
Greg Hackmannbb3bd9e2012-09-18 13:10:33 -0700101#define S3CFB_SET_VSYNC_INT _IOW('F', 206, __u32)
Greg Hackmann16a2abf2012-05-29 13:14:45 -0700102#define S3CFB_GET_ION_USER_HANDLE _IOWR('F', 208, struct s3c_fb_user_ion_client)
Greg Hackmann9eb2a022012-09-26 09:37:12 -0700103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Greg Hackmann16a2abf2012-05-29 13:14:45 -0700104#define S3CFB_WIN_CONFIG _IOW('F', 209, struct s3c_fb_win_config_data)
Greg Hackmann16a2abf2012-05-29 13:14:45 -0700105#endif
Greg Hackmann16a2abf2012-05-29 13:14:45 -0700106