⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dvb_frontend.h

📁 linux_dvb的驱动程序:linuxtv-dvb-1.1.1.rar
💻 H
字号:
/*  * dvb_frontend.h * * Copyright (C) 2001 Ralph Metzler for convergence integrated media GmbH *                    overhauled by Holger Waechtler for Convergence GmbH *                     * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation; either version 2.1 * 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 Lesser General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. * */#ifndef _DVB_FRONTEND_H_#define _DVB_FRONTEND_H_#include <linux/types.h>#include <linux/sched.h>#include <linux/ioctl.h>#include <linux/i2c.h>#include <linux/module.h>#include <linux/errno.h>#include <linux/dvb/frontend.h>#include "dvb_i2c.h"#include "dvbdev.h"/** *   when before_ioctl is registered and returns value 0, ioctl and after_ioctl *   are not executed. */struct dvb_frontend {	int (*before_ioctl) (struct dvb_frontend *frontend, unsigned int cmd, void *arg);	int (*ioctl) (struct dvb_frontend *frontend, unsigned int cmd, void *arg);	int (*after_ioctl) (struct dvb_frontend *frontend, unsigned int cmd, void *arg);	void (*notifier_callback) (fe_status_t s, void *data);	struct dvb_i2c_bus *i2c;	void *before_after_data;   /*  can be used by hardware module... */	void *notifier_data;       /*  can be used by hardware module... */	void *data;                /*  can be used by hardware module... */};/** *   private frontend command ioctl's. *   keep them in sync with the public ones defined in linux/dvb/frontend.h */#define FE_SLEEP              _IO('v', 80)#define FE_INIT               _IO('v', 81)#define FE_RESET              _IO('v', 82)#define FE_GETMINDELAY        _IOW('v', 83, struct dvb_frontend_parameters)extern intdvb_register_frontend (int (*ioctl) (struct dvb_frontend *frontend,				     unsigned int cmd, void *arg),		       struct dvb_i2c_bus *i2c,		       void *data,		       struct dvb_frontend_info *info);extern intdvb_unregister_frontend (int (*ioctl) (struct dvb_frontend *frontend,				       unsigned int cmd, void *arg),			 struct dvb_i2c_bus *i2c);/** *  Add special ioctl code performed before and after the main ioctl *  to all frontend devices on the specified DVB adapter. *  This is necessairy because the 22kHz/13V-18V/DiSEqC stuff depends *  heavily on the hardware around the frontend, the same tuner can create  *  these signals on about a million different ways... * *  Return value: number of frontends where the ioctl's were applied. */extern intdvb_add_frontend_ioctls (struct dvb_adapter *adapter,			 int (*before_ioctl) (struct dvb_frontend *frontend,					      unsigned int cmd, void *arg),			 int (*after_ioctl)  (struct dvb_frontend *frontend,					      unsigned int cmd, void *arg),			 void *before_after_data);extern voiddvb_remove_frontend_ioctls (struct dvb_adapter *adapter,			    int (*before_ioctl) (struct dvb_frontend *frontend,					         unsigned int cmd, void *arg),			    int (*after_ioctl)  (struct dvb_frontend *frontend,					         unsigned int cmd, void *arg));extern intdvb_add_frontend_notifier (struct dvb_adapter *adapter,			   void (*callback) (fe_status_t s, void *data),			   void *data);extern voiddvb_remove_frontend_notifier (struct dvb_adapter *adapter,			      void (*callback) (fe_status_t s, void *data));#endif

⌨️ 快捷键说明

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