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 |
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.
References ccam_dma_buf_ptr, D0, MD7, printk, udelay, and x313_setDMABuffer().
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.
References ccam_dma_buf_ptr, CCAM_DMA_SIZE, DMA_CHUNK, EXT_DMA_0_START, MD12, port_csp0_addr, printk, and X313_WA_DMACR.
int x313_dma_stop | ( | void | ) |
Stop ETRAX DMA for the compressor.
for testing - no reset DMA after acquisition
Definition at line 158 of file cxdma.c.
References EXT_DMA_0_STOP, MD12, port_csp0_addr, printk, udelay, and X313_WA_DMACR.
int x313_is_dma_on | ( | void | ) |