os/linux-2.6-tag--devboard-R2_10-4/arch/cris/arch-v32/drivers/elphel/cxdma.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void x313_dma_start (void)
 Start ETRAX DMA for the compressor.
int x313_dma_stop (void)
 Stop ETRAX DMA for the compressor.
unsigned long x313_dma_init (void)
 Using external dma 3 (input) with dma channel 9.
int x313_is_dma_on (void)
 tests if ETRAX DMA (for the FPGA compressor) is running


Function Documentation

unsigned long x313_dma_init ( void   ) 

Using external dma 3 (input) with dma channel 9.

dma channel 9 allocated for ext dma 3

setup source of hsh0, shs1

just in case - turn hsh0 off

make hsh1 DACK

Configure ext DMA 3

DMA configuration (bit 0 - enable, bit 1 - stop) - stopped

DMABufferLength = 0;

x313_dma_reset_jpeg();

Definition at line 207 of file cxdma.c.

void x313_dma_start ( void   ) 

Start ETRAX DMA for the compressor.

need to restore pointers after previous stop DMA - maybe later move there?

DMA_CHUNK==0x4000

last descriptor

not the last one

TODO: does flush here IS IT STILL NEEDED HERE?

NOTE: needs to be here (not in x313_dma_init) - word width is reset by channel reset !!!

32-bit transfers

point to the beginning of the buffer?

need this also?

updated

enable DMA in JPEG mode - now it is always JPEG (no raw DMA mode)

Definition at line 174 of file cxdma.c.

int x313_dma_stop ( void   ) 

Stop ETRAX DMA for the compressor.

Returns:
0

for testing - no reset DMA after acquisition

Definition at line 158 of file cxdma.c.

int x313_is_dma_on ( void   ) 

tests if ETRAX DMA (for the FPGA compressor) is running

Returns:
1 - DMA is on, 0 - DMA is off

Definition at line 150 of file cxdma.c.


Generated on Fri Nov 28 00:07:40 2008 for elphel by  doxygen 1.5.1