Changes between Version 8 and Version 9 of cma_driver
- Timestamp:
- Nov 11, 2014, 12:24:22 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
cma_driver
v8 v9 18 18 The addressable registers map is defined [source:soft/giet_vm/giet_drivers/cma_driver.h here]. 19 19 20 === unsigned int '''_cma_get_register'''( unsigned int channel, unsigned int index ) === 20 == __Access Functions__ == 21 22 === __unsigned int '''_cma_get_register'''( unsigned int channel, unsigned int index )__ === 21 23 This low_level function returns the value contained in register (index). 22 24 23 === void '''_cma_set_register'''( unsigned int channel, unsigned int index, unsigned int value )===25 === __void '''_cma_set_register'''( unsigned int channel, unsigned int index, unsigned int value )__ === 24 26 This low_level function returns the value contained in register (index). 25 27 26 === void '''_cma_start_channel'''( unsigned int channel, 27 unsigned long long src_paddr, 28 unsigned int src_nbufs, 29 unsigned long long dst_paddr, 30 unsigned int dst_nbufs, 31 unsigned int buf_length ) === 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 )__ === 32 29 This function activates a chained buffer DMA channel. 33 30 * channel : CMA channel index. … … 37 34 * dst_nbufs : number of buffers in the destination chbuf. 38 35 * buf_length : single buffer length (bytes) 39 * s40 36 41 === void '''_cma_stop_channel( unsigned int channel )37 === __void '''_cma_channel_stop'''( unsigned int channel )__ === 42 38 This function desactivates a chained buffer DMA channel. 43 39 * channel : CMA channel index. 44 40 45 === void '''_cma_isr'''( unsigned int irq_type, unsigned int irq_id, unsigned int channel ) === 41 == __Interrupt Service Routine__ == 42 43 === __void '''_cma_isr'''( unsigned int irq_type, unsigned int irq_id, unsigned int channel )__ === 46 44 This Interrupt Service Routine handles the IRQ generated by a CMA channel. 47 45