2012-05-23 21:06:09 +08:00
|
|
|
/* dvb-usb-common.h is part of the DVB USB library.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2004-5 Patrick Boettcher (patrick.boettcher@desy.de)
|
|
|
|
* see dvb-usb-init.c for copyright information.
|
|
|
|
*
|
2012-05-25 01:44:21 +08:00
|
|
|
* a header file containing prototypes and types for internal use of the
|
|
|
|
* dvb-usb-lib
|
2012-05-23 21:06:09 +08:00
|
|
|
*/
|
|
|
|
#ifndef DVB_USB_COMMON_H
|
|
|
|
#define DVB_USB_COMMON_H
|
|
|
|
|
|
|
|
#define DVB_USB_LOG_PREFIX "dvb_usb"
|
|
|
|
#include "dvb_usb.h"
|
|
|
|
|
|
|
|
extern int dvb_usb_debug;
|
|
|
|
extern int dvb_usb_disable_rc_polling;
|
|
|
|
|
2012-05-25 01:44:21 +08:00
|
|
|
#define deb_info(args...) dprintk(dvb_usb_debug, 0x001, args)
|
|
|
|
#define deb_xfer(args...) dprintk(dvb_usb_debug, 0x002, args)
|
|
|
|
#define deb_pll(args...) dprintk(dvb_usb_debug, 0x004, args)
|
|
|
|
#define deb_ts(args...) dprintk(dvb_usb_debug, 0x008, args)
|
|
|
|
#define deb_err(args...) dprintk(dvb_usb_debug, 0x010, args)
|
|
|
|
#define deb_rc(args...) dprintk(dvb_usb_debug, 0x020, args)
|
|
|
|
#define deb_fw(args...) dprintk(dvb_usb_debug, 0x040, args)
|
|
|
|
#define deb_mem(args...) dprintk(dvb_usb_debug, 0x080, args)
|
|
|
|
#define deb_uxfer(args...) dprintk(dvb_usb_debug, 0x100, args)
|
2012-05-23 21:06:09 +08:00
|
|
|
|
|
|
|
/* commonly used methods */
|
2012-05-24 07:45:05 +08:00
|
|
|
extern int dvb_usb_download_firmware(struct dvb_usb_device *);
|
2012-05-23 21:06:09 +08:00
|
|
|
|
|
|
|
extern int dvb_usb_device_power_ctrl(struct dvb_usb_device *d, int onoff);
|
|
|
|
|
2012-05-25 01:44:21 +08:00
|
|
|
extern int usb_urb_init(struct usb_data_stream *stream,
|
|
|
|
struct usb_data_stream_properties *props);
|
2012-05-23 21:06:09 +08:00
|
|
|
extern int usb_urb_exit(struct usb_data_stream *stream);
|
|
|
|
extern int usb_urb_submit(struct usb_data_stream *stream);
|
|
|
|
extern int usb_urb_kill(struct usb_data_stream *stream);
|
|
|
|
|
|
|
|
extern int dvb_usb_adapter_stream_init(struct dvb_usb_adapter *adap);
|
|
|
|
extern int dvb_usb_adapter_stream_exit(struct dvb_usb_adapter *adap);
|
|
|
|
|
|
|
|
extern int dvb_usb_i2c_init(struct dvb_usb_device *);
|
|
|
|
extern int dvb_usb_i2c_exit(struct dvb_usb_device *);
|
|
|
|
|
2012-05-24 03:23:44 +08:00
|
|
|
extern int dvb_usb_adapter_dvb_init(struct dvb_usb_adapter *adap);
|
2012-05-23 21:06:09 +08:00
|
|
|
extern int dvb_usb_adapter_dvb_exit(struct dvb_usb_adapter *adap);
|
|
|
|
extern int dvb_usb_adapter_frontend_init(struct dvb_usb_adapter *adap);
|
|
|
|
extern int dvb_usb_adapter_frontend_exit(struct dvb_usb_adapter *adap);
|
|
|
|
|
|
|
|
extern int dvb_usb_remote_init(struct dvb_usb_device *);
|
|
|
|
extern int dvb_usb_remote_exit(struct dvb_usb_device *);
|
|
|
|
|
|
|
|
#endif
|