Greg Hackmann | 16a2abf | 2012-05-29 13:14:45 -0700 | [diff] [blame] | 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 __S3C_FB_H__ |
| 20 | #define __S3C_FB_H__ |
| 21 | struct s3c_fb_user_window { |
| 22 | int x; |
| 23 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 24 | int y; |
| 25 | }; |
| 26 | struct 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 */ |
| 34 | struct 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 | }; |
| 41 | struct s3c_fb_user_ion_client { |
| 42 | int fd; |
| 43 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 44 | int offset; |
| 45 | }; |
| 46 | enum 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 Hackmann | 8a249a3 | 2012-06-27 11:52:53 -0700 | [diff] [blame] | 49 | S3C_FB_PIXEL_FORMAT_RGBX_8888 = 1, |
| 50 | S3C_FB_PIXEL_FORMAT_RGBA_5551 = 2, |
Sanghee Kim | 05cbd79 | 2012-09-14 23:58:28 -0700 | [diff] [blame] | 51 | S3C_FB_PIXEL_FORMAT_RGB_565 = 3, |
Greg Hackmann | 9eb2a02 | 2012-09-26 09:37:12 -0700 | [diff] [blame^] | 52 | S3C_FB_PIXEL_FORMAT_BGRA_8888 = 4, |
Greg Hackmann | 16a2abf | 2012-05-29 13:14:45 -0700 | [diff] [blame] | 53 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Greg Hackmann | 9eb2a02 | 2012-09-26 09:37:12 -0700 | [diff] [blame^] | 54 | S3C_FB_PIXEL_FORMAT_MAX = 5, |
| 55 | }; |
Greg Hackmann | 93cc5e7 | 2012-08-03 13:29:33 -0700 | [diff] [blame] | 56 | enum s3c_fb_blending { |
| 57 | S3C_FB_BLENDING_NONE = 0, |
Greg Hackmann | 9eb2a02 | 2012-09-26 09:37:12 -0700 | [diff] [blame^] | 58 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Greg Hackmann | 93cc5e7 | 2012-08-03 13:29:33 -0700 | [diff] [blame] | 59 | S3C_FB_BLENDING_PREMULT = 1, |
| 60 | S3C_FB_BLENDING_COVERAGE = 2, |
Greg Hackmann | 93cc5e7 | 2012-08-03 13:29:33 -0700 | [diff] [blame] | 61 | S3C_FB_BLENDING_MAX = 3, |
Greg Hackmann | 16a2abf | 2012-05-29 13:14:45 -0700 | [diff] [blame] | 62 | }; |
Greg Hackmann | 9eb2a02 | 2012-09-26 09:37:12 -0700 | [diff] [blame^] | 63 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Greg Hackmann | 16a2abf | 2012-05-29 13:14:45 -0700 | [diff] [blame] | 64 | struct s3c_fb_win_config { |
Greg Hackmann | 16a2abf | 2012-05-29 13:14:45 -0700 | [diff] [blame] | 65 | enum { |
Greg Hackmann | 93cc5e7 | 2012-08-03 13:29:33 -0700 | [diff] [blame] | 66 | S3C_FB_WIN_STATE_DISABLED = 0, |
Greg Hackmann | 16a2abf | 2012-05-29 13:14:45 -0700 | [diff] [blame] | 67 | S3C_FB_WIN_STATE_COLOR, |
Greg Hackmann | 9eb2a02 | 2012-09-26 09:37:12 -0700 | [diff] [blame^] | 68 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Greg Hackmann | 16a2abf | 2012-05-29 13:14:45 -0700 | [diff] [blame] | 69 | S3C_FB_WIN_STATE_BUFFER, |
Greg Hackmann | 16a2abf | 2012-05-29 13:14:45 -0700 | [diff] [blame] | 70 | } state; |
Greg Hackmann | 93cc5e7 | 2012-08-03 13:29:33 -0700 | [diff] [blame] | 71 | union { |
Greg Hackmann | 16a2abf | 2012-05-29 13:14:45 -0700 | [diff] [blame] | 72 | __u32 color; |
Greg Hackmann | 9eb2a02 | 2012-09-26 09:37:12 -0700 | [diff] [blame^] | 73 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Greg Hackmann | 16a2abf | 2012-05-29 13:14:45 -0700 | [diff] [blame] | 74 | struct { |
Greg Hackmann | 16a2abf | 2012-05-29 13:14:45 -0700 | [diff] [blame] | 75 | int fd; |
Greg Hackmann | 93cc5e7 | 2012-08-03 13:29:33 -0700 | [diff] [blame] | 76 | __u32 offset; |
Greg Hackmann | 8a249a3 | 2012-06-27 11:52:53 -0700 | [diff] [blame] | 77 | __u32 stride; |
Greg Hackmann | 9eb2a02 | 2012-09-26 09:37:12 -0700 | [diff] [blame^] | 78 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Greg Hackmann | 8a249a3 | 2012-06-27 11:52:53 -0700 | [diff] [blame] | 79 | enum s3c_fb_pixel_format format; |
Greg Hackmann | 93cc5e7 | 2012-08-03 13:29:33 -0700 | [diff] [blame] | 80 | enum s3c_fb_blending blending; |
Greg Hackmann | bb3bd9e | 2012-09-18 13:10:33 -0700 | [diff] [blame] | 81 | int fence_fd; |
Greg Hackmann | 93cc5e7 | 2012-08-03 13:29:33 -0700 | [diff] [blame] | 82 | }; |
Greg Hackmann | 9eb2a02 | 2012-09-26 09:37:12 -0700 | [diff] [blame^] | 83 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Greg Hackmann | 93cc5e7 | 2012-08-03 13:29:33 -0700 | [diff] [blame] | 84 | }; |
Greg Hackmann | 8a249a3 | 2012-06-27 11:52:53 -0700 | [diff] [blame] | 85 | int x; |
Greg Hackmann | bb3bd9e | 2012-09-18 13:10:33 -0700 | [diff] [blame] | 86 | int y; |
Greg Hackmann | 16a2abf | 2012-05-29 13:14:45 -0700 | [diff] [blame] | 87 | __u32 w; |
Greg Hackmann | 9eb2a02 | 2012-09-26 09:37:12 -0700 | [diff] [blame^] | 88 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Greg Hackmann | 16a2abf | 2012-05-29 13:14:45 -0700 | [diff] [blame] | 89 | __u32 h; |
Greg Hackmann | 16a2abf | 2012-05-29 13:14:45 -0700 | [diff] [blame] | 90 | }; |
Greg Hackmann | bb3bd9e | 2012-09-18 13:10:33 -0700 | [diff] [blame] | 91 | #define S3C_FB_MAX_WIN (5) |
Greg Hackmann | 16a2abf | 2012-05-29 13:14:45 -0700 | [diff] [blame] | 92 | struct s3c_fb_win_config_data { |
Greg Hackmann | 9eb2a02 | 2012-09-26 09:37:12 -0700 | [diff] [blame^] | 93 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Greg Hackmann | 16a2abf | 2012-05-29 13:14:45 -0700 | [diff] [blame] | 94 | int fence; |
| 95 | struct s3c_fb_win_config config[S3C_FB_MAX_WIN]; |
Greg Hackmann | bb3bd9e | 2012-09-18 13:10:33 -0700 | [diff] [blame] | 96 | }; |
Greg Hackmann | 16a2abf | 2012-05-29 13:14:45 -0700 | [diff] [blame] | 97 | #define S3CFB_WIN_POSITION _IOW('F', 203, struct s3c_fb_user_window) |
Greg Hackmann | 9eb2a02 | 2012-09-26 09:37:12 -0700 | [diff] [blame^] | 98 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Greg Hackmann | 16a2abf | 2012-05-29 13:14:45 -0700 | [diff] [blame] | 99 | #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 Hackmann | bb3bd9e | 2012-09-18 13:10:33 -0700 | [diff] [blame] | 101 | #define S3CFB_SET_VSYNC_INT _IOW('F', 206, __u32) |
Greg Hackmann | 16a2abf | 2012-05-29 13:14:45 -0700 | [diff] [blame] | 102 | #define S3CFB_GET_ION_USER_HANDLE _IOWR('F', 208, struct s3c_fb_user_ion_client) |
Greg Hackmann | 9eb2a02 | 2012-09-26 09:37:12 -0700 | [diff] [blame^] | 103 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Greg Hackmann | 16a2abf | 2012-05-29 13:14:45 -0700 | [diff] [blame] | 104 | #define S3CFB_WIN_CONFIG _IOW('F', 209, struct s3c_fb_win_config_data) |
Greg Hackmann | 16a2abf | 2012-05-29 13:14:45 -0700 | [diff] [blame] | 105 | #endif |
Greg Hackmann | 16a2abf | 2012-05-29 13:14:45 -0700 | [diff] [blame] | 106 | |