2 * Linux-DVB Driver for DiBcom's DiB0090 base-band RF Tuner.
4 * Copyright (C) 2005-7 DiBcom (http://www.dibcom.fr/)
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation, version 2.
16 #define DEFAULT_DIB0090_I2C_ADDRESS 0x60
18 struct dib0090_io_config
{
26 u8 adc_clock_ratio
; /* valid is 8, 7 ,6 */
27 u16 pll_int_loop_filt
;
30 struct dib0090_config
{
31 struct dib0090_io_config io
;
32 int (*reset
) (struct dvb_frontend
*, int);
33 int (*sleep
) (struct dvb_frontend
*, int);
36 int freq_offset_khz_uhf
;
37 int freq_offset_khz_vhf
;
39 int (*get_adc_power
) (struct dvb_frontend
*);
41 u8 clkouttobamse
:1; /* activate or deactivate clock output */
45 /* add drives and other things if necessary */
52 #if defined(CONFIG_DVB_TUNER_DIB0090) || (defined(CONFIG_DVB_TUNER_DIB0090_MODULE) && defined(MODULE))
53 extern struct dvb_frontend
*dib0090_register(struct dvb_frontend
*fe
, struct i2c_adapter
*i2c
, const struct dib0090_config
*config
);
54 extern void dib0090_dcc_freq(struct dvb_frontend
*fe
, u8 fast
);
55 extern void dib0090_pwm_gain_reset(struct dvb_frontend
*fe
);
56 extern u16
dib0090_get_wbd_offset(struct dvb_frontend
*tuner
);
57 extern int dib0090_gain_control(struct dvb_frontend
*fe
);
58 extern enum frontend_tune_state
dib0090_get_tune_state(struct dvb_frontend
*fe
);
59 extern int dib0090_set_tune_state(struct dvb_frontend
*fe
, enum frontend_tune_state tune_state
);
60 extern void dib0090_get_current_gain(struct dvb_frontend
*fe
, u16
* rf
, u16
* bb
, u16
* rf_gain_limit
, u16
* rflt
);
62 static inline struct dvb_frontend
*dib0090_register(struct dvb_frontend
*fe
, struct i2c_adapter
*i2c
, struct dib0090_config
*config
)
64 printk(KERN_WARNING
"%s: driver disabled by Kconfig\n", __func__
);
68 static inline void dib0090_dcc_freq(struct dvb_frontend
*fe
, u8 fast
)
70 printk(KERN_WARNING
"%s: driver disabled by Kconfig\n", __func__
);
73 static inline void dib0090_pwm_gain_reset(struct dvb_frontend
*fe
)
75 printk(KERN_WARNING
"%s: driver disabled by Kconfig\n", __func__
);
78 static inline u16
dib0090_get_wbd_offset(struct dvb_frontend
*tuner
)
80 printk(KERN_WARNING
"%s: driver disabled by Kconfig\n", __func__
);
84 static inline int dib0090_gain_control(struct dvb_frontend
*fe
)
86 printk(KERN_WARNING
"%s: driver disabled by Kconfig\n", __func__
);
90 static inline enum frontend_tune_state
dib0090_get_tune_state(struct dvb_frontend
*fe
)
92 printk(KERN_WARNING
"%s: driver disabled by Kconfig\n", __func__
);
96 static inline int dib0090_set_tune_state(struct dvb_frontend
*fe
, enum frontend_tune_state tune_state
)
98 printk(KERN_WARNING
"%s: driver disabled by Kconfig\n", __func__
);
102 static inline void dib0090_get_current_gain(struct dvb_frontend
*fe
, u16
* rf
, u16
* bb
, u16
* rf_gain_limit
, u16
* rflt
)
104 printk(KERN_WARNING
"%s: driver disabled by Kconfig\n", __func__
);