aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/dibx000_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/dvb/frontends/dibx000_common.h')
-rw-r--r--drivers/media/dvb/frontends/dibx000_common.h84
1 files changed, 44 insertions, 40 deletions
diff --git a/drivers/media/dvb/frontends/dibx000_common.h b/drivers/media/dvb/frontends/dibx000_common.h
index c4fd62f8df51..cc0fafe0436d 100644
--- a/drivers/media/dvb/frontends/dibx000_common.h
+++ b/drivers/media/dvb/frontends/dibx000_common.h
@@ -141,8 +141,8 @@ enum dibx000_adc_states {
141}; 141};
142 142
143#define BANDWIDTH_TO_KHZ(v) ( (v) == BANDWIDTH_8_MHZ ? 8000 : \ 143#define BANDWIDTH_TO_KHZ(v) ( (v) == BANDWIDTH_8_MHZ ? 8000 : \
144 (v) == BANDWIDTH_7_MHZ ? 7000 : \ 144 (v) == BANDWIDTH_7_MHZ ? 7000 : \
145 (v) == BANDWIDTH_6_MHZ ? 6000 : 8000 ) 145 (v) == BANDWIDTH_6_MHZ ? 6000 : 8000 )
146 146
147#define BANDWIDTH_TO_INDEX(v) ( \ 147#define BANDWIDTH_TO_INDEX(v) ( \
148 (v) == 8000 ? BANDWIDTH_8_MHZ : \ 148 (v) == 8000 ? BANDWIDTH_8_MHZ : \
@@ -158,53 +158,57 @@ enum dibx000_adc_states {
158#define OUTMODE_MPEG2_FIFO 5 158#define OUTMODE_MPEG2_FIFO 5
159#define OUTMODE_ANALOG_ADC 6 159#define OUTMODE_ANALOG_ADC 6
160 160
161#define INPUT_MODE_OFF 0x11
162#define INPUT_MODE_DIVERSITY 0x12
163#define INPUT_MODE_MPEG 0x13
164
161enum frontend_tune_state { 165enum frontend_tune_state {
162 CT_TUNER_START = 10, 166 CT_TUNER_START = 10,
163 CT_TUNER_STEP_0, 167 CT_TUNER_STEP_0,
164 CT_TUNER_STEP_1, 168 CT_TUNER_STEP_1,
165 CT_TUNER_STEP_2, 169 CT_TUNER_STEP_2,
166 CT_TUNER_STEP_3, 170 CT_TUNER_STEP_3,
167 CT_TUNER_STEP_4, 171 CT_TUNER_STEP_4,
168 CT_TUNER_STEP_5, 172 CT_TUNER_STEP_5,
169 CT_TUNER_STEP_6, 173 CT_TUNER_STEP_6,
170 CT_TUNER_STEP_7, 174 CT_TUNER_STEP_7,
171 CT_TUNER_STOP, 175 CT_TUNER_STOP,
172 176
173 CT_AGC_START = 20, 177 CT_AGC_START = 20,
174 CT_AGC_STEP_0, 178 CT_AGC_STEP_0,
175 CT_AGC_STEP_1, 179 CT_AGC_STEP_1,
176 CT_AGC_STEP_2, 180 CT_AGC_STEP_2,
177 CT_AGC_STEP_3, 181 CT_AGC_STEP_3,
178 CT_AGC_STEP_4, 182 CT_AGC_STEP_4,
179 CT_AGC_STOP, 183 CT_AGC_STOP,
180 184
181 CT_DEMOD_START = 30, 185 CT_DEMOD_START = 30,
182 CT_DEMOD_STEP_1, 186 CT_DEMOD_STEP_1,
183 CT_DEMOD_STEP_2, 187 CT_DEMOD_STEP_2,
184 CT_DEMOD_STEP_3, 188 CT_DEMOD_STEP_3,
185 CT_DEMOD_STEP_4, 189 CT_DEMOD_STEP_4,
186 CT_DEMOD_STEP_5, 190 CT_DEMOD_STEP_5,
187 CT_DEMOD_STEP_6, 191 CT_DEMOD_STEP_6,
188 CT_DEMOD_STEP_7, 192 CT_DEMOD_STEP_7,
189 CT_DEMOD_STEP_8, 193 CT_DEMOD_STEP_8,
190 CT_DEMOD_STEP_9, 194 CT_DEMOD_STEP_9,
191 CT_DEMOD_STEP_10, 195 CT_DEMOD_STEP_10,
192 CT_DEMOD_SEARCH_NEXT = 41, 196 CT_DEMOD_SEARCH_NEXT = 41,
193 CT_DEMOD_STEP_LOCKED, 197 CT_DEMOD_STEP_LOCKED,
194 CT_DEMOD_STOP, 198 CT_DEMOD_STOP,
195 199
196 CT_DONE = 100, 200 CT_DONE = 100,
197 CT_SHUTDOWN, 201 CT_SHUTDOWN,
198 202
199}; 203};
200 204
201struct dvb_frontend_parametersContext { 205struct dvb_frontend_parametersContext {
202#define CHANNEL_STATUS_PARAMETERS_UNKNOWN 0x01 206#define CHANNEL_STATUS_PARAMETERS_UNKNOWN 0x01
203#define CHANNEL_STATUS_PARAMETERS_SET 0x02 207#define CHANNEL_STATUS_PARAMETERS_SET 0x02
204 u8 status; 208 u8 status;
205 u32 tune_time_estimation[2]; 209 u32 tune_time_estimation[2];
206 s32 tps_available; 210 s32 tps_available;
207 u16 tps[9]; 211 u16 tps[9];
208}; 212};
209 213
210#define FE_STATUS_TUNE_FAILED 0 214#define FE_STATUS_TUNE_FAILED 0