summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/mt2060.h
diff options
context:
space:
mode:
authorPatrick Boettcher <pb@linuxtv.org>2006-03-25 09:19:18 +0100
committerPatrick Boettcher <pb@linuxtv.org>2006-03-25 09:19:18 +0100
commit43950da130503eeb6f9a9304aa7b7d482d535ad6 (patch)
tree6a893e6b28270f34ce882164bd3cac10f18cc4ba /linux/drivers/media/dvb/frontends/mt2060.h
parent9ca6c476f94c3fd38296dae63120868b534386f1 (diff)
downloadmediapointer-dvb-s2-43950da130503eeb6f9a9304aa7b7d482d535ad6.tar.gz
mediapointer-dvb-s2-43950da130503eeb6f9a9304aa7b7d482d535ad6.tar.bz2
Adding support for MT2060 and thus for some DVB-USB-devices based on it
From: Olivier DANET <odanet@caramail.com> - MT2060 tuner driver - Added support for some USB DVB-T devices based on Dib3000P Signed-off-by: Olivier DANET <odanet@caramail.com> Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/dvb/frontends/mt2060.h')
-rw-r--r--linux/drivers/media/dvb/frontends/mt2060.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/frontends/mt2060.h b/linux/drivers/media/dvb/frontends/mt2060.h
new file mode 100644
index 000000000..5ced83edd
--- /dev/null
+++ b/linux/drivers/media/dvb/frontends/mt2060.h
@@ -0,0 +1,42 @@
+/*
+ * Driver for Microtune MT2060 "Single chip dual conversion broadband tuner"
+ *
+ * Copyright (c) 2006 Olivier DANET <odanet@caramail.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ *
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.=
+ */
+
+#ifndef MT2060_H
+#define MT2060_H
+
+#include <linux/i2c.h>
+#include <linux/dvb/frontend.h>
+
+struct mt2060_config {
+ u8 i2c_address;
+ /* Shall we add settings for the discrete outputs ? */
+};
+
+struct mt2060_state {
+ struct mt2060_config *config;
+ struct i2c_adapter *i2c;
+};
+
+extern int mt2060_init(struct mt2060_state *state);
+extern int mt2060_set(struct mt2060_state *state, struct dvb_frontend_parameters *fep);
+extern int mt2060_attach(struct mt2060_state *state, struct mt2060_config *config, struct i2c_adapter *i2c);
+
+#endif