Changeset 320 for soft/giet_vm/giet_drivers/cma_driver.c
- Timestamp:
- Jun 10, 2014, 12:33:23 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_drivers/cma_driver.c
r298 r320 12 12 // to display images, or with the SocLib vci_multi_nic controller to tranfer 13 13 // both RX and TX packets between NIC and memory buffers. 14 /////////////////////////////////////////////////////////////////////////////////// 14 // 15 // The SEG_DMA_BASE address must be defined in the hard_config.h file 16 //////////////////////////////////////////////////////////////////////////////////// 15 17 // Implementation notes: 16 18 // 1. The higher level access functions can be found in the fbf_driver and … … 22 24 23 25 #include <cma_driver.h> 24 #include <utils.h> // for seg_cma_base 25 #include <hard_config.h> // for X_IO / Y_IO 26 #include <hard_config.h> 27 #include <utils.h> 28 29 #if !defined(SEG_CMA_BASE) 30 # error: You must define SEG_CMA_BASE in the hard_config.h file 31 #endif 26 32 27 33 /////////////////////////////////////////////////////////////////////////////// … … 31 37 unsigned int index ) 32 38 { 33 unsigned int* vaddr = (unsigned int*) &seg_cma_base+39 unsigned int* vaddr = (unsigned int*)SEG_CMA_BASE + 34 40 CHBUF_CHANNEL_SPAN*channel + index; 35 41 return _io_extended_read( vaddr ); … … 43 49 unsigned int value ) 44 50 { 45 unsigned int* vaddr = (unsigned int*) &seg_cma_base+51 unsigned int* vaddr = (unsigned int*)SEG_CMA_BASE + 46 52 CHBUF_CHANNEL_SPAN*channel + index; 47 53 _io_extended_write( vaddr, value ); … … 55 61 unsigned int channel ) 56 62 { 57 _printf("\n[GIET ERROR] _cma_isr() no rimplemented\n");63 _printf("\n[GIET ERROR] _cma_isr() not implemented\n"); 58 64 _exit(); 59 65 }
Note: See TracChangeset
for help on using the changeset viewer.