1 /* SPDX-License-Identifier: GPL-2.0 */
5 #include "dibx000_common.h"
7 struct dib9000_config {
9 u8 output_mpeg2_in_188_bytes;
11 struct dibx000_bandwidth_config *bw;
20 const u8 *microcode_B_fe_buffer;
21 u32 microcode_B_fe_size;
23 struct dibGPIOFunction gpio_function[2];
24 struct dibSubbandSelection subband;
29 #define DEFAULT_DIB9000_I2C_ADDRESS 18
31 #if IS_REACHABLE(CONFIG_DVB_DIB9000)
32 extern struct dvb_frontend *dib9000_attach(struct i2c_adapter *i2c_adap, u8 i2c_addr, const struct dib9000_config *cfg);
33 extern int dib9000_i2c_enumeration(struct i2c_adapter *host, int no_of_demods, u8 default_addr, u8 first_addr);
34 extern struct i2c_adapter *dib9000_get_tuner_interface(struct dvb_frontend *fe);
35 extern struct i2c_adapter *dib9000_get_i2c_master(struct dvb_frontend *fe, enum dibx000_i2c_interface intf, int gating);
36 extern int dib9000_set_gpio(struct dvb_frontend *fe, u8 num, u8 dir, u8 val);
37 extern int dib9000_fw_pid_filter_ctrl(struct dvb_frontend *fe, u8 onoff);
38 extern int dib9000_fw_pid_filter(struct dvb_frontend *fe, u8 id, u16 pid, u8 onoff);
39 extern int dib9000_firmware_post_pll_init(struct dvb_frontend *fe);
40 extern int dib9000_set_slave_frontend(struct dvb_frontend *fe, struct dvb_frontend *fe_slave);
41 extern struct dvb_frontend *dib9000_get_slave_frontend(struct dvb_frontend *fe, int slave_index);
42 extern struct i2c_adapter *dib9000_get_component_bus_interface(struct dvb_frontend *fe);
43 extern int dib9000_set_i2c_adapter(struct dvb_frontend *fe, struct i2c_adapter *i2c);
44 extern int dib9000_fw_set_component_bus_speed(struct dvb_frontend *fe, u16 speed);
46 static inline struct dvb_frontend *dib9000_attach(struct i2c_adapter *i2c_adap, u8 i2c_addr, struct dib9000_config *cfg)
48 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
52 static inline struct i2c_adapter *dib9000_get_i2c_master(struct dvb_frontend *fe, enum dibx000_i2c_interface intf, int gating)
54 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
58 static inline int dib9000_i2c_enumeration(struct i2c_adapter *host, int no_of_demods, u8 default_addr, u8 first_addr)
60 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
64 static inline struct i2c_adapter *dib9000_get_tuner_interface(struct dvb_frontend *fe)
66 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
70 static inline int dib9000_set_gpio(struct dvb_frontend *fe, u8 num, u8 dir, u8 val)
72 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
76 static inline int dib9000_fw_pid_filter_ctrl(struct dvb_frontend *fe, u8 onoff)
78 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
82 static inline int dib9000_fw_pid_filter(struct dvb_frontend *fe, u8 id, u16 pid, u8 onoff)
84 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
88 static inline int dib9000_firmware_post_pll_init(struct dvb_frontend *fe)
90 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
94 static inline int dib9000_set_slave_frontend(struct dvb_frontend *fe, struct dvb_frontend *fe_slave)
96 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
100 static inline struct dvb_frontend *dib9000_get_slave_frontend(struct dvb_frontend *fe, int slave_index)
102 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
106 static inline struct i2c_adapter *dib9000_get_component_bus_interface(struct dvb_frontend *fe)
108 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
112 static inline int dib9000_set_i2c_adapter(struct dvb_frontend *fe, struct i2c_adapter *i2c)
114 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
118 static inline int dib9000_fw_set_component_bus_speed(struct dvb_frontend *fe, u16 speed)
120 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);