1786baecfSMauro Carvalho Chehab /* Common header file of Linux driver for the WideView/ Yakumo/ Hama/ 2786baecfSMauro Carvalho Chehab * Typhoon/ Yuan DVB-T USB2.0 receiver. 3786baecfSMauro Carvalho Chehab * 4786baecfSMauro Carvalho Chehab * Copyright (C) 2004-5 Patrick Boettcher (patrick.boettcher@desy.de) 5786baecfSMauro Carvalho Chehab * 6786baecfSMauro Carvalho Chehab * This program is free software; you can redistribute it and/or modify it 7786baecfSMauro Carvalho Chehab * under the terms of the GNU General Public License as published by the Free 8786baecfSMauro Carvalho Chehab * Software Foundation, version 2. 9786baecfSMauro Carvalho Chehab * 10786baecfSMauro Carvalho Chehab * see Documentation/dvb/README.dvb-usb for more information 11786baecfSMauro Carvalho Chehab */ 12786baecfSMauro Carvalho Chehab #ifndef _DVB_USB_DTT200U_H_ 13786baecfSMauro Carvalho Chehab #define _DVB_USB_DTT200U_H_ 14786baecfSMauro Carvalho Chehab 15786baecfSMauro Carvalho Chehab #define DVB_USB_LOG_PREFIX "dtt200u" 16786baecfSMauro Carvalho Chehab 17786baecfSMauro Carvalho Chehab #include "dvb-usb.h" 18786baecfSMauro Carvalho Chehab 19786baecfSMauro Carvalho Chehab extern int dvb_usb_dtt200u_debug; 20786baecfSMauro Carvalho Chehab #define deb_info(args...) dprintk(dvb_usb_dtt200u_debug,0x01,args) 21786baecfSMauro Carvalho Chehab #define deb_xfer(args...) dprintk(dvb_usb_dtt200u_debug,0x02,args) 22786baecfSMauro Carvalho Chehab 23786baecfSMauro Carvalho Chehab /* guessed protocol description (reverse engineered): 24786baecfSMauro Carvalho Chehab * read 25786baecfSMauro Carvalho Chehab * 00 - USB type 0x02 for usb2.0, 0x01 for usb1.1 26786baecfSMauro Carvalho Chehab * 88 - locking 2 bytes (0x80 0x40 == no signal, 0x89 0x20 == nice signal) 27786baecfSMauro Carvalho Chehab */ 28786baecfSMauro Carvalho Chehab 29786baecfSMauro Carvalho Chehab #define GET_SPEED 0x00 30786baecfSMauro Carvalho Chehab #define GET_TUNE_STATUS 0x81 31786baecfSMauro Carvalho Chehab #define GET_RC_CODE 0x84 32786baecfSMauro Carvalho Chehab #define GET_CONFIGURATION 0x88 33786baecfSMauro Carvalho Chehab #define GET_AGC 0x89 34786baecfSMauro Carvalho Chehab #define GET_SNR 0x8a 35786baecfSMauro Carvalho Chehab #define GET_VIT_ERR_CNT 0x8c 36786baecfSMauro Carvalho Chehab #define GET_RS_ERR_CNT 0x8d 37786baecfSMauro Carvalho Chehab #define GET_RS_UNCOR_BLK_CNT 0x8e 38786baecfSMauro Carvalho Chehab 39786baecfSMauro Carvalho Chehab /* write 40786baecfSMauro Carvalho Chehab * 01 - init 41786baecfSMauro Carvalho Chehab * 02 - frequency (divided by 250000) 42786baecfSMauro Carvalho Chehab * 03 - bandwidth 43786baecfSMauro Carvalho Chehab * 04 - pid table (index pid(7:0) pid(12:8)) 44786baecfSMauro Carvalho Chehab * 05 - reset the pid table 45786baecfSMauro Carvalho Chehab * 08 - transfer switch 46786baecfSMauro Carvalho Chehab */ 47786baecfSMauro Carvalho Chehab 48786baecfSMauro Carvalho Chehab #define SET_INIT 0x01 49786baecfSMauro Carvalho Chehab #define SET_RF_FREQ 0x02 50786baecfSMauro Carvalho Chehab #define SET_BANDWIDTH 0x03 51786baecfSMauro Carvalho Chehab #define SET_PID_FILTER 0x04 52786baecfSMauro Carvalho Chehab #define RESET_PID_FILTER 0x05 53786baecfSMauro Carvalho Chehab #define SET_STREAMING 0x08 54786baecfSMauro Carvalho Chehab 55786baecfSMauro Carvalho Chehab extern struct dvb_frontend * dtt200u_fe_attach(struct dvb_usb_device *d); 56786baecfSMauro Carvalho Chehab 57786baecfSMauro Carvalho Chehab #endif 58