Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  * Realtek RTL2830 DVB-T demodulator driver
0004  *
0005  * Copyright (C) 2011 Antti Palosaari <crope@iki.fi>
0006  */
0007 
0008 #ifndef RTL2830_H
0009 #define RTL2830_H
0010 
0011 #include <linux/dvb/frontend.h>
0012 
0013 /**
0014  * struct rtl2830_platform_data - Platform data for the rtl2830 driver
0015  * @clk: Clock frequency (4000000, 16000000, 25000000, 28800000).
0016  * @spec_inv: Spectrum inversion.
0017  * @vtop: AGC take-over point.
0018  * @krf: AGC ratio.
0019  * @agc_targ_val: AGC.
0020  * @get_dvb_frontend: Get DVB frontend.
0021  * @get_i2c_adapter: Get I2C adapter.
0022  * @pid_filter: Set PID to PID filter.
0023  * @pid_filter_ctrl: Control PID filter.
0024  */
0025 struct rtl2830_platform_data {
0026     u32 clk;
0027     bool spec_inv;
0028     u8 vtop;
0029     u8 krf;
0030     u8 agc_targ_val;
0031 
0032     struct dvb_frontend* (*get_dvb_frontend)(struct i2c_client *);
0033     struct i2c_adapter* (*get_i2c_adapter)(struct i2c_client *);
0034     int (*pid_filter)(struct dvb_frontend *, u8, u16, int);
0035     int (*pid_filter_ctrl)(struct dvb_frontend *, int);
0036 };
0037 
0038 #endif /* RTL2830_H */