Path: blob/master/drivers/media/dvb/dvb-usb/dtt200u.h
15112 views
/* Common header file of Linux driver for the WideView/ Yakumo/ Hama/1* Typhoon/ Yuan DVB-T USB2.0 receiver.2*3* Copyright (C) 2004-5 Patrick Boettcher ([email protected])4*5* This program is free software; you can redistribute it and/or modify it6* under the terms of the GNU General Public License as published by the Free7* Software Foundation, version 2.8*9* see Documentation/dvb/README.dvb-usb for more information10*/11#ifndef _DVB_USB_DTT200U_H_12#define _DVB_USB_DTT200U_H_1314#define DVB_USB_LOG_PREFIX "dtt200u"1516#include "dvb-usb.h"1718extern int dvb_usb_dtt200u_debug;19#define deb_info(args...) dprintk(dvb_usb_dtt200u_debug,0x01,args)20#define deb_xfer(args...) dprintk(dvb_usb_dtt200u_debug,0x02,args)2122/* guessed protocol description (reverse engineered):23* read24* 00 - USB type 0x02 for usb2.0, 0x01 for usb1.125* 88 - locking 2 bytes (0x80 0x40 == no signal, 0x89 0x20 == nice signal)26*/2728#define GET_SPEED 0x0029#define GET_TUNE_STATUS 0x8130#define GET_RC_CODE 0x8431#define GET_CONFIGURATION 0x8832#define GET_AGC 0x8933#define GET_SNR 0x8a34#define GET_VIT_ERR_CNT 0x8c35#define GET_RS_ERR_CNT 0x8d36#define GET_RS_UNCOR_BLK_CNT 0x8e3738/* write39* 01 - init40* 02 - frequency (divided by 250000)41* 03 - bandwidth42* 04 - pid table (index pid(7:0) pid(12:8))43* 05 - reset the pid table44* 08 - transfer switch45*/4647#define SET_INIT 0x0148#define SET_RF_FREQ 0x0249#define SET_BANDWIDTH 0x0350#define SET_PID_FILTER 0x0451#define RESET_PID_FILTER 0x0552#define SET_STREAMING 0x085354extern struct dvb_frontend * dtt200u_fe_attach(struct dvb_usb_device *d);5556#endif575859