blob: 1d07639169721ff2975a12324f2147144842c44f [file] [log] [blame]
Thomas Gleixnerc942fdd2019-05-27 08:55:06 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
Linus Torvalds1da177e2005-04-16 15:20:36 -07002/*
3 * Support for OR51211 (pcHDTV HD-2000) - VSB
4 *
5 * Copyright (C) 2005 Kirk Lapray <kirk_lapray@bigfoot.com>
Linus Torvalds1da177e2005-04-16 15:20:36 -07006*/
7
8#ifndef OR51211_H
9#define OR51211_H
10
11#include <linux/dvb/frontend.h>
12#include <linux/firmware.h>
13
14struct or51211_config
15{
16 /* The demodulator's i2c address */
17 u8 demod_address;
18
19 /* Request firmware for device */
20 int (*request_firmware)(struct dvb_frontend* fe, const struct firmware **fw, char* name);
21 void (*setmode)(struct dvb_frontend * fe, int mode);
22 void (*reset)(struct dvb_frontend * fe);
23 void (*sleep)(struct dvb_frontend * fe);
24};
25
Arnd Bergmann9b174522015-02-18 14:12:42 -030026#if IS_REACHABLE(CONFIG_DVB_OR51211)
Linus Torvalds1da177e2005-04-16 15:20:36 -070027extern struct dvb_frontend* or51211_attach(const struct or51211_config* config,
28 struct i2c_adapter* i2c);
Andrew de Quincey102a3422006-08-08 09:10:08 -030029#else
30static inline struct dvb_frontend* or51211_attach(const struct or51211_config* config,
31 struct i2c_adapter* i2c)
32{
Harvey Harrison271ddbf2008-04-08 23:20:00 -030033 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
Andrew de Quincey102a3422006-08-08 09:10:08 -030034 return NULL;
35}
36#endif // CONFIG_DVB_OR51211
Linus Torvalds1da177e2005-04-16 15:20:36 -070037
38#endif // OR51211_H
39