diff options
Diffstat (limited to 'drivers/media/dvb/frontends/stv090x.h')
-rw-r--r-- | drivers/media/dvb/frontends/stv090x.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/media/dvb/frontends/stv090x.h b/drivers/media/dvb/frontends/stv090x.h index dd1b93ae4e9d..29cdc2b71314 100644 --- a/drivers/media/dvb/frontends/stv090x.h +++ b/drivers/media/dvb/frontends/stv090x.h | |||
@@ -78,6 +78,9 @@ struct stv090x_config { | |||
78 | u32 ts1_clk; | 78 | u32 ts1_clk; |
79 | u32 ts2_clk; | 79 | u32 ts2_clk; |
80 | 80 | ||
81 | u8 ts1_tei : 1; | ||
82 | u8 ts2_tei : 1; | ||
83 | |||
81 | enum stv090x_i2crpt repeater_level; | 84 | enum stv090x_i2crpt repeater_level; |
82 | 85 | ||
83 | u8 tuner_bbgain; /* default: 10db */ | 86 | u8 tuner_bbgain; /* default: 10db */ |
@@ -97,6 +100,7 @@ struct stv090x_config { | |||
97 | int (*tuner_get_bbgain) (struct dvb_frontend *fe, u32 *gain); | 100 | int (*tuner_get_bbgain) (struct dvb_frontend *fe, u32 *gain); |
98 | int (*tuner_set_refclk) (struct dvb_frontend *fe, u32 refclk); | 101 | int (*tuner_set_refclk) (struct dvb_frontend *fe, u32 refclk); |
99 | int (*tuner_get_status) (struct dvb_frontend *fe, u32 *status); | 102 | int (*tuner_get_status) (struct dvb_frontend *fe, u32 *status); |
103 | void (*tuner_i2c_lock) (struct dvb_frontend *fe, int lock); | ||
100 | }; | 104 | }; |
101 | 105 | ||
102 | #if defined(CONFIG_DVB_STV090x) || (defined(CONFIG_DVB_STV090x_MODULE) && defined(MODULE)) | 106 | #if defined(CONFIG_DVB_STV090x) || (defined(CONFIG_DVB_STV090x_MODULE) && defined(MODULE)) |
@@ -104,6 +108,11 @@ struct stv090x_config { | |||
104 | extern struct dvb_frontend *stv090x_attach(const struct stv090x_config *config, | 108 | extern struct dvb_frontend *stv090x_attach(const struct stv090x_config *config, |
105 | struct i2c_adapter *i2c, | 109 | struct i2c_adapter *i2c, |
106 | enum stv090x_demodulator demod); | 110 | enum stv090x_demodulator demod); |
111 | |||
112 | /* dir = 0 -> output, dir = 1 -> input/open-drain */ | ||
113 | extern int stv090x_set_gpio(struct dvb_frontend *fe, u8 gpio, | ||
114 | u8 dir, u8 value, u8 xor_value); | ||
115 | |||
107 | #else | 116 | #else |
108 | 117 | ||
109 | static inline struct dvb_frontend *stv090x_attach(const struct stv090x_config *config, | 118 | static inline struct dvb_frontend *stv090x_attach(const struct stv090x_config *config, |
@@ -113,6 +122,13 @@ static inline struct dvb_frontend *stv090x_attach(const struct stv090x_config *c | |||
113 | printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); | 122 | printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); |
114 | return NULL; | 123 | return NULL; |
115 | } | 124 | } |
125 | |||
126 | static inline int stv090x_set_gpio(struct dvb_frontend *fe, u8 gpio, | ||
127 | u8 opd, u8 value, u8 xor_value) | ||
128 | { | ||
129 | printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); | ||
130 | return -ENODEV; | ||
131 | } | ||
116 | #endif /* CONFIG_DVB_STV090x */ | 132 | #endif /* CONFIG_DVB_STV090x */ |
117 | 133 | ||
118 | #endif /* __STV090x_H */ | 134 | #endif /* __STV090x_H */ |