Ignore:
Timestamp:
Apr 3, 2014, 2:00:10 PM (11 years ago)
Author:
alain
Message:

Introducing pic driver and rdk driver

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_drivers/dma_driver.c

    r295 r298  
    174174}
    175175///////////////////////////////////////////////////////////////////////////////////
    176 // This function copies a source memory buffer to a destnation memory buffer,
     176// This function copies a source memory buffer to a destination memory buffer,
    177177// 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:
    179180// the DMA cluster and channel indexes are obtained from the processor index.
    180181// The source and destination buffers base addresses must be word aligned,
     
    196197    unsigned int procid    = _get_procid();
    197198    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);
    200199    unsigned int channel_id = procid%NB_PROCS_MAX;
    201200
Note: See TracChangeset for help on using the changeset viewer.