tizen 2.4 release
[profile/mobile/platform/kernel/u-boot-tm1.git] / arch / arm / include / asm / arch-tiger / drv_usb20.h
1 /******************************************************************************
2  ** File Name:    common.h                                                    *
3  ** Author:       Daniel.Ding                                                 *
4  ** DATE:         3/25/2005                                                    *
5  ** Copyright:    2005 Spreatrum, Incoporated. All Rights Reserved.           *
6  ** Description:                                                              *
7  ******************************************************************************/
8 /******************************************************************************
9  **                   Edit    History                                         *
10  **---------------------------------------------------------------------------*
11  ** DATE          NAME            DESCRIPTION                                 *
12  ** 3/25/2005      Daniel.Ding     Create.                                     *
13  ******************************************************************************/
14 #ifndef _USB20_DRV_H_
15 #define _USB20_DRV_H_
16 /*----------------------------------------------------------------------------*
17  **                         Dependencies                                      *
18  **-------------------------------------------------------------------------- */
19 #include "common.h"
20 #include "cmd_def.h"
21 //#include "sc6600m_reg.h"
22 #include "usb200_fdl.h"
23 /**---------------------------------------------------------------------------*
24  **                             Compiler Flag                                 *
25  **---------------------------------------------------------------------------*/
26 #ifdef   __cplusplus
27 extern   "C"
28 {
29 #endif
30 /**----------------------------------------------------------------------------*
31 **                               Micro Define                                 **
32 **----------------------------------------------------------------------------*/
33 #define USB_RECV_LIMIT  (0x400)
34
35 /**----------------------------------------------------------------------------*
36 **                             Data Prototype                                 **
37 **----------------------------------------------------------------------------*/
38
39 typedef struct USB_rx_buf_tag
40 {
41     volatile unsigned int  read;
42     volatile unsigned int  write;
43     volatile unsigned char usb_rx_buf[USB_RECV_LIMIT];
44 } USB_rx_buf_T, *USB_rx_buf_P;
45
46 /**----------------------------------------------------------------------------*
47 **                           Function Prototype                               **
48 **----------------------------------------------------------------------------*/
49 /*****************************************************************************/
50 //  Description:
51 //    Global resource dependence:
52 //  Author:         Daniel.Ding
53 //    Note:
54 /*****************************************************************************/
55 void USB_Init (unsigned long ext_clk26M);
56 /*****************************************************************************/
57 //  Description:
58 //    Global resource dependence:
59 //  Author:         Daniel.Ding
60 //    Note:
61 /*****************************************************************************/
62 int USB_EPxSendData (char ep_id ,unsigned int *pBuf,int len);
63
64 /**----------------------------------------------------------------------------*
65 **                         Compiler Flag                                      **
66 **----------------------------------------------------------------------------*/
67 #ifdef   __cplusplus
68 }
69 #endif
70 /**---------------------------------------------------------------------------*/
71 #endif
72 // End