*/
static int i_APCI3XXX_TestConversionStarted(struct comedi_device *dev)
{
- struct addi_private *devpriv = dev->private;
+ struct apci3xxx_private *devpriv = dev->private;
if ((readl(devpriv->dw_AiBase + 8) & 0x80000UL) == 0x80000UL)
return 1;
unsigned int *data)
{
const struct apci3xxx_boardinfo *this_board = comedi_board(dev);
- struct addi_private *devpriv = dev->private;
+ struct apci3xxx_private *devpriv = dev->private;
int i_ReturnValue = insn->n;
unsigned char b_TimeBase = 0;
unsigned char b_SingleDiff = 0;
unsigned int *data)
{
const struct apci3xxx_boardinfo *this_board = comedi_board(dev);
- struct addi_private *devpriv = dev->private;
+ struct apci3xxx_private *devpriv = dev->private;
int i_ReturnValue = insn->n;
unsigned char b_Configuration = (unsigned char) CR_RANGE(insn->chanspec);
unsigned char b_Channel = (unsigned char) CR_CHAN(insn->chanspec);
unsigned int *data)
{
const struct apci3xxx_boardinfo *board = comedi_board(dev);
- struct addi_private *devpriv = dev->private;
+ struct apci3xxx_private *devpriv = dev->private;
unsigned char b_Range = (unsigned char) CR_RANGE(insn->chanspec);
unsigned char b_Channel = (unsigned char) CR_CHAN(insn->chanspec);
unsigned int dw_Status = 0;
struct comedi_insn *insn,
unsigned int *data)
{
- struct addi_private *devpriv = dev->private;
+ struct apci3xxx_private *devpriv = dev->private;
int i_ReturnValue = insn->n;
unsigned char b_Command = 0;
struct comedi_insn *insn,
unsigned int *data)
{
- struct addi_private *devpriv = dev->private;
+ struct apci3xxx_private *devpriv = dev->private;
int i_ReturnValue = insn->n;
unsigned char b_ChannelCpt = 0;
unsigned int dw_ChannelMask = 0;
struct comedi_insn *insn,
unsigned int *data)
{
- struct addi_private *devpriv = dev->private;
+ struct apci3xxx_private *devpriv = dev->private;
unsigned char b_Channel = (unsigned char) CR_CHAN(insn->chanspec);
int i_ReturnValue = insn->n;
unsigned int *pls_ReadData = data;
struct comedi_insn *insn,
unsigned int *data)
{
- struct addi_private *devpriv = dev->private;
+ struct apci3xxx_private *devpriv = dev->private;
int i_ReturnValue = insn->n;
unsigned char b_Channel = (unsigned char) CR_CHAN(insn->chanspec);
unsigned char b_State = 0;
#include <linux/pci.h>
+#include <linux/interrupt.h>
+#include <linux/sched.h>
#include "../comedidev.h"
#include "comedi_fc.h"
#include "amcc_s5933.h"
-#include "addi-data/addi_common.h"
-
#ifndef COMEDI_SUBD_TTLIO
#define COMEDI_SUBD_TTLIO 11 /* Digital Input Output But TTL */
#endif
},
};
+struct apci3xxx_private {
+ int iobase;
+ int i_IobaseReserved;
+ void __iomem *dw_AiBase;
+ unsigned char b_AiInitialisation;
+ unsigned int ui_AiNbrofChannels; /* how many channels is measured */
+ unsigned int ui_AiReadData[32];
+ unsigned char b_EocEosInterrupt;
+ unsigned int ui_EocEosConversionTime;
+ unsigned char b_EocEosConversionTimeBase;
+ unsigned char b_SingelDiff;
+ struct task_struct *tsk_Current;
+ unsigned int ul_TTLPortConfiguration[10];
+};
+
#include "addi-data/hwdrv_apci3xxx.c"
static irqreturn_t apci3xxx_irq_handler(int irq, void *d)
{
struct comedi_device *dev = d;
- struct addi_private *devpriv = dev->private;
+ struct apci3xxx_private *devpriv = dev->private;
unsigned int status;
int i;
struct comedi_insn *insn,
unsigned int *data)
{
- struct addi_private *devpriv = dev->private;
+ struct apci3xxx_private *devpriv = dev->private;
data[1] = inl(devpriv->iobase + 32) & 0xf;
struct comedi_insn *insn,
unsigned int *data)
{
- struct addi_private *devpriv = dev->private;
+ struct apci3xxx_private *devpriv = dev->private;
unsigned int mask = data[0];
unsigned int bits = data[1];
static int apci3xxx_reset(struct comedi_device *dev)
{
- struct addi_private *devpriv = dev->private;
+ struct apci3xxx_private *devpriv = dev->private;
unsigned int val;
int i;
{
struct pci_dev *pcidev = comedi_to_pci_dev(dev);
const struct apci3xxx_boardinfo *board = NULL;
- struct addi_private *devpriv;
+ struct apci3xxx_private *devpriv;
struct comedi_subdevice *s;
int ret, n_subdevices;
static void apci3xxx_detach(struct comedi_device *dev)
{
- struct addi_private *devpriv = dev->private;
+ struct apci3xxx_private *devpriv = dev->private;
if (devpriv) {
if (dev->iobase)