offset: sizeof(waveform_board),
num_names: sizeof(waveform_boards) / sizeof(waveform_board),
};
+COMEDI_INITCLEANUP(driver_waveform);
static int waveform_ai_cmdtest(comedi_device *dev,comedi_subdevice *s,
comedi_cmd *cmd);
It should run in the background; therefore it is scheduled by
a timer mechanism.
*/
-void waveform_ai_interrupt(unsigned long arg)
+static void waveform_ai_interrupt(unsigned long arg)
{
comedi_device *dev = (comedi_device*) arg;
comedi_async *async = dev->read_subdev->async;
}
// divides an unsigned long long
-unsigned long long my_ull_div(unsigned long long numerator, unsigned long denominator)
+static unsigned long long my_ull_div(unsigned long long numerator, unsigned long denominator)
{
u32 value;
unsigned long long remainder;
return insn->n;
}
-COMEDI_INITCLEANUP(driver_waveform);
-
/*
- * comedi/drivers/icp_multi.c
- *
- * Author: Anne Smorthit <anne.smorthit@sfwte.ch>
- *
- *
- * hardware driver for Inova cards:
- * card: ICP_MULTI
- * driver: icp_multi
- *
- * Options:
- * [0] - PCI bus number - if bus number and slot number are 0,
- * then driver search for first unused card
- * [1] - PCI slot number
- *
+ comedi/drivers/icp_multi.c
+
+ COMEDI - Linux Control and Measurement Device Interface
+ Copyright (C) 1997-2002 David A. Schleef <ds@schleef.org>
+
+ 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.
+
+*/
+
+
+/*
+Driver: icp_multi.o
+Author: Anne Smorthit <anne.smorthit@sfwte.ch>
+Devices: [Inova] ICP_MULTI (icp_multi)
+
+Options:
+ [0] - PCI bus number - if bus number and slot number are 0,
+ then driver search for first unused card
+ [1] - PCI slot number
*/
#include <linux/kernel.h>
icp_multi_reset(dev);
if (dev->irq)
- free_irq(dev->irq,dev);
+ comedi_free_irq(dev->irq,dev);
if (dev->iobase) {
iounmap(devpriv->io_addr);