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