Changes between Version 11 and Version 12 of cma_driver
- Timestamp:
- Nov 11, 2014, 1:24:04 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
cma_driver
v11 v12 20 20 == Access Functions == 21 21 22 === __unsigned int '''_cma_get_register'''( unsigned int channel, unsigned int index )__===22 === 1) unsigned int '''_cma_get_register'''( unsigned int channel, unsigned int index ) === 23 23 This low_level function returns the value contained in register (index). 24 24 25 === __void '''_cma_set_register'''( unsigned int channel, unsigned int index, unsigned int value )__===25 === 2) void '''_cma_set_register'''( unsigned int channel, unsigned int index, unsigned int value ) === 26 26 This low_level function returns the value contained in register (index). 27 27 28 === __void '''_cma_channel_start'''( unsigned int channel, unsigned long long src_paddr, unsigned int src_nbufs, unsigned long long dst_paddr, unsigned int dst_nbufs, unsigned int buf_length )__ ===28 === 3) void '''_cma_channel_start'''( unsigned int channel, unsigned long long src_paddr, unsigned int src_nbufs, unsigned long long dst_paddr, unsigned int dst_nbufs, unsigned int buf_length )__ === 29 29 This function activates a chained buffer DMA channel. 30 30 * channel : CMA channel index. … … 35 35 * buf_length : single buffer length (bytes) 36 36 37 === __void '''_cma_channel_stop'''( unsigned int channel )__===37 === 4) void '''_cma_channel_stop'''( unsigned int channel ) === 38 38 This function desactivates a chained buffer DMA channel. 39 39 * channel : CMA channel index. … … 41 41 == Interrupt Service Routine == 42 42 43 === __void '''_cma_isr'''( unsigned int irq_type, unsigned int irq_id, unsigned int channel )__===43 === 5) void '''_cma_isr'''( unsigned int irq_type, unsigned int irq_id, unsigned int channel ) === 44 44 A CMA IRQ is activated in case of memory access error for a specific CMA channel: 45 45 * SRC_DESC_ERROR : error accessing source chbuf descriptor