static void handle_b_interrupt(struct comedi_device *dev,
struct comedi_subdevice *s,
- unsigned short b_status,
- unsigned int ao_mite_status)
+ unsigned short b_status)
{
if (b_status == 0xffff)
return;
}
}
#endif
-
- comedi_handle_events(dev, s);
}
static void ni_ai_munge(struct comedi_device *dev, struct comedi_subdevice *s,
unsigned short a_status;
unsigned short b_status;
unsigned int ai_mite_status = 0;
- unsigned int ao_mite_status = 0;
unsigned long flags;
#ifdef PCIDMA
struct ni_private *devpriv = dev->private;
#ifdef PCIDMA
if (devpriv->mite) {
unsigned long flags_too;
+ unsigned int m_status;
spin_lock_irqsave(&devpriv->mite_channel_lock, flags_too);
if (devpriv->ai_mite_chan)
dev->read_subdev);
if (s_ao && devpriv->ao_mite_chan) {
- ao_mite_status = mite_ack_linkc(devpriv->ao_mite_chan,
- s_ao);
- if (ao_mite_status & CHSR_LINKC)
+ m_status = mite_ack_linkc(devpriv->ao_mite_chan, s_ao);
+ if (m_status & CHSR_LINKC)
mite_sync_dma(devpriv->ao_mite_chan, s_ao);
}
ack_b_interrupt(dev, b_status);
if ((a_status & NISTC_AI_STATUS1_INTA) || (ai_mite_status & CHSR_INT))
handle_a_interrupt(dev, a_status, ai_mite_status);
- if (s_ao &&
- ((b_status & NISTC_AO_STATUS1_INTB) || (ao_mite_status & CHSR_INT)))
- handle_b_interrupt(dev, s_ao, b_status, ao_mite_status);
+ if (s_ao) {
+ if (b_status & NISTC_AO_STATUS1_INTB)
+ handle_b_interrupt(dev, s_ao, b_status);
+ /* handle any interrupt or dma events */
+ comedi_handle_events(dev, s_ao);
+ }
handle_gpct_interrupt(dev, 0);
handle_gpct_interrupt(dev, 1);
#ifdef PCIDMA