1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Driver for Xceive XC5000 "QAM/8VSB single chip tuner"
5 * Copyright (c) 2007 Steven Toth <stoth@linuxtv.org>
11 #include <linux/firmware.h>
19 struct xc5000_config
{
29 /* xc5000 callback command */
30 #define XC5000_TUNER_RESET 0
32 /* Possible Radio inputs */
33 #define XC5000_RADIO_NOT_CONFIGURED 0
34 #define XC5000_RADIO_FM1 1
35 #define XC5000_RADIO_FM2 2
36 #define XC5000_RADIO_FM1_MONO 3
38 /* For each bridge framework, when it attaches either analog or digital,
39 * it has to store a reference back to its _core equivalent structure,
40 * so that it can service the hardware by steering gpio's etc.
41 * Each bridge implementation is different so cast devptr accordingly.
42 * The xc5000 driver cares not for this value, other than ensuring
43 * it's passed back to a bridge during tuner_callback().
46 #if IS_REACHABLE(CONFIG_MEDIA_TUNER_XC5000)
47 extern struct dvb_frontend
*xc5000_attach(struct dvb_frontend
*fe
,
48 struct i2c_adapter
*i2c
,
49 const struct xc5000_config
*cfg
);
51 static inline struct dvb_frontend
*xc5000_attach(struct dvb_frontend
*fe
,
52 struct i2c_adapter
*i2c
,
53 const struct xc5000_config
*cfg
)
55 printk(KERN_WARNING
"%s: driver disabled by Kconfig\n", __func__
);