~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/uapi/linux/am437x-vpfe.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/uapi/linux/am437x-vpfe.h (Architecture sparc64) and /include/uapi/linux/am437x-vpfe.h (Architecture ppc)


  1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux      1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2 /*                                                  2 /*
  3  * Copyright (C) 2013 - 2014 Texas Instruments      3  * Copyright (C) 2013 - 2014 Texas Instruments, Inc.
  4  *                                                  4  *
  5  * Benoit Parrot <bparrot@ti.com>                   5  * Benoit Parrot <bparrot@ti.com>
  6  * Lad, Prabhakar <prabhakar.csengg@gmail.com>      6  * Lad, Prabhakar <prabhakar.csengg@gmail.com>
  7  *                                                  7  *
  8  * This program is free software; you may redi      8  * This program is free software; you may redistribute it and/or modify
  9  * it under the terms of the GNU General Publi      9  * it under the terms of the GNU General Public License as published by
 10  * the Free Software Foundation; version 2 of      10  * the Free Software Foundation; version 2 of the License.
 11  *                                                 11  *
 12  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT W     12  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 13  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMIT     13  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 14  * MERCHANTABILITY, FITNESS FOR A PARTICULAR P     14  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 15  * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTH     15  * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
 16  * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER L     16  * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 17  * ACTION OF CONTRACT, TORT OR OTHERWISE, ARIS     17  * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 18  * CONNECTION WITH THE SOFTWARE OR THE USE OR      18  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 19  * SOFTWARE.                                       19  * SOFTWARE.
 20  */                                                20  */
 21                                                    21 
 22 #ifndef AM437X_VPFE_USER_H                         22 #ifndef AM437X_VPFE_USER_H
 23 #define AM437X_VPFE_USER_H                         23 #define AM437X_VPFE_USER_H
 24                                                    24 
 25 #include <linux/videodev2.h>                       25 #include <linux/videodev2.h>
 26                                                    26 
 27 enum vpfe_ccdc_data_size {                         27 enum vpfe_ccdc_data_size {
 28         VPFE_CCDC_DATA_16BITS = 0,                 28         VPFE_CCDC_DATA_16BITS = 0,
 29         VPFE_CCDC_DATA_15BITS,                     29         VPFE_CCDC_DATA_15BITS,
 30         VPFE_CCDC_DATA_14BITS,                     30         VPFE_CCDC_DATA_14BITS,
 31         VPFE_CCDC_DATA_13BITS,                     31         VPFE_CCDC_DATA_13BITS,
 32         VPFE_CCDC_DATA_12BITS,                     32         VPFE_CCDC_DATA_12BITS,
 33         VPFE_CCDC_DATA_11BITS,                     33         VPFE_CCDC_DATA_11BITS,
 34         VPFE_CCDC_DATA_10BITS,                     34         VPFE_CCDC_DATA_10BITS,
 35         VPFE_CCDC_DATA_8BITS,                      35         VPFE_CCDC_DATA_8BITS,
 36 };                                                 36 };
 37                                                    37 
 38 /* enum for No of pixel per line to be avg. in     38 /* enum for No of pixel per line to be avg. in Black Clamping*/
 39 enum vpfe_ccdc_sample_length {                     39 enum vpfe_ccdc_sample_length {
 40         VPFE_CCDC_SAMPLE_1PIXELS = 0,              40         VPFE_CCDC_SAMPLE_1PIXELS = 0,
 41         VPFE_CCDC_SAMPLE_2PIXELS,                  41         VPFE_CCDC_SAMPLE_2PIXELS,
 42         VPFE_CCDC_SAMPLE_4PIXELS,                  42         VPFE_CCDC_SAMPLE_4PIXELS,
 43         VPFE_CCDC_SAMPLE_8PIXELS,                  43         VPFE_CCDC_SAMPLE_8PIXELS,
 44         VPFE_CCDC_SAMPLE_16PIXELS,                 44         VPFE_CCDC_SAMPLE_16PIXELS,
 45 };                                                 45 };
 46                                                    46 
 47 /* enum for No of lines in Black Clamping */       47 /* enum for No of lines in Black Clamping */
 48 enum vpfe_ccdc_sample_line {                       48 enum vpfe_ccdc_sample_line {
 49         VPFE_CCDC_SAMPLE_1LINES = 0,               49         VPFE_CCDC_SAMPLE_1LINES = 0,
 50         VPFE_CCDC_SAMPLE_2LINES,                   50         VPFE_CCDC_SAMPLE_2LINES,
 51         VPFE_CCDC_SAMPLE_4LINES,                   51         VPFE_CCDC_SAMPLE_4LINES,
 52         VPFE_CCDC_SAMPLE_8LINES,                   52         VPFE_CCDC_SAMPLE_8LINES,
 53         VPFE_CCDC_SAMPLE_16LINES,                  53         VPFE_CCDC_SAMPLE_16LINES,
 54 };                                                 54 };
 55                                                    55 
 56 /* enum for Alaw gamma width */                    56 /* enum for Alaw gamma width */
 57 enum vpfe_ccdc_gamma_width {                       57 enum vpfe_ccdc_gamma_width {
 58         VPFE_CCDC_GAMMA_BITS_15_6 = 0,  /* use     58         VPFE_CCDC_GAMMA_BITS_15_6 = 0,  /* use bits 15-6 for gamma */
 59         VPFE_CCDC_GAMMA_BITS_14_5,                 59         VPFE_CCDC_GAMMA_BITS_14_5,
 60         VPFE_CCDC_GAMMA_BITS_13_4,                 60         VPFE_CCDC_GAMMA_BITS_13_4,
 61         VPFE_CCDC_GAMMA_BITS_12_3,                 61         VPFE_CCDC_GAMMA_BITS_12_3,
 62         VPFE_CCDC_GAMMA_BITS_11_2,                 62         VPFE_CCDC_GAMMA_BITS_11_2,
 63         VPFE_CCDC_GAMMA_BITS_10_1,                 63         VPFE_CCDC_GAMMA_BITS_10_1,
 64         VPFE_CCDC_GAMMA_BITS_09_0,      /* use     64         VPFE_CCDC_GAMMA_BITS_09_0,      /* use bits 9-0 for gamma */
 65 };                                                 65 };
 66                                                    66 
 67 /* structure for ALaw */                           67 /* structure for ALaw */
 68 struct vpfe_ccdc_a_law {                           68 struct vpfe_ccdc_a_law {
 69         /* Enable/disable A-Law */                 69         /* Enable/disable A-Law */
 70         unsigned char enable;                      70         unsigned char enable;
 71         /* Gamma Width Input */                    71         /* Gamma Width Input */
 72         enum vpfe_ccdc_gamma_width gamma_wd;       72         enum vpfe_ccdc_gamma_width gamma_wd;
 73 };                                                 73 };
 74                                                    74 
 75 /* structure for Black Clamping */                 75 /* structure for Black Clamping */
 76 struct vpfe_ccdc_black_clamp {                     76 struct vpfe_ccdc_black_clamp {
 77         unsigned char enable;                      77         unsigned char enable;
 78         /* only if bClampEnable is TRUE */         78         /* only if bClampEnable is TRUE */
 79         enum vpfe_ccdc_sample_length sample_pi     79         enum vpfe_ccdc_sample_length sample_pixel;
 80         /* only if bClampEnable is TRUE */         80         /* only if bClampEnable is TRUE */
 81         enum vpfe_ccdc_sample_line sample_ln;      81         enum vpfe_ccdc_sample_line sample_ln;
 82         /* only if bClampEnable is TRUE */         82         /* only if bClampEnable is TRUE */
 83         unsigned short start_pixel;                83         unsigned short start_pixel;
 84         /* only if bClampEnable is TRUE */         84         /* only if bClampEnable is TRUE */
 85         unsigned short sgain;                      85         unsigned short sgain;
 86         /* only if bClampEnable is FALSE */        86         /* only if bClampEnable is FALSE */
 87         unsigned short dc_sub;                     87         unsigned short dc_sub;
 88 };                                                 88 };
 89                                                    89 
 90 /* structure for Black Level Compensation */       90 /* structure for Black Level Compensation */
 91 struct vpfe_ccdc_black_compensation {              91 struct vpfe_ccdc_black_compensation {
 92         /* Constant value to subtract from Red     92         /* Constant value to subtract from Red component */
 93         char r;                                    93         char r;
 94         /* Constant value to subtract from Gr      94         /* Constant value to subtract from Gr component */
 95         char gr;                                   95         char gr;
 96         /* Constant value to subtract from Blu     96         /* Constant value to subtract from Blue component */
 97         char b;                                    97         char b;
 98         /* Constant value to subtract from Gb      98         /* Constant value to subtract from Gb component */
 99         char gb;                                   99         char gb;
100 };                                                100 };
101                                                   101 
102 /* Structure for CCDC configuration parameters    102 /* Structure for CCDC configuration parameters for raw capture mode passed
103  * by application                                 103  * by application
104  */                                               104  */
105 struct vpfe_ccdc_config_params_raw {              105 struct vpfe_ccdc_config_params_raw {
106         /* data size value from 8 to 16 bits *    106         /* data size value from 8 to 16 bits */
107         enum vpfe_ccdc_data_size data_sz;         107         enum vpfe_ccdc_data_size data_sz;
108         /* Structure for Optional A-Law */        108         /* Structure for Optional A-Law */
109         struct vpfe_ccdc_a_law alaw;              109         struct vpfe_ccdc_a_law alaw;
110         /* Structure for Optical Black Clamp *    110         /* Structure for Optical Black Clamp */
111         struct vpfe_ccdc_black_clamp blk_clamp    111         struct vpfe_ccdc_black_clamp blk_clamp;
112         /* Structure for Black Compensation */    112         /* Structure for Black Compensation */
113         struct vpfe_ccdc_black_compensation bl    113         struct vpfe_ccdc_black_compensation blk_comp;
114 };                                                114 };
115                                                   115 
116 /*                                                116 /*
117  *  Private IOCTL                                 117  *  Private IOCTL
118  * VIDIOC_AM437X_CCDC_CFG - Set CCDC configura    118  * VIDIOC_AM437X_CCDC_CFG - Set CCDC configuration for raw capture
119  * This is an experimental ioctl that will cha    119  * This is an experimental ioctl that will change in future kernels. So use
120  * this ioctl with care !                         120  * this ioctl with care !
121  **/                                              121  **/
122 #define VIDIOC_AM437X_CCDC_CFG \                  122 #define VIDIOC_AM437X_CCDC_CFG \
123         _IOW('V', BASE_VIDIOC_PRIVATE + 1, voi    123         _IOW('V', BASE_VIDIOC_PRIVATE + 1, void *)
124                                                   124 
125 #endif          /* AM437X_VPFE_USER_H */          125 #endif          /* AM437X_VPFE_USER_H */
126                                                   126 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php