int lsb, msb;
int chan;
- lsb = data[0] & 0xff;
- msb = (data[0] >> 8) & 0xf;
-
chan = CR_CHAN(insn->chanspec);
for (n = 0; n < insn->n; n++) {
+ lsb = data[n] & 0xff;
+ msb = (data[n] >> 8) & 0xf;
#if 0
outb(lsb, dev->iobase + devpriv->ao_offset_lsb[chan]);
outb(msb, dev->iobase + devpriv->ao_offset_msb[chan]);
int lsb, msb;
int chan;
- lsb = data[0] & 0xff;
- msb = (data[0] >> 8) & 0xf;
-
chan = CR_CHAN(insn->chanspec);
for (n = 0; n < insn->n; n++) {
+ lsb = data[n] & 0xff;
+ msb = (data[n] >> 8) & 0xf;
#if 0
outb(lsb, dev->iobase + devpriv->ao_offset_lsb[chan]);
outb(msb, dev->iobase + devpriv->ao_offset_msb[chan]);
{
int chan = insn->chanspec;
+ if (insn->n == 0)
+ return 0;
+
//printk("Reading counter channel %d ",chan);
data[0] = i8254_read_channel(&devpriv->i8254, chan);
//printk("=> 0x%08X\n",data[0]);
{
int chan = insn->chanspec;
+ if (insn->n == 0)
+ return 0;
+
//printk("Writing counter channel %d with 0x%04X\n",chan,data[0]);
i8254_write_channel(&devpriv->i8254, chan, data[0]);