V4L/DVB (13734): [Mantis] Initial go at an Event Manager
authorManu Abraham <abraham.manu@gmail.com>
Fri, 4 Dec 2009 08:04:18 +0000 (05:04 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 17 Jan 2010 13:55:33 +0000 (11:55 -0200)
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/mantis/Makefile
drivers/media/dvb/mantis/mantis_common.h
drivers/media/dvb/mantis/mantis_evm.c [new file with mode: 0644]

index fa9e806..38d0e6d 100644 (file)
@@ -3,6 +3,7 @@ mantis-objs =   mantis_core.o   \
                mantis_pci.o    \
                mantis_i2c.o    \
                mantis_dvb.o    \
+               mantis_evm.o    \
                mantis_pcmcia.o \
                mantis_vp1033.o \
                mantis_vp1034.o \
index 24fc6da..f9891eb 100644 (file)
@@ -77,6 +77,8 @@ struct mantis_hwconfig {
 };
 
 struct mantis_pci {
+       unsigned int            verbose;
+
        /*      PCI stuff               */
        u16                     vendor_id;
        u16                     device_id;
diff --git a/drivers/media/dvb/mantis/mantis_evm.c b/drivers/media/dvb/mantis/mantis_evm.c
new file mode 100644 (file)
index 0000000..c9359d6
--- /dev/null
@@ -0,0 +1,37 @@
+/*
+       Mantis PCI bridge driver
+
+       Copyright (C) 2005, 2006 Manu Abraham (abraham.manu@gmail.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.
+*/
+
+#include "mantis_common.h"
+#include "mantis_link.h"
+
+int mantis_evmgr_init(struct mantis_ca *ca)
+{
+       struct mantis_pci *mantis = ca->ca_priv;
+
+       dprintk(mantis->verbose, MANTIS_DEBUG, 1, "Initializing Mantis Host I/F Event manager");
+       return 0;
+}
+
+void mantis_evmgr_exit(struct mantis_ca *ca)
+{
+       struct mantis_pci *mantis = ca->ca_priv;
+
+       dprintk(mantis->verbose, MANTIS_DEBUG, 1, "Mantis Host I/F Event manager exiting");
+}