Changes between Version 8 and Version 9 of cma_driver


Ignore:
Timestamp:
Nov 11, 2014, 12:24:22 PM (10 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • cma_driver

    v8 v9  
    1818The addressable registers map is defined [source:soft/giet_vm/giet_drivers/cma_driver.h here].
    1919
    20  === unsigned int '''_cma_get_register'''( unsigned int channel,  unsigned int index ) ===
     20== __Access Functions__ ==
     21
     22=== __unsigned int '''_cma_get_register'''( unsigned int channel,  unsigned int index )__ ===
    2123This low_level function returns the value contained in register (index).
    2224
    23  === void '''_cma_set_register'''( unsigned int channel,  unsigned int index,  unsigned int value ) ===
     25 === __void '''_cma_set_register'''( unsigned int channel,  unsigned int index,  unsigned int value )__ ===
    2426This low_level function returns the value contained in register (index).
    2527
    26  === void '''_cma_start_channel'''( unsigned int       channel,
    27                          unsigned long long src_paddr,
    28                          unsigned int       src_nbufs,
    29                          unsigned long long dst_paddr,
    30                          unsigned int       dst_nbufs,
    31                          unsigned int       buf_length ) ===
     28 === __void '''_cma_channel_start'''( unsigned int channel,  unsigned long long src_paddr,  unsigned int  src_nbufs,  unsigned long long dst_paddr,  unsigned int dst_nbufs,  unsigned int buf_length )__ ===
    3229This function activates a chained buffer DMA channel.
    3330 * channel : CMA channel index.
     
    3734 * dst_nbufs : number of buffers in the destination chbuf.
    3835 * buf_length : single buffer length (bytes)
    39  * s
    4036
    41  === void '''_cma_stop_channel( unsigned int channel )
     37 === __void '''_cma_channel_stop'''( unsigned int channel )__ ===
    4238This function desactivates a chained buffer DMA channel.
    4339 * channel : CMA channel index.
    4440
    45  === void '''_cma_isr'''( unsigned int irq_type,  unsigned int irq_id,  unsigned int channel ) ===
     41== __Interrupt Service Routine__ ==
     42
     43 === __void '''_cma_isr'''( unsigned int irq_type,  unsigned int irq_id,  unsigned int channel )__ ===
    4644This Interrupt Service Routine handles the IRQ generated by a CMA channel.
    4745