/* SPDX-License-Identifier: GPL-2.0-only */ /* Common header file of Linux driver for the WideView/ Yakumo/ Hama/ * Typhoon/ Yuan DVB-T USB2.0 receiver. * * Copyright (C) 2004-5 Patrick Boettcher ([email protected]) * * see Documentation/driver-api/media/drivers/dvb-usb.rst for more information */ #ifndef _DVB_USB_DTT200U_H_ #define _DVB_USB_DTT200U_H_ #define DVB_USB_LOG_PREFIX … #include "dvb-usb.h" extern int dvb_usb_dtt200u_debug; #define deb_info(args...) … #define deb_xfer(args...) … /* guessed protocol description (reverse engineered): * read * 00 - USB type 0x02 for usb2.0, 0x01 for usb1.1 * 88 - locking 2 bytes (0x80 0x40 == no signal, 0x89 0x20 == nice signal) */ #define GET_SPEED … #define GET_TUNE_STATUS … #define GET_RC_CODE … #define GET_CONFIGURATION … #define GET_AGC … #define GET_SNR … #define GET_VIT_ERR_CNT … #define GET_RS_ERR_CNT … #define GET_RS_UNCOR_BLK_CNT … /* write * 01 - init * 02 - frequency (divided by 250000) * 03 - bandwidth * 04 - pid table (index pid(7:0) pid(12:8)) * 05 - reset the pid table * 08 - transfer switch */ #define SET_INIT … #define SET_RF_FREQ … #define SET_BANDWIDTH … #define SET_PID_FILTER … #define RESET_PID_FILTER … #define SET_STREAMING … extern struct dvb_frontend * dtt200u_fe_attach(struct dvb_usb_device *d); #endif