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 */ 49 S3C_FB_PIXEL_FORMAT_RGBX_8888 = 1, 50 S3C_FB_PIXEL_FORMAT_RGBA_5551 = 2, 51 S3C_FB_PIXEL_FORMAT_RGB_565 = 3, 52 S3C_FB_PIXEL_FORMAT_BGRA_8888 = 4, 53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54 S3C_FB_PIXEL_FORMAT_MAX = 5, 55 }; 56 enum s3c_fb_blending { 57 S3C_FB_BLENDING_NONE = 0, 58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59 S3C_FB_BLENDING_PREMULT = 1, 60 S3C_FB_BLENDING_COVERAGE = 2, 61 S3C_FB_BLENDING_MAX = 3, 62 }; 63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64 struct s3c_fb_win_config { 65 enum { 66 S3C_FB_WIN_STATE_DISABLED = 0, 67 S3C_FB_WIN_STATE_COLOR, 68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 69 S3C_FB_WIN_STATE_BUFFER, 70 } state; 71 union { 72 __u32 color; 73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 74 struct { 75 int fd; 76 __u32 offset; 77 __u32 stride; 78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 79 enum s3c_fb_pixel_format format; 80 enum s3c_fb_blending blending; 81 int fence_fd; 82 }; 83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 84 }; 85 int x; 86 int y; 87 __u32 w; 88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 89 __u32 h; 90 }; 91 #define S3C_FB_MAX_WIN (5) 92 struct s3c_fb_win_config_data { 93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 94 int fence; 95 struct s3c_fb_win_config config[S3C_FB_MAX_WIN]; 96 }; 97 #define S3CFB_WIN_POSITION _IOW('F', 203, struct s3c_fb_user_window) 98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 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) 101 #define S3CFB_SET_VSYNC_INT _IOW('F', 206, __u32) 102 #define S3CFB_GET_ION_USER_HANDLE _IOWR('F', 208, struct s3c_fb_user_ion_client) 103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 104 #define S3CFB_WIN_CONFIG _IOW('F', 209, struct s3c_fb_win_config_data) 105 #endif 106 107