1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 /* 3 * Realtek RTL2830 DVB-T demodulator driver 4 * 5 * Copyright (C) 2011 Antti Palosaari <crope@iki.fi> 6 */ 7 8 #ifndef RTL2830_H 9 #define RTL2830_H 10 11 #include <linux/dvb/frontend.h> 12 13 /** 14 * struct rtl2830_platform_data - Platform data for the rtl2830 driver 15 * @clk: Clock frequency (4000000, 16000000, 25000000, 28800000). 16 * @spec_inv: Spectrum inversion. 17 * @vtop: AGC take-over point. 18 * @krf: AGC ratio. 19 * @agc_targ_val: AGC. 20 * @get_dvb_frontend: Get DVB frontend. 21 * @get_i2c_adapter: Get I2C adapter. 22 * @pid_filter: Set PID to PID filter. 23 * @pid_filter_ctrl: Control PID filter. 24 */ 25 struct rtl2830_platform_data { 26 u32 clk; 27 bool spec_inv; 28 u8 vtop; 29 u8 krf; 30 u8 agc_targ_val; 31 32 struct dvb_frontend* (*get_dvb_frontend)(struct i2c_client *); 33 struct i2c_adapter* (*get_i2c_adapter)(struct i2c_client *); 34 int (*pid_filter)(struct dvb_frontend *, u8, u16, int); 35 int (*pid_filter_ctrl)(struct dvb_frontend *, int); 36 }; 37 38 #endif /* RTL2830_H */ 39