1 /******************************************************************************
2 ** File Name: dma_drvapi.h *
5 ** Copyright: 2010 Spreatrum, Incoporated. All Rights Reserved. *
6 ** Description: This file define the basic interfaces of dma. *
7 ******************************************************************************
9 ******************************************************************************
11 ** ------------------------------------------------------------------------- *
12 ** DATE NAME DESCRIPTION *
13 ** 07/28/2010 andy.chen Create. *
14 ******************************************************************************/
15 #ifndef _DMA_DRVAPI_H_
16 #define _DMA_DRVAPI_H_
18 /**---------------------------------------------------------------------------*
20 **---------------------------------------------------------------------------*/
21 #include "sci_types.h"
24 /**---------------------------------------------------------------------------*
26 **---------------------------------------------------------------------------*/
32 /**---------------------------------------------------------------------------*
34 **---------------------------------------------------------------------------*/
35 /**---------------------------------------------------------------------------*
37 **---------------------------------------------------------------------------*/
38 /*****************************************************************************/
39 // Description: dma memcpy
40 // Global resource dependence:
41 // Author: weihua.wang
42 // input param des_address: New buffer
43 // src_address: Buffer to copy from
44 // count : Number of characters to copy in bytes
45 // return value zero : param error or no available channel
46 // other value: writed in bytes
47 // Note: soft dma operation
48 /*****************************************************************************/
49 PUBLIC uint32 DMA_HAL_Memcpy (void *des, void *src, uint32 count);
51 /*****************************************************************************/
52 // Description: dma memset
53 // Global resource dependence:
54 // Author: weihua.wang
55 // input param des_address: New buffer
56 // value : value to set
57 // count : Number of characters to copy in bytes
58 // return value zero : param error or no available channel
59 // other value: writed in bytes
60 // Note: soft dma operation
61 /*****************************************************************************/
62 PUBLIC uint32 DMA_HAL_Memset (void *des, uint8 value, uint32 count);
69 #endif //_DMA_DRVAPI_H_