void __iomem *las1;
void __iomem *lcfg;
- unsigned long intCount; /* interrupt count */
long aiCount; /* total transfer size (samples) */
int transCount; /* # to transfer data. 0->1/2FIFO */
int flags; /* flag event modes */
if (!dev->attached)
return IRQ_NONE;
- devpriv->intCount++; /* DEBUG statistics */
-
fifoStatus = readl(devpriv->las0 + LAS0_ADC);
/* check for FIFO full, this automatically halts the ADC! */
if (!(fifoStatus & FS_ADC_NOT_FULL)) /* 0 -> full */
writew(devpriv->intMask, devpriv->las0 + LAS0_IT);
writel(0, devpriv->las0 + LAS0_ADC_FIFO_CLEAR);
writel(0, devpriv->las0 + LAS0_OVERRUN);
- devpriv->intCount = 0;
if (!dev->irq) /* we need interrupts for this */
return -ENXIO;