]>
Commit | Line | Data |
---|---|---|
1da177e4 | 1 | /* |
776338e1 | 2 | * descriptions + helper functions for simple dvb plls. |
1da177e4 LT |
3 | */ |
4 | ||
5e9e7226 JS |
5 | #ifndef __DVB_PLL_H__ |
6 | #define __DVB_PLL_H__ | |
7 | ||
272bc4db AQ |
8 | #include <linux/i2c.h> |
9 | #include "dvb_frontend.h" | |
10 | ||
47a9991e MK |
11 | #define DVB_PLL_UNDEFINED 0 |
12 | #define DVB_PLL_THOMSON_DTT7579 1 | |
13 | #define DVB_PLL_THOMSON_DTT759X 2 | |
b6fd549e MK |
14 | #define DVB_PLL_LG_Z201 3 |
15 | #define DVB_PLL_UNKNOWN_1 4 | |
16 | #define DVB_PLL_TUA6010XS 5 | |
17 | #define DVB_PLL_ENV57H1XD5 6 | |
18 | #define DVB_PLL_TUA6034 7 | |
19 | #define DVB_PLL_TDA665X 8 | |
20 | #define DVB_PLL_TDED4 9 | |
21 | #define DVB_PLL_TDHU2 10 | |
22 | #define DVB_PLL_SAMSUNG_TBMV 11 | |
23 | #define DVB_PLL_PHILIPS_SD1878_TDA8261 12 | |
24 | #define DVB_PLL_OPERA1 13 | |
139dfeb2 | 25 | #define DVB_PLL_SAMSUNG_DTOS403IH102A 14 |
a104ed07 | 26 | #define DVB_PLL_SAMSUNG_TDTC9251DH0 15 |
f52c4853 | 27 | #define DVB_PLL_SAMSUNG_TBDU18132 16 |
9d5d75a9 | 28 | #define DVB_PLL_SAMSUNG_TBMU24112 17 |
d799ce57 | 29 | #define DVB_PLL_TDEE4 18 |
5fb67074 | 30 | #define DVB_PLL_THOMSON_DTT7520X 19 |
780dfef3 | 31 | |
272bc4db AQ |
32 | /** |
33 | * Attach a dvb-pll to the supplied frontend structure. | |
34 | * | |
35 | * @param fe Frontend to attach to. | |
36 | * @param pll_addr i2c address of the PLL (if used). | |
37 | * @param i2c i2c adapter to use (set to NULL if not used). | |
47a9991e | 38 | * @param pll_desc_id dvb_pll_desc to use. |
2bfe031d | 39 | * @return Frontend pointer on success, NULL on failure |
272bc4db | 40 | */ |
9b174527 | 41 | #if IS_REACHABLE(CONFIG_DVB_PLL) |
47ae9ae8 MK |
42 | extern struct dvb_frontend *dvb_pll_attach(struct dvb_frontend *fe, |
43 | int pll_addr, | |
44 | struct i2c_adapter *i2c, | |
47a9991e | 45 | unsigned int pll_desc_id); |
9ab1ba38 TP |
46 | #else |
47 | static inline struct dvb_frontend *dvb_pll_attach(struct dvb_frontend *fe, | |
48 | int pll_addr, | |
49 | struct i2c_adapter *i2c, | |
47a9991e | 50 | unsigned int pll_desc_id) |
9ab1ba38 | 51 | { |
271ddbf7 | 52 | printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); |
9ab1ba38 TP |
53 | return NULL; |
54 | } | |
55 | #endif | |
272bc4db | 56 | |
5e9e7226 | 57 | #endif |