This source file includes following definitions.
- atbm8830_attach
1
2
3
4
5
6
7
8
9 #ifndef __ATBM8830_H__
10 #define __ATBM8830_H__
11
12 #include <linux/dvb/frontend.h>
13 #include <linux/i2c.h>
14
15 #define ATBM8830_PROD_8830 0
16 #define ATBM8830_PROD_8831 1
17
18 struct atbm8830_config {
19
20
21 u8 prod;
22
23
24 u8 demod_address;
25
26
27 u8 serial_ts;
28
29
30 u8 ts_clk_gated;
31
32
33 u8 ts_sampling_edge;
34
35
36 u32 osc_clk_freq;
37
38
39 u32 if_freq;
40
41
42 u8 zif_swap_iq;
43
44
45 u8 agc_min;
46 u8 agc_max;
47 u8 agc_hold_loop;
48 };
49
50 #if IS_REACHABLE(CONFIG_DVB_ATBM8830)
51 extern struct dvb_frontend *atbm8830_attach(const struct atbm8830_config *config,
52 struct i2c_adapter *i2c);
53 #else
54 static inline
55 struct dvb_frontend *atbm8830_attach(const struct atbm8830_config *config,
56 struct i2c_adapter *i2c) {
57 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
58 return NULL;
59 }
60 #endif
61
62 #endif