Changeset 448 for soft/giet_vm/giet_drivers/cma_driver.c
- Timestamp:
- Nov 11, 2014, 4:10:53 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_drivers/cma_driver.c
r437 r448 34 34 35 35 //////////////////////////////////////////////////// 36 void _cma_ start_channel( unsigned int channel,36 void _cma_channel_start( unsigned int channel, 37 37 unsigned long long src_paddr, 38 38 unsigned int src_nbufs, … … 53 53 54 54 ////////////////////////////////////////////// 55 void _cma_ stop_channel( unsigned int channel )55 void _cma_channel_stop( unsigned int channel ) 56 56 { 57 _cma_set_register( channel, CHBUF_RUN 57 _cma_set_register( channel, CHBUF_RUN, 0 ); 58 58 } 59 59 … … 63 63 unsigned int channel ) 64 64 { 65 _puts("\n[GIET ERROR] _cma_isr() not implemented\n"); 66 _exit(); 65 // get CMA channel status 66 unsigned int status = _cma_get_register( channel, CHBUF_STATUS ); 67 68 if (status == CHANNEL_SRC_DESC_ERROR ) 69 _printf("\n[CMA WARNING] CMA channel %d blocked at cycle %d : " 70 "impossible access to source chbuf descriptor\n", 71 channel, _get_proctime() ); 72 73 else if (status == CHANNEL_SRC_DATA_ERROR ) 74 _printf("\n[CMA WARNING] CMA channel %d blocked at cycle %d : " 75 "impossible access to source data buffer\n", 76 channel, _get_proctime() ); 77 78 else if (status == CHANNEL_DST_DESC_ERROR ) 79 _printf("\n[CMA WARNING] CMA channel %d blocked at cycle %d : " 80 "impossible access to destination chbuf descriptor\n", 81 channel, _get_proctime() ); 82 83 else if (status == CHANNEL_DST_DATA_ERROR ) 84 _printf("\n[CMA WARNING] CMA channel %d blocked at cycle %d : " 85 "impossible access to destination data buffer\n", 86 channel, _get_proctime() ); 87 88 else 89 _printf("\n[CMA WARNING] CMA channel %d : " 90 "... strange IRQ received, but channel not blocked...", 91 channel, _get_proctime() ); 92 93 // acknowledge IRQ 94 _cma_set_register( channel, CHBUF_RUN, 0 ); 67 95 } 68 96
Note: See TracChangeset
for help on using the changeset viewer.