0001
0002
0003
0004
0005
0006
0007
0008 #ifndef _DRXD_H_
0009 #define _DRXD_H_
0010
0011 #include <linux/types.h>
0012 #include <linux/i2c.h>
0013
0014 struct drxd_config {
0015 u8 index;
0016
0017 u8 pll_address;
0018 u8 pll_type;
0019 #define DRXD_PLL_NONE 0
0020 #define DRXD_PLL_DTT7520X 1
0021 #define DRXD_PLL_MT3X0823 2
0022
0023 u32 clock;
0024 u8 insert_rs_byte;
0025
0026 u8 demod_address;
0027 u8 demoda_address;
0028 u8 demod_revision;
0029
0030
0031
0032 u8 disable_i2c_gate_ctrl;
0033
0034 u32 IF;
0035 s16(*osc_deviation) (void *priv, s16 dev, int flag);
0036 };
0037
0038 #if IS_REACHABLE(CONFIG_DVB_DRXD)
0039 extern
0040 struct dvb_frontend *drxd_attach(const struct drxd_config *config,
0041 void *priv, struct i2c_adapter *i2c,
0042 struct device *dev);
0043 #else
0044 static inline
0045 struct dvb_frontend *drxd_attach(const struct drxd_config *config,
0046 void *priv, struct i2c_adapter *i2c,
0047 struct device *dev)
0048 {
0049 printk(KERN_INFO "%s: not probed - driver disabled by Kconfig\n",
0050 __func__);
0051 return NULL;
0052 }
0053 #endif
0054
0055 #endif