aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/lnbp22.h
diff options
context:
space:
mode:
authorIgor M. Liplianin <liplianin@me.by>2011-09-23 17:33:50 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-09-23 23:07:42 -0400
commit4e2c53fde651be6225d9f940c02b2eabc2f9591c (patch)
tree7427afe586aed591065cae6c6737be6f8df932b3 /drivers/media/dvb/frontends/lnbp22.h
parent600836cc7b049f3eb47e9b39f379aa4b0926188a (diff)
[media] dvb: Add support for pctv452e
Signed-off-by: Igor M. Liplianin <liplianin@me.by> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/frontends/lnbp22.h')
-rw-r--r--drivers/media/dvb/frontends/lnbp22.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/drivers/media/dvb/frontends/lnbp22.h b/drivers/media/dvb/frontends/lnbp22.h
new file mode 100644
index 000000000000..63e2dec7e68a
--- /dev/null
+++ b/drivers/media/dvb/frontends/lnbp22.h
@@ -0,0 +1,57 @@
1/*
2 * lnbp22.h - driver for lnb supply and control ic lnbp22
3 *
4 * Copyright (C) 2006 Dominik Kuhlen
5 * Based on lnbp21.h
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
11 *
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 * Or, point your browser to http://www.gnu.org/copyleft/gpl.html
23 *
24 *
25 * the project's page is at http://www.linuxtv.org
26 */
27
28#ifndef _LNBP22_H
29#define _LNBP22_H
30
31/* Enable */
32#define LNBP22_EN 0x10
33/* Voltage selection */
34#define LNBP22_VSEL 0x02
35/* Plus 1 Volt Bit */
36#define LNBP22_LLC 0x01
37
38#include <linux/dvb/frontend.h>
39
40#if defined(CONFIG_DVB_LNBP22) || \
41 (defined(CONFIG_DVB_LNBP22_MODULE) && defined(MODULE))
42/*
43 * override_set and override_clear control which system register bits (above)
44 * to always set & clear
45 */
46extern struct dvb_frontend *lnbp22_attach(struct dvb_frontend *fe,
47 struct i2c_adapter *i2c);
48#else
49static inline struct dvb_frontend *lnbp22_attach(struct dvb_frontend *fe,
50 struct i2c_adapter *i2c)
51{
52 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
53 return NULL;
54}
55#endif /* CONFIG_DVB_LNBP22 */
56
57#endif /* _LNBP22_H */