This source file includes following definitions.
- ts2020_attach
1
2
3
4
5
6
7
8
9
10 #ifndef TS2020_H
11 #define TS2020_H
12
13 #include <linux/dvb/frontend.h>
14
15 struct ts2020_config {
16 u8 tuner_address;
17 u32 frequency_div;
18
19
20
21
22 bool loop_through:1;
23
24
25
26
27 #define TS2020_CLK_OUT_DISABLED 0
28 #define TS2020_CLK_OUT_ENABLED 1
29 #define TS2020_CLK_OUT_ENABLED_XTALOUT 2
30 u8 clk_out:2;
31
32
33
34
35
36 u8 clk_out_div:5;
37
38
39 bool dont_poll:1;
40
41
42
43
44 struct dvb_frontend *fe;
45
46
47
48
49 u8 attach_in_use:1;
50
51
52
53
54 int (*get_agc_pwm)(struct dvb_frontend *fe, u8 *_agc_pwm);
55 };
56
57
58 #if IS_REACHABLE(CONFIG_DVB_TS2020)
59 extern struct dvb_frontend *ts2020_attach(
60 struct dvb_frontend *fe,
61 const struct ts2020_config *config,
62 struct i2c_adapter *i2c);
63 #else
64 static inline struct dvb_frontend *ts2020_attach(
65 struct dvb_frontend *fe,
66 const struct ts2020_config *config,
67 struct i2c_adapter *i2c)
68 {
69 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
70 return NULL;
71 }
72 #endif
73
74 #endif