📄 em8300_main.c
字号:
/* em8300.c - EM8300 MPEG-2 decoder device driver Copyright (C) 2000 Henrik Johansson <henrikjo@post.utfors.se> 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>#include <linux/delay.h>#include <linux/init.h>#include <linux/errno.h>#include <linux/fs.h>#include <linux/kernel.h>#include <linux/major.h>#include <linux/slab.h>#include <linux/vmalloc.h>#include <linux/mm.h>#include <linux/pci.h>#include <linux/sound.h>#include <linux/signal.h>#include <linux/string.h>#include <linux/time.h>#include <asm/io.h>#include <asm/pgtable.h>#include <asm/page.h>#include <linux/sched.h>#include <asm/segment.h>#include <asm/mtrr.h>#include <linux/version.h>#include <asm/uaccess.h>#include <linux/i2c-algo-bit.h>#include "encoder.h"#include "em8300_reg.h"#include <linux/em8300.h>#include "em8300_fifo.h"#ifndef I2C_BITBANGING#error "This needs the I2C Bit Banging Interface in your Kernel"#endifMODULE_AUTHOR("Henrik Johansson <henrikjo@post.utfors.se>");MODULE_DESCRIPTION("EM8300 MPEG-2 decoder");#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,0)MODULE_PARM(remap,"1-" __MODULE_STRING(EM8300_MAX) "i");#endif#ifdef MODULE#if LINUX_VERSION_CODE > KERNEL_VERSION(2,4,9)MODULE_LICENSE("GPL");#endif#endifstatic unsigned int use_bt865[EM8300_MAX]={};MODULE_PARM(use_bt865,"1-" __MODULE_STRING(EM8300_MAX) "i");/* * Module params by Jonas Birm
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -