144 static int cinergyt2_fe_read_status(
struct dvb_frontend *fe,
193 static int cinergyt2_fe_read_unc_blocks(
struct dvb_frontend *fe,
u32 *unc)
203 err(
"cinergyt2_fe_read_unc_blocks() Failed! (Error=%d)\n",
207 *unc =
le32_to_cpu(status.uncorrected_block_count);
211 static int cinergyt2_fe_read_signal_strength(
struct dvb_frontend *fe,
222 err(
"cinergyt2_fe_read_signal_strength() Failed!"
223 " (Error=%d)\n", ret);
240 err(
"cinergyt2_fe_read_snr() Failed! (Error=%d)\n", ret);
243 *snr = (status.snr << 8) | status.snr;
254 deb_info(
"cinergyt2_fe_sleep() Called\n");
258 static int cinergyt2_fe_get_tune_settings(
struct dvb_frontend *fe,
265 static int cinergyt2_fe_set_frontend(
struct dvb_frontend *fe)
293 result,
sizeof(result), 0);
295 err(
"cinergyt2_fe_set_frontend() Failed! err=%d\n", err);
297 return (err < 0) ? err : 0;
300 static void cinergyt2_fe_release(
struct dvb_frontend *fe)
318 s->
fe.demodulator_priv =
s;
327 .frequency_min = 174000000,
328 .frequency_max = 862000000,
329 .frequency_stepsize = 166667,
343 .release = cinergyt2_fe_release,
345 .init = cinergyt2_fe_init,
346 .sleep = cinergyt2_fe_sleep,
348 .set_frontend = cinergyt2_fe_set_frontend,
349 .get_tune_settings = cinergyt2_fe_get_tune_settings,
351 .read_status = cinergyt2_fe_read_status,
352 .read_ber = cinergyt2_fe_read_ber,
353 .read_signal_strength = cinergyt2_fe_read_signal_strength,
354 .read_snr = cinergyt2_fe_read_snr,
355 .read_ucblocks = cinergyt2_fe_read_unc_blocks,