Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * Driver for Zarlink ZL10036 DVB-S silicon tuner
0004  *
0005  * Copyright (C) 2006 Tino Reichardt
0006  * Copyright (C) 2007-2009 Matthias Schwarzott <zzam@gentoo.de>
0007  */
0008 
0009 #ifndef DVB_ZL10036_H
0010 #define DVB_ZL10036_H
0011 
0012 #include <linux/i2c.h>
0013 #include <media/dvb_frontend.h>
0014 
0015 struct zl10036_config {
0016     u8 tuner_address;
0017     int rf_loop_enable;
0018 };
0019 
0020 #if IS_REACHABLE(CONFIG_DVB_ZL10036)
0021 /**
0022  * zl10036_attach - Attach a zl10036 tuner to the supplied frontend structure.
0023  *
0024  * @fe: Frontend to attach to.
0025  * @config: zl10036_config structure.
0026  * @i2c: pointer to struct i2c_adapter.
0027  * return: FE pointer on success, NULL on failure.
0028  */
0029 extern struct dvb_frontend *zl10036_attach(struct dvb_frontend *fe,
0030     const struct zl10036_config *config, struct i2c_adapter *i2c);
0031 #else
0032 static inline struct dvb_frontend *zl10036_attach(struct dvb_frontend *fe,
0033     const struct zl10036_config *config, struct i2c_adapter *i2c)
0034 {
0035     printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
0036     return NULL;
0037 }
0038 #endif
0039 
0040 #endif /* DVB_ZL10036_H */