1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux << 2 /* 1 /* 3 * Xilinx Controls Header 2 * Xilinx Controls Header 4 * 3 * 5 * Copyright (C) 2013-2015 Ideas on Board 4 * Copyright (C) 2013-2015 Ideas on Board 6 * Copyright (C) 2013-2015 Xilinx, Inc. 5 * Copyright (C) 2013-2015 Xilinx, Inc. 7 * 6 * 8 * Contacts: Hyun Kwon <hyun.kwon@xilinx.com> 7 * Contacts: Hyun Kwon <hyun.kwon@xilinx.com> 9 * Laurent Pinchart <laurent.pinchar 8 * Laurent Pinchart <laurent.pinchart@ideasonboard.com> 10 * 9 * 11 * This software is licensed under the terms o 10 * This software is licensed under the terms of the GNU General Public 12 * License version 2, as published by the Free 11 * License version 2, as published by the Free Software Foundation, and 13 * may be copied, distributed, and modified un 12 * may be copied, distributed, and modified under those terms. 14 * 13 * 15 * This program is distributed in the hope tha 14 * This program is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU General Public License for more details 17 * GNU General Public License for more details. 19 */ 18 */ 20 19 21 #ifndef __UAPI_XILINX_V4L2_CONTROLS_H__ 20 #ifndef __UAPI_XILINX_V4L2_CONTROLS_H__ 22 #define __UAPI_XILINX_V4L2_CONTROLS_H__ 21 #define __UAPI_XILINX_V4L2_CONTROLS_H__ 23 22 24 #include <linux/v4l2-controls.h> 23 #include <linux/v4l2-controls.h> 25 24 26 #define V4L2_CID_XILINX_OFFSET 0xc000 25 #define V4L2_CID_XILINX_OFFSET 0xc000 27 #define V4L2_CID_XILINX_BASE (V4L2_CID_USER 26 #define V4L2_CID_XILINX_BASE (V4L2_CID_USER_BASE + V4L2_CID_XILINX_OFFSET) 28 27 29 /* 28 /* 30 * Private Controls for Xilinx Video IPs 29 * Private Controls for Xilinx Video IPs 31 */ 30 */ 32 31 33 /* 32 /* 34 * Xilinx TPG Video IP 33 * Xilinx TPG Video IP 35 */ 34 */ 36 35 37 #define V4L2_CID_XILINX_TPG 36 #define V4L2_CID_XILINX_TPG (V4L2_CID_USER_BASE + 0xc000) 38 37 39 /* Draw cross hairs */ 38 /* Draw cross hairs */ 40 #define V4L2_CID_XILINX_TPG_CROSS_HAIRS 39 #define V4L2_CID_XILINX_TPG_CROSS_HAIRS (V4L2_CID_XILINX_TPG + 1) 41 /* Enable a moving box */ 40 /* Enable a moving box */ 42 #define V4L2_CID_XILINX_TPG_MOVING_BOX 41 #define V4L2_CID_XILINX_TPG_MOVING_BOX (V4L2_CID_XILINX_TPG + 2) 43 /* Mask out a color component */ 42 /* Mask out a color component */ 44 #define V4L2_CID_XILINX_TPG_COLOR_MASK 43 #define V4L2_CID_XILINX_TPG_COLOR_MASK (V4L2_CID_XILINX_TPG + 3) 45 /* Enable a stuck pixel feature */ 44 /* Enable a stuck pixel feature */ 46 #define V4L2_CID_XILINX_TPG_STUCK_PIXEL 45 #define V4L2_CID_XILINX_TPG_STUCK_PIXEL (V4L2_CID_XILINX_TPG + 4) 47 /* Enable a noisy output */ 46 /* Enable a noisy output */ 48 #define V4L2_CID_XILINX_TPG_NOISE 47 #define V4L2_CID_XILINX_TPG_NOISE (V4L2_CID_XILINX_TPG + 5) 49 /* Enable the motion feature */ 48 /* Enable the motion feature */ 50 #define V4L2_CID_XILINX_TPG_MOTION 49 #define V4L2_CID_XILINX_TPG_MOTION (V4L2_CID_XILINX_TPG + 6) 51 /* Configure the motion speed of moving patter 50 /* Configure the motion speed of moving patterns */ 52 #define V4L2_CID_XILINX_TPG_MOTION_SPEED 51 #define V4L2_CID_XILINX_TPG_MOTION_SPEED (V4L2_CID_XILINX_TPG + 7) 53 /* The row of horizontal cross hair location * 52 /* The row of horizontal cross hair location */ 54 #define V4L2_CID_XILINX_TPG_CROSS_HAIR_ROW 53 #define V4L2_CID_XILINX_TPG_CROSS_HAIR_ROW (V4L2_CID_XILINX_TPG + 8) 55 /* The colum of vertical cross hair location * 54 /* The colum of vertical cross hair location */ 56 #define V4L2_CID_XILINX_TPG_CROSS_HAIR_COLUMN 55 #define V4L2_CID_XILINX_TPG_CROSS_HAIR_COLUMN (V4L2_CID_XILINX_TPG + 9) 57 /* Set starting point of sine wave for horizon 56 /* Set starting point of sine wave for horizontal component */ 58 #define V4L2_CID_XILINX_TPG_ZPLATE_HOR_START 57 #define V4L2_CID_XILINX_TPG_ZPLATE_HOR_START (V4L2_CID_XILINX_TPG + 10) 59 /* Set speed of the horizontal component */ 58 /* Set speed of the horizontal component */ 60 #define V4L2_CID_XILINX_TPG_ZPLATE_HOR_SPEED 59 #define V4L2_CID_XILINX_TPG_ZPLATE_HOR_SPEED (V4L2_CID_XILINX_TPG + 11) 61 /* Set starting point of sine wave for vertica 60 /* Set starting point of sine wave for vertical component */ 62 #define V4L2_CID_XILINX_TPG_ZPLATE_VER_START 61 #define V4L2_CID_XILINX_TPG_ZPLATE_VER_START (V4L2_CID_XILINX_TPG + 12) 63 /* Set speed of the vertical component */ 62 /* Set speed of the vertical component */ 64 #define V4L2_CID_XILINX_TPG_ZPLATE_VER_SPEED 63 #define V4L2_CID_XILINX_TPG_ZPLATE_VER_SPEED (V4L2_CID_XILINX_TPG + 13) 65 /* Moving box size */ 64 /* Moving box size */ 66 #define V4L2_CID_XILINX_TPG_BOX_SIZE 65 #define V4L2_CID_XILINX_TPG_BOX_SIZE (V4L2_CID_XILINX_TPG + 14) 67 /* Moving box color */ 66 /* Moving box color */ 68 #define V4L2_CID_XILINX_TPG_BOX_COLOR 67 #define V4L2_CID_XILINX_TPG_BOX_COLOR (V4L2_CID_XILINX_TPG + 15) 69 /* Upper limit count of generated stuck pixels 68 /* Upper limit count of generated stuck pixels */ 70 #define V4L2_CID_XILINX_TPG_STUCK_PIXEL_THRESH 69 #define V4L2_CID_XILINX_TPG_STUCK_PIXEL_THRESH (V4L2_CID_XILINX_TPG + 16) 71 /* Noise level */ 70 /* Noise level */ 72 #define V4L2_CID_XILINX_TPG_NOISE_GAIN 71 #define V4L2_CID_XILINX_TPG_NOISE_GAIN (V4L2_CID_XILINX_TPG + 17) 73 72 74 #endif /* __UAPI_XILINX_V4L2_CONTROLS_H__ */ 73 #endif /* __UAPI_XILINX_V4L2_CONTROLS_H__ */ 75 74
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.