This source file includes following definitions.
- dib3000mb_attach
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 #ifndef DIB3000_H
21 #define DIB3000_H
22
23 #include <linux/dvb/frontend.h>
24
25 struct dib3000_config
26 {
27
28 u8 demod_address;
29 };
30
31 struct dib_fe_xfer_ops
32 {
33
34 int (*pid_parse)(struct dvb_frontend *fe, int onoff);
35 int (*fifo_ctrl)(struct dvb_frontend *fe, int onoff);
36 int (*pid_ctrl)(struct dvb_frontend *fe, int index, int pid, int onoff);
37 int (*tuner_pass_ctrl)(struct dvb_frontend *fe, int onoff, u8 pll_ctrl);
38 };
39
40 #if IS_REACHABLE(CONFIG_DVB_DIB3000MB)
41 extern struct dvb_frontend* dib3000mb_attach(const struct dib3000_config* config,
42 struct i2c_adapter* i2c, struct dib_fe_xfer_ops *xfer_ops);
43 #else
44 static inline struct dvb_frontend* dib3000mb_attach(const struct dib3000_config* config,
45 struct i2c_adapter* i2c, struct dib_fe_xfer_ops *xfer_ops)
46 {
47 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
48 return NULL;
49 }
50 #endif
51
52 #endif