Changeset 298 for soft/giet_vm/giet_drivers/dma_driver.c
- Timestamp:
- Apr 3, 2014, 2:00:10 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_drivers/dma_driver.c
r295 r298 174 174 } 175 175 /////////////////////////////////////////////////////////////////////////////////// 176 // This function copies a source memory buffer to a dest nation memory buffer,176 // This function copies a source memory buffer to a destination memory buffer, 177 177 // using the distributed DMA. As it makes virtual to physical address translation, 178 // the MMU should be activated. As there is one DMA channel per processor, 178 // the MMU should be activated. 179 // This driver makes the assumption that each processor has a private DMA channel: 179 180 // the DMA cluster and channel indexes are obtained from the processor index. 180 181 // The source and destination buffers base addresses must be word aligned, … … 196 197 unsigned int procid = _get_procid(); 197 198 unsigned int cluster_xy = procid/NB_PROCS_MAX; 198 unsigned int x = cluster_xy >> Y_WIDTH;199 unsigned int y = cluster_xy & ((1<<Y_WIDTH)-1);200 199 unsigned int channel_id = procid%NB_PROCS_MAX; 201 200
Note: See TracChangeset
for help on using the changeset viewer.