| Patrick Boettcher | fb41f5a | 2005-07-07 17:58:23 -0700 | [diff] [blame] | 1 | /* Common header file of Linux driver for the WideView/ Yakumo/ Hama/ | 
 | 2 |  * Typhoon/ Yuan DVB-T USB2.0 receiver. | 
| Johannes Stezenbach | 776338e | 2005-06-23 22:02:35 -0700 | [diff] [blame] | 3 |  * | 
 | 4 |  * Copyright (C) 2004-5 Patrick Boettcher (patrick.boettcher@desy.de) | 
 | 5 |  * | 
 | 6 |  *	This program is free software; you can redistribute it and/or modify it | 
 | 7 |  *	under the terms of the GNU General Public License as published by the Free | 
 | 8 |  *	Software Foundation, version 2. | 
 | 9 |  * | 
 | 10 |  * see Documentation/dvb/README.dvb-usb for more information | 
 | 11 |  */ | 
 | 12 | #ifndef _DVB_USB_DTT200U_H_ | 
 | 13 | #define _DVB_USB_DTT200U_H_ | 
 | 14 |  | 
 | 15 | #define DVB_USB_LOG_PREFIX "dtt200u" | 
| Marc Koschewski | 5ba4cc9 | 2006-01-09 18:21:34 -0200 | [diff] [blame] | 16 |  | 
| Johannes Stezenbach | 776338e | 2005-06-23 22:02:35 -0700 | [diff] [blame] | 17 | #include "dvb-usb.h" | 
 | 18 |  | 
 | 19 | extern int dvb_usb_dtt200u_debug; | 
 | 20 | #define deb_info(args...) dprintk(dvb_usb_dtt200u_debug,0x01,args) | 
 | 21 | #define deb_xfer(args...) dprintk(dvb_usb_dtt200u_debug,0x02,args) | 
 | 22 |  | 
 | 23 | /* guessed protocol description (reverse engineered): | 
 | 24 |  * read | 
 | 25 |  *  00 - USB type 0x02 for usb2.0, 0x01 for usb1.1 | 
| Johannes Stezenbach | 776338e | 2005-06-23 22:02:35 -0700 | [diff] [blame] | 26 |  *  88 - locking 2 bytes (0x80 0x40 == no signal, 0x89 0x20 == nice signal) | 
| Johannes Stezenbach | 776338e | 2005-06-23 22:02:35 -0700 | [diff] [blame] | 27 |  */ | 
 | 28 |  | 
| Marc Koschewski | 5ba4cc9 | 2006-01-09 18:21:34 -0200 | [diff] [blame] | 29 | #define GET_SPEED		0x00 | 
 | 30 | #define GET_TUNE_STATUS		0x81 | 
 | 31 | #define GET_RC_CODE		0x84 | 
 | 32 | #define GET_CONFIGURATION	0x88 | 
 | 33 | #define GET_AGC			0x89 | 
 | 34 | #define GET_SNR			0x8a | 
 | 35 | #define GET_VIT_ERR_CNT		0x8c | 
 | 36 | #define GET_RS_ERR_CNT		0x8d | 
 | 37 | #define GET_RS_UNCOR_BLK_CNT	0x8e | 
| Johannes Stezenbach | 776338e | 2005-06-23 22:02:35 -0700 | [diff] [blame] | 38 |  | 
 | 39 | /* write | 
| Patrick Boettcher | d590f9c | 2005-07-07 17:58:33 -0700 | [diff] [blame] | 40 |  *  01 - init | 
| Johannes Stezenbach | 776338e | 2005-06-23 22:02:35 -0700 | [diff] [blame] | 41 |  *  02 - frequency (divided by 250000) | 
 | 42 |  *  03 - bandwidth | 
 | 43 |  *  04 - pid table (index pid(7:0) pid(12:8)) | 
 | 44 |  *  05 - reset the pid table | 
| Patrick Boettcher | d590f9c | 2005-07-07 17:58:33 -0700 | [diff] [blame] | 45 |  *  08 - transfer switch | 
| Johannes Stezenbach | 776338e | 2005-06-23 22:02:35 -0700 | [diff] [blame] | 46 |  */ | 
 | 47 |  | 
| Marc Koschewski | 5ba4cc9 | 2006-01-09 18:21:34 -0200 | [diff] [blame] | 48 | #define SET_INIT		0x01 | 
 | 49 | #define SET_RF_FREQ		0x02 | 
 | 50 | #define SET_BANDWIDTH		0x03 | 
 | 51 | #define SET_PID_FILTER		0x04 | 
 | 52 | #define RESET_PID_FILTER	0x05 | 
 | 53 | #define SET_STREAMING		0x08 | 
| Johannes Stezenbach | 776338e | 2005-06-23 22:02:35 -0700 | [diff] [blame] | 54 |  | 
 | 55 | extern struct dvb_frontend * dtt200u_fe_attach(struct dvb_usb_device *d); | 
 | 56 |  | 
 | 57 | #endif |