b8be5d1be1a0e48c334d4acaa78cc85c08ef48f3
[profile/mobile/platform/kernel/u-boot-tm1.git] / arch / arm / include / asm / arch-sc9630 / dma_drvapi.h
1 /******************************************************************************
2  ** File Name:      dma_drvapi.h                                                 *
3  ** Author:         andy.chen                                                 *
4  ** DATE:           07/28/2010                                                *
5  ** Copyright:      2010 Spreatrum, Incoporated. All Rights Reserved.         *
6  ** Description:    This file define the basic interfaces of dma.             *
7  ******************************************************************************
8
9  ******************************************************************************
10  **                        Edit History                                       *
11  ** ------------------------------------------------------------------------- *
12  ** DATE           NAME             DESCRIPTION                               *
13  ** 07/28/2010     andy.chen        Create.                                   *
14  ******************************************************************************/
15 #ifndef _DMA_DRVAPI_H_
16 #define _DMA_DRVAPI_H_
17
18 /**---------------------------------------------------------------------------*
19  **                         Dependencies                                      *
20  **---------------------------------------------------------------------------*/
21 #include "sci_types.h"
22
23
24 /**---------------------------------------------------------------------------*
25  **                         Compiler Flag                                     *
26  **---------------------------------------------------------------------------*/
27 #ifdef   __cplusplus
28 extern   "C"
29 {
30 #endif
31
32 /**---------------------------------------------------------------------------*
33 **                          Micro Define
34 **---------------------------------------------------------------------------*/
35 /**---------------------------------------------------------------------------*
36  **                      Function  Prototype
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);
50
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);
63
64
65 #ifdef   __cplusplus
66 }
67 #endif
68
69 #endif //_DMA_DRVAPI_H_
70
71 /* End Of File  */
72
73