bits=0xf00000;
}
- switch(insn->data[0]){
+ switch(data[0]){
case COMEDI_INPUT:
s->io_bits&=~bits;
break;
}
comedi_error(dev,"A/D read timeout");
- insn->data[i]=0;
+ data[i]=0;
pci9111_fifo_reset();
return -ETIME;
}
comedi_error(dev,"A/D insn timeout");
- insn->data[n]=0;
+ data[n]=0;
outl(0,dev->iobase+PCI9118_DELFIFO); // flush FIFO
return -ETIME;
mask = 1 << CR_CHAN(insn->chanspec);
- switch(insn->data[0])
+ switch(data[0])
{
case COMEDI_INPUT:
s->io_bits &= ~mask;
int lsb,msb;
int chan;
- lsb=insn->data[0]&0xff;
- msb=(insn->data[0]>>8)&0xf;
+ lsb=data[0]&0xff;
+ msb=(data[0]>>8)&0xf;
chan=CR_CHAN(insn->chanspec);
int lsb,msb;
int chan;
- lsb=insn->data[0]&0xff;
- msb=(insn->data[0]>>8)&0xf;
+ lsb=data[0]&0xff;
+ msb=(data[0]>>8)&0xf;
chan=CR_CHAN(insn->chanspec);
unsigned int bitstring, bit;
unsigned int chan = CR_CHAN(insn->chanspec);
- bitstring = ((chan&0x7)<<8)|(insn->data[insn->n-1]&0xff);
+ bitstring = ((chan&0x7)<<8)|(data[insn->n-1]&0xff);
for(bit=1<<(11-1);bit;bit>>=1){
outw(devpriv->cfg2 | ((bit&bitstring)?SDATA:0), dev->iobase + ATAO_CFG2);
{
if(insn->n!=2)return -EINVAL;
- insn->data[1] = 0;
+ data[1] = 0;
return 2;
}