[PATCH] dvb: Add generalized dvb-usb driver
[linux-2.6.git] / drivers / media / dvb / frontends / dvb-pll.h
1 /*
2  * descriptions + helper functions for simple dvb plls.
3  */
4
5 #ifndef __DVB_PLL_H__
6 #define __DVB_PLL_H__
7
8 struct dvb_pll_desc {
9         char *name;
10         u32  min;
11         u32  max;
12         void (*setbw)(u8 *buf, int bandwidth);
13         int  count;
14         struct {
15                 u32 limit;
16                 u32 offset;
17                 u32 stepsize;
18                 u8  cb1;
19                 u8  cb2;
20         } entries[12];
21 };
22
23 extern struct dvb_pll_desc dvb_pll_thomson_dtt7579;
24 extern struct dvb_pll_desc dvb_pll_thomson_dtt759x;
25 extern struct dvb_pll_desc dvb_pll_thomson_dtt7610;
26 extern struct dvb_pll_desc dvb_pll_lg_z201;
27 extern struct dvb_pll_desc dvb_pll_unknown_1;
28
29 extern struct dvb_pll_desc dvb_pll_tua6010xs;
30 extern struct dvb_pll_desc dvb_pll_env57h1xd5;
31 extern struct dvb_pll_desc dvb_pll_tua6034;
32 extern struct dvb_pll_desc dvb_pll_tda665x;
33
34 int dvb_pll_configure(struct dvb_pll_desc *desc, u8 *buf,
35                       u32 freq, int bandwidth);
36
37 #endif