Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  *  Driver for Conexant CX24113/CX24128 Tuner (Satellite)
0004  *
0005  *  Copyright (C) 2007-8 Patrick Boettcher <pb@linuxtv.org>
0006  */
0007 
0008 #ifndef CX24113_H
0009 #define CX24113_H
0010 
0011 struct dvb_frontend;
0012 
0013 struct cx24113_config {
0014     u8 i2c_addr; /* 0x14 or 0x54 */
0015 
0016     u32 xtal_khz;
0017 };
0018 
0019 #if IS_REACHABLE(CONFIG_DVB_TUNER_CX24113)
0020 extern struct dvb_frontend *cx24113_attach(struct dvb_frontend *,
0021     const struct cx24113_config *config, struct i2c_adapter *i2c);
0022 
0023 extern void cx24113_agc_callback(struct dvb_frontend *fe);
0024 #else
0025 static inline struct dvb_frontend *cx24113_attach(struct dvb_frontend *fe,
0026     const struct cx24113_config *config, struct i2c_adapter *i2c)
0027 {
0028     printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
0029     return NULL;
0030 }
0031 
0032 static inline void cx24113_agc_callback(struct dvb_frontend *fe)
0033 {
0034     printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
0035 }
0036 #endif
0037 
0038 #endif /* CX24113_H */