/* Frontend part of the Linux driver for the Afatech 9005 * USB1.1 DVB-T receiver. * * Copyright (C) 2007 Luca Olivetti (luca@ventoso.org) * * Thanks to Afatech who kindly provided information. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * see Documentation/dvb/README.dvb-usb for more information */#include"af9005.h"#include"af9005-script.h"#include"mt2060.h"#include"qt1010.h"#include<asm/div64.h>structaf9005_fe_state{structdvb_usb_device*d;enumfe_statusstat;/* retraining parameters */u32original_fcw;u16original_rf_top;u16original_if_top;u16original_if_min;u16original_aci0_if_top;u16original_aci1_if_top;u16original_aci0_if_min;u8original_if_unplug_th;u8original_rf_unplug_th;u8original_dtop_if_unplug_th;u8original_dtop_rf_unplug_th;/* statistics */u32pre_vit_error_count;u32pre_vit_bit_count;u32ber;u32post_vit_error_count;u32post_vit_bit_count;u32unc;