Skip to content
Snippets Groups Projects
Commit bf30af07 authored by Ezekiel Dohmen's avatar Ezekiel Dohmen
Browse files

Merge branch 'nicer_dma_switch' into 'master'

Reduce foot print of cycle1 -> cycle2 dma size change for fast adcs.

See merge request cds/advligorts!298
parents b81646e4 53e5b5cc
No related branches found
No related tags found
2 merge requests!439RCG 5.0 release fro deb 10,!298Reduce foot print of cycle1 -> cycle2 dma size change for fast adcs.
......@@ -443,7 +443,7 @@ iop_adc_read( adcInfo_t* adcinfo, int cpuClk[] )
*packedData = DUMMY_ADC_VAL;
if ( first_adc_read )
{
plx9056_adc_dma_setup(card,
plx9056_adc_dma_set_size(card,
cdsPciModules.adcChannels[ card ] * UNDERSAMPLE * 4 );
}
plx9056_adc_dma_start( card );
......
......@@ -81,6 +81,17 @@ plx9056_adc_dma_setup( int module, int dma_bytes )
adcDma[ module ]->DMA0_DESC = PLX_DMA_TO_PCI;
}
// *****************************************************************************
/// \brief Function changes the DMA size of an existing DMA setup
/// called between cycle 1 and cycle 2 for fast ADCs
/// @param[in] module ID of ADC board
/// @param[in] new size for the DMA xfer in number of bytes
void
plx9056_adc_dma_set_size( int module, int dma_bytes )
{
adcDma[ module ]->DMA0_BTC = dma_bytes;
}
// *****************************************************************************
/// \brief Function sets up starts Demand DMA for ADC modules.
/// Called once on startup.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment