📄 tw2834.h
字号:
/* * tw2834.h The constant parameters for TW2834 version 0.0.1 * * Copyright (c) 2006 Guangzhou Jinpeng Group Co., Ltd. * All rights reserved. * David Huang<huangym@gzjp.cn> * This source code and any compilation or derivative thereof is the proprietary * information of Guangzhou Jinpeng Group and is confidential in nature. Under no * circumstances is this software to be exposed to or placed under an Open Source * License of any type without the express written permission of Guangzhou * Jinpeng Group. * *//*Rev Date Author Comments-------------------------------------------------------------------------------- 1 200601023 huangym Original--------------------------------------------------------------------------------*/#ifndef TW2834_H #define TW2834_H #include <linux/ioctl.h> /* video standard */ #define PAL_STD 0 #define NTSC_STD 1/* ioctl params */ #define SET_STANDARD 2 #define SET_BRIGHTNESS 3 #define SET_CONTRAST 4 #define SET_HUE 5 #define SET_SATURATION 6 #define SET_REGISTER 7 #define SET_FULLSCREEN 8 #define SET_PREVIEW 9 #define SET_CLOSE_PREVIEW 10 #define SET_DEFAULT 11 #define SET_SPLIT 12 #define GET_VIDEO_SIGNAL 13 #define GET_STANDARD 14 #define SET_ALL_CHANNEL_DISABLE 15 #define GET_CHIP_NUMBER 16 #define SET_REG 17#define GET_REG 20 #define TW2834_MAJOR 0 //if 0 alloc_chrdev; or register_chrdev #define TW2834_NR_DEVS 4 #define TW2834_DATA_SIZE 16struct tw2834_dev { char data[TW2834_DATA_SIZE]; unsigned long size; struct semaphore sem; struct cdev cdev; unsigned char addr; }; #endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -