105d08e9716b5974d6ed08973f44930804890b902Christopher Ferris/****************************************************************************
205d08e9716b5974d6ed08973f44930804890b902Christopher Ferris ****************************************************************************
305d08e9716b5974d6ed08973f44930804890b902Christopher Ferris ***
405d08e9716b5974d6ed08973f44930804890b902Christopher Ferris ***   This header was automatically generated from a Linux kernel header
505d08e9716b5974d6ed08973f44930804890b902Christopher Ferris ***   of the same name, to make information necessary for userspace to
605d08e9716b5974d6ed08973f44930804890b902Christopher Ferris ***   call into the kernel available to libc.  It contains only constants,
705d08e9716b5974d6ed08973f44930804890b902Christopher Ferris ***   structures, and macros generated from the original header, and thus,
805d08e9716b5974d6ed08973f44930804890b902Christopher Ferris ***   contains no copyrightable information.
905d08e9716b5974d6ed08973f44930804890b902Christopher Ferris ***
1005d08e9716b5974d6ed08973f44930804890b902Christopher Ferris ***   To edit the content of this header, modify the corresponding
1105d08e9716b5974d6ed08973f44930804890b902Christopher Ferris ***   source file (e.g. under external/kernel-headers/original/) then
1205d08e9716b5974d6ed08973f44930804890b902Christopher Ferris ***   run bionic/libc/kernel/tools/update_all.py
1305d08e9716b5974d6ed08973f44930804890b902Christopher Ferris ***
1405d08e9716b5974d6ed08973f44930804890b902Christopher Ferris ***   Any manual change here will be lost the next time this script will
1505d08e9716b5974d6ed08973f44930804890b902Christopher Ferris ***   be run. You've been warned!
1605d08e9716b5974d6ed08973f44930804890b902Christopher Ferris ***
1705d08e9716b5974d6ed08973f44930804890b902Christopher Ferris ****************************************************************************
1805d08e9716b5974d6ed08973f44930804890b902Christopher Ferris ****************************************************************************/
1905d08e9716b5974d6ed08973f44930804890b902Christopher Ferris#ifndef AM437X_VPFE_USER_H
2005d08e9716b5974d6ed08973f44930804890b902Christopher Ferris#define AM437X_VPFE_USER_H
2105d08e9716b5974d6ed08973f44930804890b902Christopher Ferris#include <linux/videodev2.h>
2205d08e9716b5974d6ed08973f44930804890b902Christopher Ferrisenum vpfe_ccdc_data_size {
2305d08e9716b5974d6ed08973f44930804890b902Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
2405d08e9716b5974d6ed08973f44930804890b902Christopher Ferris  VPFE_CCDC_DATA_16BITS = 0,
2505d08e9716b5974d6ed08973f44930804890b902Christopher Ferris  VPFE_CCDC_DATA_15BITS,
2605d08e9716b5974d6ed08973f44930804890b902Christopher Ferris  VPFE_CCDC_DATA_14BITS,
2705d08e9716b5974d6ed08973f44930804890b902Christopher Ferris  VPFE_CCDC_DATA_13BITS,
2805d08e9716b5974d6ed08973f44930804890b902Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
2905d08e9716b5974d6ed08973f44930804890b902Christopher Ferris  VPFE_CCDC_DATA_12BITS,
3005d08e9716b5974d6ed08973f44930804890b902Christopher Ferris  VPFE_CCDC_DATA_11BITS,
3105d08e9716b5974d6ed08973f44930804890b902Christopher Ferris  VPFE_CCDC_DATA_10BITS,
3205d08e9716b5974d6ed08973f44930804890b902Christopher Ferris  VPFE_CCDC_DATA_8BITS,
3305d08e9716b5974d6ed08973f44930804890b902Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
3405d08e9716b5974d6ed08973f44930804890b902Christopher Ferris};
3505d08e9716b5974d6ed08973f44930804890b902Christopher Ferrisenum vpfe_ccdc_sample_length {
3605d08e9716b5974d6ed08973f44930804890b902Christopher Ferris  VPFE_CCDC_SAMPLE_1PIXELS = 0,
3705d08e9716b5974d6ed08973f44930804890b902Christopher Ferris  VPFE_CCDC_SAMPLE_2PIXELS,
3805d08e9716b5974d6ed08973f44930804890b902Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
3905d08e9716b5974d6ed08973f44930804890b902Christopher Ferris  VPFE_CCDC_SAMPLE_4PIXELS,
4005d08e9716b5974d6ed08973f44930804890b902Christopher Ferris  VPFE_CCDC_SAMPLE_8PIXELS,
4105d08e9716b5974d6ed08973f44930804890b902Christopher Ferris  VPFE_CCDC_SAMPLE_16PIXELS,
4205d08e9716b5974d6ed08973f44930804890b902Christopher Ferris};
4305d08e9716b5974d6ed08973f44930804890b902Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
4405d08e9716b5974d6ed08973f44930804890b902Christopher Ferrisenum vpfe_ccdc_sample_line {
4505d08e9716b5974d6ed08973f44930804890b902Christopher Ferris  VPFE_CCDC_SAMPLE_1LINES = 0,
4605d08e9716b5974d6ed08973f44930804890b902Christopher Ferris  VPFE_CCDC_SAMPLE_2LINES,
4705d08e9716b5974d6ed08973f44930804890b902Christopher Ferris  VPFE_CCDC_SAMPLE_4LINES,
4805d08e9716b5974d6ed08973f44930804890b902Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
4905d08e9716b5974d6ed08973f44930804890b902Christopher Ferris  VPFE_CCDC_SAMPLE_8LINES,
5005d08e9716b5974d6ed08973f44930804890b902Christopher Ferris  VPFE_CCDC_SAMPLE_16LINES,
5105d08e9716b5974d6ed08973f44930804890b902Christopher Ferris};
5205d08e9716b5974d6ed08973f44930804890b902Christopher Ferrisenum vpfe_ccdc_gamma_width {
5305d08e9716b5974d6ed08973f44930804890b902Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
5405d08e9716b5974d6ed08973f44930804890b902Christopher Ferris  VPFE_CCDC_GAMMA_BITS_15_6 = 0,
5505d08e9716b5974d6ed08973f44930804890b902Christopher Ferris  VPFE_CCDC_GAMMA_BITS_14_5,
5605d08e9716b5974d6ed08973f44930804890b902Christopher Ferris  VPFE_CCDC_GAMMA_BITS_13_4,
5705d08e9716b5974d6ed08973f44930804890b902Christopher Ferris  VPFE_CCDC_GAMMA_BITS_12_3,
5805d08e9716b5974d6ed08973f44930804890b902Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
5905d08e9716b5974d6ed08973f44930804890b902Christopher Ferris  VPFE_CCDC_GAMMA_BITS_11_2,
6005d08e9716b5974d6ed08973f44930804890b902Christopher Ferris  VPFE_CCDC_GAMMA_BITS_10_1,
6105d08e9716b5974d6ed08973f44930804890b902Christopher Ferris  VPFE_CCDC_GAMMA_BITS_09_0,
6205d08e9716b5974d6ed08973f44930804890b902Christopher Ferris};
6305d08e9716b5974d6ed08973f44930804890b902Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
6405d08e9716b5974d6ed08973f44930804890b902Christopher Ferrisstruct vpfe_ccdc_a_law {
6505d08e9716b5974d6ed08973f44930804890b902Christopher Ferris  unsigned char enable;
6605d08e9716b5974d6ed08973f44930804890b902Christopher Ferris  enum vpfe_ccdc_gamma_width gamma_wd;
6705d08e9716b5974d6ed08973f44930804890b902Christopher Ferris};
6805d08e9716b5974d6ed08973f44930804890b902Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
6905d08e9716b5974d6ed08973f44930804890b902Christopher Ferrisstruct vpfe_ccdc_black_clamp {
7005d08e9716b5974d6ed08973f44930804890b902Christopher Ferris  unsigned char enable;
7105d08e9716b5974d6ed08973f44930804890b902Christopher Ferris  enum vpfe_ccdc_sample_length sample_pixel;
7205d08e9716b5974d6ed08973f44930804890b902Christopher Ferris  enum vpfe_ccdc_sample_line sample_ln;
7305d08e9716b5974d6ed08973f44930804890b902Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
7405d08e9716b5974d6ed08973f44930804890b902Christopher Ferris  unsigned short start_pixel;
7505d08e9716b5974d6ed08973f44930804890b902Christopher Ferris  unsigned short sgain;
7605d08e9716b5974d6ed08973f44930804890b902Christopher Ferris  unsigned short dc_sub;
7705d08e9716b5974d6ed08973f44930804890b902Christopher Ferris};
7805d08e9716b5974d6ed08973f44930804890b902Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
7905d08e9716b5974d6ed08973f44930804890b902Christopher Ferrisstruct vpfe_ccdc_black_compensation {
8005d08e9716b5974d6ed08973f44930804890b902Christopher Ferris  char r;
8105d08e9716b5974d6ed08973f44930804890b902Christopher Ferris  char gr;
8205d08e9716b5974d6ed08973f44930804890b902Christopher Ferris  char b;
8305d08e9716b5974d6ed08973f44930804890b902Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
8405d08e9716b5974d6ed08973f44930804890b902Christopher Ferris  char gb;
8505d08e9716b5974d6ed08973f44930804890b902Christopher Ferris};
8605d08e9716b5974d6ed08973f44930804890b902Christopher Ferrisstruct vpfe_ccdc_config_params_raw {
8705d08e9716b5974d6ed08973f44930804890b902Christopher Ferris  enum vpfe_ccdc_data_size data_sz;
8805d08e9716b5974d6ed08973f44930804890b902Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
8905d08e9716b5974d6ed08973f44930804890b902Christopher Ferris  struct vpfe_ccdc_a_law alaw;
9005d08e9716b5974d6ed08973f44930804890b902Christopher Ferris  struct vpfe_ccdc_black_clamp blk_clamp;
9105d08e9716b5974d6ed08973f44930804890b902Christopher Ferris  struct vpfe_ccdc_black_compensation blk_comp;
9205d08e9716b5974d6ed08973f44930804890b902Christopher Ferris};
9305d08e9716b5974d6ed08973f44930804890b902Christopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
9405d08e9716b5974d6ed08973f44930804890b902Christopher Ferris#define VIDIOC_AM437X_CCDC_CFG _IOW('V', BASE_VIDIOC_PRIVATE + 1, void *)
9505d08e9716b5974d6ed08973f44930804890b902Christopher Ferris#endif
96