1 /* 2 * This file is auto-generated. Modifications will be lost. 3 * 4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ 5 * for more information. 6 */ 7 #ifndef AM437X_VPFE_USER_H 8 #define AM437X_VPFE_USER_H 9 #include <linux/videodev2.h> 10 enum vpfe_ccdc_data_size { 11 VPFE_CCDC_DATA_16BITS = 0, 12 VPFE_CCDC_DATA_15BITS, 13 VPFE_CCDC_DATA_14BITS, 14 VPFE_CCDC_DATA_13BITS, 15 VPFE_CCDC_DATA_12BITS, 16 VPFE_CCDC_DATA_11BITS, 17 VPFE_CCDC_DATA_10BITS, 18 VPFE_CCDC_DATA_8BITS, 19 }; 20 enum vpfe_ccdc_sample_length { 21 VPFE_CCDC_SAMPLE_1PIXELS = 0, 22 VPFE_CCDC_SAMPLE_2PIXELS, 23 VPFE_CCDC_SAMPLE_4PIXELS, 24 VPFE_CCDC_SAMPLE_8PIXELS, 25 VPFE_CCDC_SAMPLE_16PIXELS, 26 }; 27 enum vpfe_ccdc_sample_line { 28 VPFE_CCDC_SAMPLE_1LINES = 0, 29 VPFE_CCDC_SAMPLE_2LINES, 30 VPFE_CCDC_SAMPLE_4LINES, 31 VPFE_CCDC_SAMPLE_8LINES, 32 VPFE_CCDC_SAMPLE_16LINES, 33 }; 34 enum vpfe_ccdc_gamma_width { 35 VPFE_CCDC_GAMMA_BITS_15_6 = 0, 36 VPFE_CCDC_GAMMA_BITS_14_5, 37 VPFE_CCDC_GAMMA_BITS_13_4, 38 VPFE_CCDC_GAMMA_BITS_12_3, 39 VPFE_CCDC_GAMMA_BITS_11_2, 40 VPFE_CCDC_GAMMA_BITS_10_1, 41 VPFE_CCDC_GAMMA_BITS_09_0, 42 }; 43 struct vpfe_ccdc_a_law { 44 unsigned char enable; 45 enum vpfe_ccdc_gamma_width gamma_wd; 46 }; 47 struct vpfe_ccdc_black_clamp { 48 unsigned char enable; 49 enum vpfe_ccdc_sample_length sample_pixel; 50 enum vpfe_ccdc_sample_line sample_ln; 51 unsigned short start_pixel; 52 unsigned short sgain; 53 unsigned short dc_sub; 54 }; 55 struct vpfe_ccdc_black_compensation { 56 char r; 57 char gr; 58 char b; 59 char gb; 60 }; 61 struct vpfe_ccdc_config_params_raw { 62 enum vpfe_ccdc_data_size data_sz; 63 struct vpfe_ccdc_a_law alaw; 64 struct vpfe_ccdc_black_clamp blk_clamp; 65 struct vpfe_ccdc_black_compensation blk_comp; 66 }; 67 #define VIDIOC_AM437X_CCDC_CFG _IOW('V', BASE_VIDIOC_PRIVATE + 1, void *) 68 #endif 69