blob: 6a71994ba91ad84cbd96c71b78eebfcd7021fb01 [file] [log] [blame]
Christopher Ferris05d08e92016-02-04 13:16:38 -08001/****************************************************************************
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 AM437X_VPFE_USER_H
20#define AM437X_VPFE_USER_H
21#include <linux/videodev2.h>
22enum vpfe_ccdc_data_size {
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 VPFE_CCDC_DATA_16BITS = 0,
25 VPFE_CCDC_DATA_15BITS,
26 VPFE_CCDC_DATA_14BITS,
27 VPFE_CCDC_DATA_13BITS,
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 VPFE_CCDC_DATA_12BITS,
30 VPFE_CCDC_DATA_11BITS,
31 VPFE_CCDC_DATA_10BITS,
32 VPFE_CCDC_DATA_8BITS,
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34};
35enum vpfe_ccdc_sample_length {
36 VPFE_CCDC_SAMPLE_1PIXELS = 0,
37 VPFE_CCDC_SAMPLE_2PIXELS,
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 VPFE_CCDC_SAMPLE_4PIXELS,
40 VPFE_CCDC_SAMPLE_8PIXELS,
41 VPFE_CCDC_SAMPLE_16PIXELS,
42};
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44enum vpfe_ccdc_sample_line {
45 VPFE_CCDC_SAMPLE_1LINES = 0,
46 VPFE_CCDC_SAMPLE_2LINES,
47 VPFE_CCDC_SAMPLE_4LINES,
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 VPFE_CCDC_SAMPLE_8LINES,
50 VPFE_CCDC_SAMPLE_16LINES,
51};
52enum vpfe_ccdc_gamma_width {
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 VPFE_CCDC_GAMMA_BITS_15_6 = 0,
55 VPFE_CCDC_GAMMA_BITS_14_5,
56 VPFE_CCDC_GAMMA_BITS_13_4,
57 VPFE_CCDC_GAMMA_BITS_12_3,
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59 VPFE_CCDC_GAMMA_BITS_11_2,
60 VPFE_CCDC_GAMMA_BITS_10_1,
61 VPFE_CCDC_GAMMA_BITS_09_0,
62};
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64struct vpfe_ccdc_a_law {
65 unsigned char enable;
66 enum vpfe_ccdc_gamma_width gamma_wd;
67};
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69struct vpfe_ccdc_black_clamp {
70 unsigned char enable;
71 enum vpfe_ccdc_sample_length sample_pixel;
72 enum vpfe_ccdc_sample_line sample_ln;
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74 unsigned short start_pixel;
75 unsigned short sgain;
76 unsigned short dc_sub;
77};
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79struct vpfe_ccdc_black_compensation {
80 char r;
81 char gr;
82 char b;
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84 char gb;
85};
86struct vpfe_ccdc_config_params_raw {
87 enum vpfe_ccdc_data_size data_sz;
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89 struct vpfe_ccdc_a_law alaw;
90 struct vpfe_ccdc_black_clamp blk_clamp;
91 struct vpfe_ccdc_black_compensation blk_comp;
92};
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94#define VIDIOC_AM437X_CCDC_CFG _IOW('V', BASE_VIDIOC_PRIVATE + 1, void *)
95#endif