Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003     Conexant cx24116/cx24118 - DVBS/S2 Satellite demod/tuner driver
0004 
0005     Copyright (C) 2006 Steven Toth <stoth@linuxtv.com>
0006 
0007 */
0008 
0009 #ifndef CX24116_H
0010 #define CX24116_H
0011 
0012 #include <linux/dvb/frontend.h>
0013 
0014 struct cx24116_config {
0015     /* the demodulator's i2c address */
0016     u8 demod_address;
0017 
0018     /* Need to set device param for start_dma */
0019     int (*set_ts_params)(struct dvb_frontend *fe, int is_punctured);
0020 
0021     /* Need to reset device during firmware loading */
0022     int (*reset_device)(struct dvb_frontend *fe);
0023 
0024     /* Need to set MPEG parameters */
0025     u8 mpg_clk_pos_pol:0x02;
0026 
0027     /* max bytes I2C provider can write at once */
0028     u16 i2c_wr_max;
0029 };
0030 
0031 #if IS_REACHABLE(CONFIG_DVB_CX24116)
0032 extern struct dvb_frontend *cx24116_attach(
0033     const struct cx24116_config *config,
0034     struct i2c_adapter *i2c);
0035 #else
0036 static inline struct dvb_frontend *cx24116_attach(
0037     const struct cx24116_config *config,
0038     struct i2c_adapter *i2c)
0039 {
0040     printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
0041     return NULL;
0042 }
0043 #endif
0044 
0045 #endif /* CX24116_H */