unsigned char chanlistlen; /* number of scanlist */
#endif
unsigned char ai_ctrl;
- unsigned char IntControlReg; /* Interrupt control register */
+ unsigned char int_ctrl;
unsigned char ai_cfg;
char ai_neverending; /* we do unlimited AI */
unsigned int ai_do; /* what do AI? 0=nothing, 1 to 4 mode */
if (source > 3)
return -1; /* incorrect source */
devpriv->exttrg_users |= (1 << source);
- devpriv->IntControlReg |= PCI9118_INT_CTRL_DTRG;
- outl(devpriv->IntControlReg, dev->iobase + PCI9118_INT_CTRL_REG);
+ devpriv->int_ctrl |= PCI9118_INT_CTRL_DTRG;
+ outl(devpriv->int_ctrl, dev->iobase + PCI9118_INT_CTRL_REG);
outl(inl(devpriv->iobase_a + AMCC_OP_REG_INTCSR) | 0x1f00,
devpriv->iobase_a + AMCC_OP_REG_INTCSR);
/* allow INT in AMCC */
return -1; /* incorrect source */
devpriv->exttrg_users &= ~(1 << source);
if (!devpriv->exttrg_users) { /* shutdown ext trg intterrupts */
- devpriv->IntControlReg &= ~PCI9118_INT_CTRL_DTRG;
- if (!devpriv->IntControlReg) /* all IRQ disabled */
+ devpriv->int_ctrl &= ~PCI9118_INT_CTRL_DTRG;
+ if (!devpriv->int_ctrl) /* all IRQ disabled */
outl(inl(devpriv->iobase_a + AMCC_OP_REG_INTCSR) &
(~0x00001f00),
devpriv->iobase_a + AMCC_OP_REG_INTCSR);
/* disable int in AMCC */
- outl(devpriv->IntControlReg,
- dev->iobase + PCI9118_INT_CTRL_REG);
+ outl(devpriv->int_ctrl, dev->iobase + PCI9118_INT_CTRL_REG);
}
return 0;
}
devpriv->ai_neverending = 0;
devpriv->dma_actbuf = 0;
- if (!devpriv->IntControlReg)
+ if (!devpriv->int_ctrl)
outl(inl(devpriv->iobase_a + AMCC_OP_REG_INTCSR) | 0x1f00,
devpriv->iobase_a + AMCC_OP_REG_INTCSR);
/* allow INT in AMCC */
devpriv->ai12_startstop &= ~START_AI_INT;
s->async->inttrig = NULL;
- outl(devpriv->IntControlReg, dev->iobase + PCI9118_INT_CTRL_REG);
+ outl(devpriv->int_ctrl, dev->iobase + PCI9118_INT_CTRL_REG);
outl(devpriv->ai_cfg, dev->iobase + PCI9118_AI_CFG_REG);
if (devpriv->ai_do != 3) {
pci9118_start_pacer(dev, devpriv->ai_do);
/* activate EXT trigger */
if ((devpriv->ai_do == 1) || (devpriv->ai_do == 2))
- devpriv->IntControlReg |= PCI9118_INT_CTRL_TIMER;
+ devpriv->int_ctrl |= PCI9118_INT_CTRL_TIMER;
devpriv->ai_ctrl |= PCI9118_AI_CTRL_INT;
/* allow INT in AMCC */
if (!(devpriv->ai12_startstop & (START_AI_EXT | START_AI_INT))) {
- outl(devpriv->IntControlReg,
- dev->iobase + PCI9118_INT_CTRL_REG);
+ outl(devpriv->int_ctrl, dev->iobase + PCI9118_INT_CTRL_REG);
outl(devpriv->ai_cfg, dev->iobase + PCI9118_AI_CFG_REG);
if (devpriv->ai_do != 3) {
pci9118_start_pacer(dev, devpriv->ai_do);
devpriv->ai_ctrl |= PCI9118_AI_CTRL_SOFTG;
}
- outl(devpriv->IntControlReg,
- dev->iobase + PCI9118_INT_CTRL_REG);
+ outl(devpriv->int_ctrl, dev->iobase + PCI9118_INT_CTRL_REG);
}
return 0;
if (!(devpriv->ai12_startstop & (START_AI_EXT | START_AI_INT))) {
outl(devpriv->ai_cfg, dev->iobase + PCI9118_AI_CFG_REG);
- outl(devpriv->IntControlReg,
- dev->iobase + PCI9118_INT_CTRL_REG);
+ outl(devpriv->int_ctrl, dev->iobase + PCI9118_INT_CTRL_REG);
if (devpriv->ai_do != 3) {
pci9118_start_pacer(dev, devpriv->ai_do);
devpriv->ai_ctrl |= PCI9118_AI_CTRL_SOFTG;