// divisors of master clock for pacing
unsigned int divisor1;
unsigned int divisor2;
- unsigned int count; //number of samples remaining
+ volatile unsigned int count; //number of samples remaining
} cb_pcidas_private;
/*
if(dma_chan == 1 || dma_chan == 3)
{
// allocate dma buffer
- devpriv->dma_buffer = kmalloc(DAS16_DMA_SIZE, GFP_BUFFER | GFP_DMA);
+ devpriv->dma_buffer = kmalloc(DAS16_DMA_SIZE, GFP_KERNEL | GFP_DMA);
if(devpriv->dma_buffer == NULL)
return -ENOMEM;
if(request_dma(dma_chan, "das16"))
devpriv->dma1 = dma1;
}
devpriv->dma_buf_max_size = 0x1ff00;
- devpriv->dma_buf0 = kmalloc(devpriv->dma_buf_max_size, GFP_BUFFER | GFP_DMA);
+ devpriv->dma_buf0 = kmalloc(devpriv->dma_buf_max_size, GFP_KERNEL | GFP_DMA);
if(devpriv->dma_buf0 == NULL)
return -ENOMEM;
devpriv->dma_current_buf = devpriv->dma_buf0;
- devpriv->dma_buf1 = kmalloc(devpriv->dma_buf_max_size, GFP_BUFFER | GFP_DMA);
+ devpriv->dma_buf1 = kmalloc(devpriv->dma_buf_max_size, GFP_KERNEL | GFP_DMA);
if(devpriv->dma_buf1 == NULL)
return -ENOMEM;
flags = claim_dma_lock();
[1] - irq
[2] - dma channel
+References (from ftp://ftp.natinst.com/support/manuals):
+
+ 320360.pdf AT-A2150 User Manual
*/
#include <linux/kernel.h>
printk(" failed to allocate dma channel %i\n", dma);
return -EINVAL;
}
- devpriv->dma_buffer = kmalloc(A2150_DMA_BUFFER_SIZE, GFP_BUFFER | GFP_DMA);
+ devpriv->dma_buffer = kmalloc(A2150_DMA_BUFFER_SIZE, GFP_KERNEL | GFP_DMA);
if(devpriv->dma_buffer == NULL)
return -ENOMEM;