Ignore:
Timestamp:
Feb 10, 2015, 5:41:22 PM (10 years ago)
Author:
alain
Message:

Simplifying the CMA driver.

File:
1 edited

Legend:

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

    r456 r506  
    3434}
    3535
    36 ////////////////////////////////////////////////////
    37 void _cma_channel_start( unsigned int       channel,
    38                          unsigned long long src_paddr,
    39                          unsigned int       src_nbufs,
    40                          unsigned long long dst_paddr,
    41                          unsigned int       dst_nbufs,
    42                          unsigned int       buf_length )
    43 {
    44     _cma_set_register( channel, CHBUF_SRC_DESC , (unsigned int)(src_paddr & 0xFFFFFFFF) );
    45     _cma_set_register( channel, CHBUF_SRC_EXT  , (unsigned int)(src_paddr >> 32) );
    46     _cma_set_register( channel, CHBUF_SRC_NBUFS, src_nbufs );
    47     _cma_set_register( channel, CHBUF_DST_DESC , (unsigned int)(dst_paddr & 0xFFFFFFFF) );
    48     _cma_set_register( channel, CHBUF_DST_EXT  , (unsigned int)(dst_paddr >> 32) );
    49     _cma_set_register( channel, CHBUF_DST_NBUFS, dst_nbufs );
    50     _cma_set_register( channel, CHBUF_BUF_SIZE , buf_length );
    51     _cma_set_register( channel, CHBUF_PERIOD   , 300 );
    52     _cma_set_register( channel, CHBUF_RUN      , 1 );
    53 }
    54 
    55 //////////////////////////////////////////////
    56 void _cma_channel_stop( unsigned int channel )
    57 {
    58     _cma_set_register( channel, CHBUF_RUN, 0 );
    59 }
    6036
    6137//////////////////////////////////////
Note: See TracChangeset for help on using the changeset viewer.