[ARM] Support register switch in nommu mode
[linux-2.6/verdex.git] / drivers / media / dvb / frontends / stv0299.c
blob5bcd00f792e63ac7dbe255223103c91b4015865e
1 /*
2 Driver for ST STV0299 demodulator
4 Copyright (C) 2001-2002 Convergence Integrated Media GmbH
5 <ralph@convergence.de>,
6 <holger@convergence.de>,
7 <js@convergence.de>
10 Philips SU1278/SH
12 Copyright (C) 2002 by Peter Schildmann <peter.schildmann@web.de>
15 LG TDQF-S001F
17 Copyright (C) 2002 Felix Domke <tmbinc@elitedvb.net>
18 & Andreas Oberritter <obi@linuxtv.org>
21 Support for Samsung TBMU24112IMB used on Technisat SkyStar2 rev. 2.6B
23 Copyright (C) 2003 Vadim Catana <skystar@moldova.cc>:
25 Support for Philips SU1278 on Technotrend hardware
27 Copyright (C) 2004 Andrew de Quincey <adq_dvb@lidskialf.net>
29 This program is free software; you can redistribute it and/or modify
30 it under the terms of the GNU General Public License as published by
31 the Free Software Foundation; either version 2 of the License, or
32 (at your option) any later version.
34 This program is distributed in the hope that it will be useful,
35 but WITHOUT ANY WARRANTY; without even the implied warranty of
36 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37 GNU General Public License for more details.
39 You should have received a copy of the GNU General Public License
40 along with this program; if not, write to the Free Software
41 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
45 #include <linux/init.h>
46 #include <linux/kernel.h>
47 #include <linux/module.h>
48 #include <linux/moduleparam.h>
49 #include <linux/string.h>
50 #include <linux/slab.h>
51 #include <linux/jiffies.h>
52 #include <asm/div64.h>
54 #include "dvb_frontend.h"
55 #include "stv0299.h"
57 struct stv0299_state {
58 struct i2c_adapter* i2c;
59 struct dvb_frontend_ops ops;
60 const struct stv0299_config* config;
61 struct dvb_frontend frontend;
63 u8 initialised:1;
64 u32 tuner_frequency;
65 u32 symbol_rate;
66 fe_code_rate_t fec_inner;
67 int errmode;
70 #define STATUS_BER 0
71 #define STATUS_UCBLOCKS 1
73 static int debug;
74 static int debug_legacy_dish_switch;
75 #define dprintk(args...) \
76 do { \
77 if (debug) printk(KERN_DEBUG "stv0299: " args); \
78 } while (0)
81 static int stv0299_writeregI (struct stv0299_state* state, u8 reg, u8 data)
83 int ret;
84 u8 buf [] = { reg, data };
85 struct i2c_msg msg = { .addr = state->config->demod_address, .flags = 0, .buf = buf, .len = 2 };
87 ret = i2c_transfer (state->i2c, &msg, 1);
89 if (ret != 1)
90 dprintk("%s: writereg error (reg == 0x%02x, val == 0x%02x, "
91 "ret == %i)\n", __FUNCTION__, reg, data, ret);
93 return (ret != 1) ? -EREMOTEIO : 0;
96 int stv0299_writereg (struct dvb_frontend* fe, u8 reg, u8 data)
98 struct stv0299_state* state = fe->demodulator_priv;
100 return stv0299_writeregI(state, reg, data);
103 static u8 stv0299_readreg (struct stv0299_state* state, u8 reg)
105 int ret;
106 u8 b0 [] = { reg };
107 u8 b1 [] = { 0 };
108 struct i2c_msg msg [] = { { .addr = state->config->demod_address, .flags = 0, .buf = b0, .len = 1 },
109 { .addr = state->config->demod_address, .flags = I2C_M_RD, .buf = b1, .len = 1 } };
111 ret = i2c_transfer (state->i2c, msg, 2);
113 if (ret != 2)
114 dprintk("%s: readreg error (reg == 0x%02x, ret == %i)\n",
115 __FUNCTION__, reg, ret);
117 return b1[0];
120 static int stv0299_readregs (struct stv0299_state* state, u8 reg1, u8 *b, u8 len)
122 int ret;
123 struct i2c_msg msg [] = { { .addr = state->config->demod_address, .flags = 0, .buf = &reg1, .len = 1 },
124 { .addr = state->config->demod_address, .flags = I2C_M_RD, .buf = b, .len = len } };
126 ret = i2c_transfer (state->i2c, msg, 2);
128 if (ret != 2)
129 dprintk("%s: readreg error (ret == %i)\n", __FUNCTION__, ret);
131 return ret == 2 ? 0 : ret;
134 int stv0299_enable_plli2c (struct dvb_frontend* fe)
136 struct stv0299_state* state = fe->demodulator_priv;
138 return stv0299_writeregI(state, 0x05, 0xb5); /* enable i2c repeater on stv0299 */
141 static int stv0299_set_FEC (struct stv0299_state* state, fe_code_rate_t fec)
143 dprintk ("%s\n", __FUNCTION__);
145 switch (fec) {
146 case FEC_AUTO:
148 return stv0299_writeregI (state, 0x31, 0x1f);
150 case FEC_1_2:
152 return stv0299_writeregI (state, 0x31, 0x01);
154 case FEC_2_3:
156 return stv0299_writeregI (state, 0x31, 0x02);
158 case FEC_3_4:
160 return stv0299_writeregI (state, 0x31, 0x04);
162 case FEC_5_6:
164 return stv0299_writeregI (state, 0x31, 0x08);
166 case FEC_7_8:
168 return stv0299_writeregI (state, 0x31, 0x10);
170 default:
172 return -EINVAL;
177 static fe_code_rate_t stv0299_get_fec (struct stv0299_state* state)
179 static fe_code_rate_t fec_tab [] = { FEC_2_3, FEC_3_4, FEC_5_6,
180 FEC_7_8, FEC_1_2 };
181 u8 index;
183 dprintk ("%s\n", __FUNCTION__);
185 index = stv0299_readreg (state, 0x1b);
186 index &= 0x7;
188 if (index > 4)
189 return FEC_AUTO;
191 return fec_tab [index];
194 static int stv0299_wait_diseqc_fifo (struct stv0299_state* state, int timeout)
196 unsigned long start = jiffies;
198 dprintk ("%s\n", __FUNCTION__);
200 while (stv0299_readreg(state, 0x0a) & 1) {
201 if (jiffies - start > timeout) {
202 dprintk ("%s: timeout!!\n", __FUNCTION__);
203 return -ETIMEDOUT;
205 msleep(10);
208 return 0;
211 static int stv0299_wait_diseqc_idle (struct stv0299_state* state, int timeout)
213 unsigned long start = jiffies;
215 dprintk ("%s\n", __FUNCTION__);
217 while ((stv0299_readreg(state, 0x0a) & 3) != 2 ) {
218 if (jiffies - start > timeout) {
219 dprintk ("%s: timeout!!\n", __FUNCTION__);
220 return -ETIMEDOUT;
222 msleep(10);
225 return 0;
228 static int stv0299_set_symbolrate (struct dvb_frontend* fe, u32 srate)
230 struct stv0299_state* state = fe->demodulator_priv;
231 u64 big = srate;
232 u32 ratio;
234 // check rate is within limits
235 if ((srate < 1000000) || (srate > 45000000)) return -EINVAL;
237 // calculate value to program
238 big = big << 20;
239 big += (state->config->mclk-1); // round correctly
240 do_div(big, state->config->mclk);
241 ratio = big << 4;
243 return state->config->set_symbol_rate(fe, srate, ratio);
246 static int stv0299_get_symbolrate (struct stv0299_state* state)
248 u32 Mclk = state->config->mclk / 4096L;
249 u32 srate;
250 s32 offset;
251 u8 sfr[3];
252 s8 rtf;
254 dprintk ("%s\n", __FUNCTION__);
256 stv0299_readregs (state, 0x1f, sfr, 3);
257 stv0299_readregs (state, 0x1a, &rtf, 1);
259 srate = (sfr[0] << 8) | sfr[1];
260 srate *= Mclk;
261 srate /= 16;
262 srate += (sfr[2] >> 4) * Mclk / 256;
263 offset = (s32) rtf * (srate / 4096L);
264 offset /= 128;
266 dprintk ("%s : srate = %i\n", __FUNCTION__, srate);
267 dprintk ("%s : ofset = %i\n", __FUNCTION__, offset);
269 srate += offset;
271 srate += 1000;
272 srate /= 2000;
273 srate *= 2000;
275 return srate;
278 static int stv0299_send_diseqc_msg (struct dvb_frontend* fe,
279 struct dvb_diseqc_master_cmd *m)
281 struct stv0299_state* state = fe->demodulator_priv;
282 u8 val;
283 int i;
285 dprintk ("%s\n", __FUNCTION__);
287 if (stv0299_wait_diseqc_idle (state, 100) < 0)
288 return -ETIMEDOUT;
290 val = stv0299_readreg (state, 0x08);
292 if (stv0299_writeregI (state, 0x08, (val & ~0x7) | 0x6)) /* DiSEqC mode */
293 return -EREMOTEIO;
295 for (i=0; i<m->msg_len; i++) {
296 if (stv0299_wait_diseqc_fifo (state, 100) < 0)
297 return -ETIMEDOUT;
299 if (stv0299_writeregI (state, 0x09, m->msg[i]))
300 return -EREMOTEIO;
303 if (stv0299_wait_diseqc_idle (state, 100) < 0)
304 return -ETIMEDOUT;
306 return 0;
309 static int stv0299_send_diseqc_burst (struct dvb_frontend* fe, fe_sec_mini_cmd_t burst)
311 struct stv0299_state* state = fe->demodulator_priv;
312 u8 val;
314 dprintk ("%s\n", __FUNCTION__);
316 if (stv0299_wait_diseqc_idle (state, 100) < 0)
317 return -ETIMEDOUT;
319 val = stv0299_readreg (state, 0x08);
321 if (stv0299_writeregI (state, 0x08, (val & ~0x7) | 0x2)) /* burst mode */
322 return -EREMOTEIO;
324 if (stv0299_writeregI (state, 0x09, burst == SEC_MINI_A ? 0x00 : 0xff))
325 return -EREMOTEIO;
327 if (stv0299_wait_diseqc_idle (state, 100) < 0)
328 return -ETIMEDOUT;
330 if (stv0299_writeregI (state, 0x08, val))
331 return -EREMOTEIO;
333 return 0;
336 static int stv0299_set_tone (struct dvb_frontend* fe, fe_sec_tone_mode_t tone)
338 struct stv0299_state* state = fe->demodulator_priv;
339 u8 val;
341 if (stv0299_wait_diseqc_idle (state, 100) < 0)
342 return -ETIMEDOUT;
344 val = stv0299_readreg (state, 0x08);
346 switch (tone) {
347 case SEC_TONE_ON:
348 return stv0299_writeregI (state, 0x08, val | 0x3);
350 case SEC_TONE_OFF:
351 return stv0299_writeregI (state, 0x08, (val & ~0x3) | 0x02);
353 default:
354 return -EINVAL;
358 static int stv0299_set_voltage (struct dvb_frontend* fe, fe_sec_voltage_t voltage)
360 struct stv0299_state* state = fe->demodulator_priv;
361 u8 reg0x08;
362 u8 reg0x0c;
364 dprintk("%s: %s\n", __FUNCTION__,
365 voltage == SEC_VOLTAGE_13 ? "SEC_VOLTAGE_13" :
366 voltage == SEC_VOLTAGE_18 ? "SEC_VOLTAGE_18" : "??");
368 reg0x08 = stv0299_readreg (state, 0x08);
369 reg0x0c = stv0299_readreg (state, 0x0c);
372 * H/V switching over OP0, OP1 and OP2 are LNB power enable bits
374 reg0x0c &= 0x0f;
376 if (voltage == SEC_VOLTAGE_OFF) {
377 stv0299_writeregI (state, 0x0c, 0x00); /* LNB power off! */
378 return stv0299_writeregI (state, 0x08, 0x00); /* LNB power off! */
381 stv0299_writeregI (state, 0x08, (reg0x08 & 0x3f) | (state->config->lock_output << 6));
383 switch (voltage) {
384 case SEC_VOLTAGE_13:
385 if (state->config->volt13_op0_op1 == STV0299_VOLT13_OP0) reg0x0c |= 0x10;
386 else reg0x0c |= 0x40;
388 return stv0299_writeregI(state, 0x0c, reg0x0c);
390 case SEC_VOLTAGE_18:
391 return stv0299_writeregI(state, 0x0c, reg0x0c | 0x50);
392 default:
393 return -EINVAL;
397 static int stv0299_send_legacy_dish_cmd (struct dvb_frontend* fe, unsigned long cmd)
399 struct stv0299_state* state = fe->demodulator_priv;
400 u8 reg0x08;
401 u8 reg0x0c;
402 u8 lv_mask = 0x40;
403 u8 last = 1;
404 int i;
405 struct timeval nexttime;
406 struct timeval tv[10];
408 reg0x08 = stv0299_readreg (state, 0x08);
409 reg0x0c = stv0299_readreg (state, 0x0c);
410 reg0x0c &= 0x0f;
411 stv0299_writeregI (state, 0x08, (reg0x08 & 0x3f) | (state->config->lock_output << 6));
412 if (state->config->volt13_op0_op1 == STV0299_VOLT13_OP0)
413 lv_mask = 0x10;
415 cmd = cmd << 1;
416 if (debug_legacy_dish_switch)
417 printk ("%s switch command: 0x%04lx\n",__FUNCTION__, cmd);
419 do_gettimeofday (&nexttime);
420 if (debug_legacy_dish_switch)
421 memcpy (&tv[0], &nexttime, sizeof (struct timeval));
422 stv0299_writeregI (state, 0x0c, reg0x0c | 0x50); /* set LNB to 18V */
424 dvb_frontend_sleep_until(&nexttime, 32000);
426 for (i=0; i<9; i++) {
427 if (debug_legacy_dish_switch)
428 do_gettimeofday (&tv[i+1]);
429 if((cmd & 0x01) != last) {
430 /* set voltage to (last ? 13V : 18V) */
431 stv0299_writeregI (state, 0x0c, reg0x0c | (last ? lv_mask : 0x50));
432 last = (last) ? 0 : 1;
435 cmd = cmd >> 1;
437 if (i != 8)
438 dvb_frontend_sleep_until(&nexttime, 8000);
440 if (debug_legacy_dish_switch) {
441 printk ("%s(%d): switch delay (should be 32k followed by all 8k\n",
442 __FUNCTION__, fe->dvb->num);
443 for (i = 1; i < 10; i++)
444 printk ("%d: %d\n", i, timeval_usec_diff(tv[i-1] , tv[i]));
447 return 0;
450 static int stv0299_init (struct dvb_frontend* fe)
452 struct stv0299_state* state = fe->demodulator_priv;
453 int i;
455 dprintk("stv0299: init chip\n");
457 for (i=0; !(state->config->inittab[i] == 0xff && state->config->inittab[i+1] == 0xff); i+=2)
458 stv0299_writeregI(state, state->config->inittab[i], state->config->inittab[i+1]);
460 if (state->config->pll_init) {
461 stv0299_writeregI(state, 0x05, 0xb5); /* enable i2c repeater on stv0299 */
462 state->config->pll_init(fe, state->i2c);
463 stv0299_writeregI(state, 0x05, 0x35); /* disable i2c repeater on stv0299 */
466 return 0;
469 static int stv0299_read_status(struct dvb_frontend* fe, fe_status_t* status)
471 struct stv0299_state* state = fe->demodulator_priv;
473 u8 signal = 0xff - stv0299_readreg (state, 0x18);
474 u8 sync = stv0299_readreg (state, 0x1b);
476 dprintk ("%s : FE_READ_STATUS : VSTATUS: 0x%02x\n", __FUNCTION__, sync);
477 *status = 0;
479 if (signal > 10)
480 *status |= FE_HAS_SIGNAL;
482 if (sync & 0x80)
483 *status |= FE_HAS_CARRIER;
485 if (sync & 0x10)
486 *status |= FE_HAS_VITERBI;
488 if (sync & 0x08)
489 *status |= FE_HAS_SYNC;
491 if ((sync & 0x98) == 0x98)
492 *status |= FE_HAS_LOCK;
494 return 0;
497 static int stv0299_read_ber(struct dvb_frontend* fe, u32* ber)
499 struct stv0299_state* state = fe->demodulator_priv;
501 if (state->errmode != STATUS_BER) return 0;
502 *ber = (stv0299_readreg (state, 0x1d) << 8) | stv0299_readreg (state, 0x1e);
504 return 0;
507 static int stv0299_read_signal_strength(struct dvb_frontend* fe, u16* strength)
509 struct stv0299_state* state = fe->demodulator_priv;
511 s32 signal = 0xffff - ((stv0299_readreg (state, 0x18) << 8)
512 | stv0299_readreg (state, 0x19));
514 dprintk ("%s : FE_READ_SIGNAL_STRENGTH : AGC2I: 0x%02x%02x, signal=0x%04x\n", __FUNCTION__,
515 stv0299_readreg (state, 0x18),
516 stv0299_readreg (state, 0x19), (int) signal);
518 signal = signal * 5 / 4;
519 *strength = (signal > 0xffff) ? 0xffff : (signal < 0) ? 0 : signal;
521 return 0;
524 static int stv0299_read_snr(struct dvb_frontend* fe, u16* snr)
526 struct stv0299_state* state = fe->demodulator_priv;
528 s32 xsnr = 0xffff - ((stv0299_readreg (state, 0x24) << 8)
529 | stv0299_readreg (state, 0x25));
530 xsnr = 3 * (xsnr - 0xa100);
531 *snr = (xsnr > 0xffff) ? 0xffff : (xsnr < 0) ? 0 : xsnr;
533 return 0;
536 static int stv0299_read_ucblocks(struct dvb_frontend* fe, u32* ucblocks)
538 struct stv0299_state* state = fe->demodulator_priv;
540 if (state->errmode != STATUS_UCBLOCKS) *ucblocks = 0;
541 else *ucblocks = (stv0299_readreg (state, 0x1d) << 8) | stv0299_readreg (state, 0x1e);
543 return 0;
546 static int stv0299_set_frontend(struct dvb_frontend* fe, struct dvb_frontend_parameters * p)
548 struct stv0299_state* state = fe->demodulator_priv;
549 int invval = 0;
551 dprintk ("%s : FE_SET_FRONTEND\n", __FUNCTION__);
553 // set the inversion
554 if (p->inversion == INVERSION_OFF) invval = 0;
555 else if (p->inversion == INVERSION_ON) invval = 1;
556 else {
557 printk("stv0299 does not support auto-inversion\n");
558 return -EINVAL;
560 if (state->config->invert) invval = (~invval) & 1;
561 stv0299_writeregI(state, 0x0c, (stv0299_readreg(state, 0x0c) & 0xfe) | invval);
563 stv0299_writeregI(state, 0x05, 0xb5); /* enable i2c repeater on stv0299 */
564 state->config->pll_set(fe, state->i2c, p);
565 stv0299_writeregI(state, 0x05, 0x35); /* disable i2c repeater on stv0299 */
567 stv0299_set_FEC (state, p->u.qpsk.fec_inner);
568 stv0299_set_symbolrate (fe, p->u.qpsk.symbol_rate);
569 stv0299_writeregI(state, 0x22, 0x00);
570 stv0299_writeregI(state, 0x23, 0x00);
572 state->tuner_frequency = p->frequency;
573 state->fec_inner = p->u.qpsk.fec_inner;
574 state->symbol_rate = p->u.qpsk.symbol_rate;
576 return 0;
579 static int stv0299_get_frontend(struct dvb_frontend* fe, struct dvb_frontend_parameters * p)
581 struct stv0299_state* state = fe->demodulator_priv;
582 s32 derot_freq;
583 int invval;
585 derot_freq = (s32)(s16) ((stv0299_readreg (state, 0x22) << 8)
586 | stv0299_readreg (state, 0x23));
588 derot_freq *= (state->config->mclk >> 16);
589 derot_freq += 500;
590 derot_freq /= 1000;
592 p->frequency += derot_freq;
594 invval = stv0299_readreg (state, 0x0c) & 1;
595 if (state->config->invert) invval = (~invval) & 1;
596 p->inversion = invval ? INVERSION_ON : INVERSION_OFF;
598 p->u.qpsk.fec_inner = stv0299_get_fec (state);
599 p->u.qpsk.symbol_rate = stv0299_get_symbolrate (state);
601 return 0;
604 static int stv0299_sleep(struct dvb_frontend* fe)
606 struct stv0299_state* state = fe->demodulator_priv;
608 stv0299_writeregI(state, 0x02, 0x80);
609 state->initialised = 0;
611 return 0;
614 static int stv0299_get_tune_settings(struct dvb_frontend* fe, struct dvb_frontend_tune_settings* fesettings)
616 struct stv0299_state* state = fe->demodulator_priv;
618 fesettings->min_delay_ms = state->config->min_delay_ms;
619 if (fesettings->parameters.u.qpsk.symbol_rate < 10000000) {
620 fesettings->step_size = fesettings->parameters.u.qpsk.symbol_rate / 32000;
621 fesettings->max_drift = 5000;
622 } else {
623 fesettings->step_size = fesettings->parameters.u.qpsk.symbol_rate / 16000;
624 fesettings->max_drift = fesettings->parameters.u.qpsk.symbol_rate / 2000;
626 return 0;
629 static void stv0299_release(struct dvb_frontend* fe)
631 struct stv0299_state* state = fe->demodulator_priv;
632 kfree(state);
635 static struct dvb_frontend_ops stv0299_ops;
637 struct dvb_frontend* stv0299_attach(const struct stv0299_config* config,
638 struct i2c_adapter* i2c)
640 struct stv0299_state* state = NULL;
641 int id;
643 /* allocate memory for the internal state */
644 state = kmalloc(sizeof(struct stv0299_state), GFP_KERNEL);
645 if (state == NULL) goto error;
647 /* setup the state */
648 state->config = config;
649 state->i2c = i2c;
650 memcpy(&state->ops, &stv0299_ops, sizeof(struct dvb_frontend_ops));
651 state->initialised = 0;
652 state->tuner_frequency = 0;
653 state->symbol_rate = 0;
654 state->fec_inner = 0;
655 state->errmode = STATUS_BER;
657 /* check if the demod is there */
658 stv0299_writeregI(state, 0x02, 0x34); /* standby off */
659 msleep(200);
660 id = stv0299_readreg(state, 0x00);
662 /* register 0x00 contains 0xa1 for STV0299 and STV0299B */
663 /* register 0x00 might contain 0x80 when returning from standby */
664 if (id != 0xa1 && id != 0x80) goto error;
666 /* create dvb_frontend */
667 state->frontend.ops = &state->ops;
668 state->frontend.demodulator_priv = state;
669 return &state->frontend;
671 error:
672 kfree(state);
673 return NULL;
676 static struct dvb_frontend_ops stv0299_ops = {
678 .info = {
679 .name = "ST STV0299 DVB-S",
680 .type = FE_QPSK,
681 .frequency_min = 950000,
682 .frequency_max = 2150000,
683 .frequency_stepsize = 125, /* kHz for QPSK frontends */
684 .frequency_tolerance = 0,
685 .symbol_rate_min = 1000000,
686 .symbol_rate_max = 45000000,
687 .symbol_rate_tolerance = 500, /* ppm */
688 .caps = FE_CAN_FEC_1_2 | FE_CAN_FEC_2_3 | FE_CAN_FEC_3_4 |
689 FE_CAN_FEC_5_6 | FE_CAN_FEC_7_8 |
690 FE_CAN_QPSK |
691 FE_CAN_FEC_AUTO
694 .release = stv0299_release,
696 .init = stv0299_init,
697 .sleep = stv0299_sleep,
699 .set_frontend = stv0299_set_frontend,
700 .get_frontend = stv0299_get_frontend,
701 .get_tune_settings = stv0299_get_tune_settings,
703 .read_status = stv0299_read_status,
704 .read_ber = stv0299_read_ber,
705 .read_signal_strength = stv0299_read_signal_strength,
706 .read_snr = stv0299_read_snr,
707 .read_ucblocks = stv0299_read_ucblocks,
709 .diseqc_send_master_cmd = stv0299_send_diseqc_msg,
710 .diseqc_send_burst = stv0299_send_diseqc_burst,
711 .set_tone = stv0299_set_tone,
712 .set_voltage = stv0299_set_voltage,
713 .dishnetwork_send_legacy_command = stv0299_send_legacy_dish_cmd,
716 module_param(debug_legacy_dish_switch, int, 0444);
717 MODULE_PARM_DESC(debug_legacy_dish_switch, "Enable timing analysis for Dish Network legacy switches");
719 module_param(debug, int, 0644);
720 MODULE_PARM_DESC(debug, "Turn on/off frontend debugging (default:off).");
722 MODULE_DESCRIPTION("ST STV0299 DVB Demodulator driver");
723 MODULE_AUTHOR("Ralph Metzler, Holger Waechtler, Peter Schildmann, Felix Domke, "
724 "Andreas Oberritter, Andrew de Quincey, Kenneth Aafløy");
725 MODULE_LICENSE("GPL");
727 EXPORT_SYMBOL(stv0299_enable_plli2c);
728 EXPORT_SYMBOL(stv0299_writereg);
729 EXPORT_SYMBOL(stv0299_attach);