Path: blob/master/drivers/media/video/cpia2/cpia2dev.h
17392 views
/****************************************************************************1*2* Filename: cpia2dev.h3*4* Copyright 2001, STMicrolectronics, Inc.5*6* Contact: [email protected]7*8* Description:9* This file provides definitions for applications wanting to use the10* cpia2 driver beyond the generic v4l capabilities.11*12* This program is free software; you can redistribute it and/or modify13* it under the terms of the GNU General Public License as published by14* the Free Software Foundation; either version 2 of the License, or15* (at your option) any later version.16*17* This program is distributed in the hope that it will be useful,18* but WITHOUT ANY WARRANTY; without even the implied warranty of19* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the20* GNU General Public License for more details.21*22* You should have received a copy of the GNU General Public License23* along with this program; if not, write to the Free Software24* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.25*26****************************************************************************/2728#ifndef CPIA2_DEV_HEADER29#define CPIA2_DEV_HEADER3031#include <linux/videodev2.h>3233/***34* The following defines are ioctl numbers based on video4linux private ioctls,35* which can range from 192 (BASE_VIDIOCPRIVATE) to 255. All of these take int36* args37*/38#define CPIA2_IOC_SET_GPIO _IOW('v', BASE_VIDIOC_PRIVATE + 17, __u32)3940/* V4L2 driver specific controls */41#define CPIA2_CID_TARGET_KB (V4L2_CID_PRIVATE_BASE+0)42#define CPIA2_CID_GPIO (V4L2_CID_PRIVATE_BASE+1)43#define CPIA2_CID_FLICKER_MODE (V4L2_CID_PRIVATE_BASE+2)44#define CPIA2_CID_FRAMERATE (V4L2_CID_PRIVATE_BASE+3)45#define CPIA2_CID_USB_ALT (V4L2_CID_PRIVATE_BASE+4)46#define CPIA2_CID_LIGHTS (V4L2_CID_PRIVATE_BASE+5)47#define CPIA2_CID_RESET_CAMERA (V4L2_CID_PRIVATE_BASE+6)4849#endif505152