saa7146_core.c

来自「linux TV 源码」· C语言 代码 · 共 51 行

C
51
字号
/*    saa7146_core.c - core-functions + i2c driver for the saa7146 by    Philips Semiconductors.        Copyright (C) 1998,1999 Michael Hunold <michael@mihu.de>    This program is free software; you can redistribute it and/or modify    it under the terms of the GNU General Public License as published by    the Free Software Foundation; either version 2 of the License, or    (at your option) any later version.    This program is distributed in the hope that it will be useful,    but WITHOUT ANY WARRANTY; without even the implied warranty of    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    GNU General Public License for more details.    You should have received a copy of the GNU General Public License    along with this program; if not, write to the Free Software    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */#include <linux/module.h>	/* for module-version */#include <linux/delay.h>	/* for delay-stuff */#include <linux/slab.h>		/* for kmalloc/kfree */#include <linux/pci.h>		/* for pci-config-stuff, vendor ids etc. */#include <linux/wrapper.h>	/* for mem_map_reserve */#include <linux/init.h>#include <asm/io.h>		/* for accessing the pci-device */#include <linux/vmalloc.h>#include <linux/mm.h>#include "saa7146_defs.h"#include "saa7146_core.h"#include "saa7146_v4l.h"#include "av7110.h"#include "compat.h"#include "dvb_i2c.h"/* insmod parameter: here you can specify the number of video-buffers   to be allocated. for simple capturing 2 buffers (double-buffering)   should suffice. but if you plan to do 25fps grabbing, you should   set this to 4(=maximum), in order to be able to catch up from   temporarily delays */static int buffers = 2;/* insmod parameter: allows you to specify the pci latency timer.   Value 0 (default) means 'do not change'. */static int latency = 0;/* insmod parameter: some programs (e.g. 磛ic

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?