tizen 2.4 release
[profile/mobile/platform/kernel/u-boot-tm1.git] / arch / arm / include / asm / arch-sc8810 / virtual_com.h
1 /******************************************************************************
2  ** File Name:    virtual_com.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 _VIRTUAL_COM_H_
15 #define _VIRTUAL_COM_H_
16 /*----------------------------------------------------------------------------*
17  **                         Dependencies                                      *
18  **-------------------------------------------------------------------------- */
19 #include "common.h"
20 #include "usb_boot.h"
21 //#include "bsl_main.h"
22 #include "fdl_crc.h"
23 /**---------------------------------------------------------------------------*
24  **                             Compiler Flag                                 *
25  **---------------------------------------------------------------------------*/
26 #ifdef   __cplusplus
27 extern   "C"
28 {
29 #endif
30 /**----------------------------------------------------------------------------*
31 **                               Micro Define                                 **
32 **----------------------------------------------------------------------------*/
33
34 /**----------------------------------------------------------------------------*
35 **                             Data Prototype                                 **
36 **----------------------------------------------------------------------------*/
37 typedef struct usb_handle_tag
38 {
39     int        sio_state;
40     int        pkt_state;
41     int        baud_rate;
42     int        buf_size;
43     int        data_size;
44     int        *buf_ptr;
45     int        *write_ptr;
46     int        *read_ptr;
47 } usb_handle, *usb_handle_ptr;
48
49
50
51 /**----------------------------------------------------------------------------*
52 **                         Local Function Prototype                           **
53 **----------------------------------------------------------------------------*/
54
55 /**----------------------------------------------------------------------------*
56 **                           Function Prototype                               **
57 **----------------------------------------------------------------------------*/
58 /*****************************************************************************/
59 //  Description:
60 //  Global resource dependence:
61 //  Author:         Daniel.Ding
62 //  Note:
63 /*****************************************************************************/
64 char VCOM_GetChar (void);
65 /*****************************************************************************/
66 //  Description:
67 //  Global resource dependence:
68 //  Author:         Daniel.Ding
69 //  Note:
70 /*****************************************************************************/
71 void VCOM_GetDevDescriptor (char bDirection,short wValue,short wIndex ,short wLen);
72 /*****************************************************************************/
73 //  Description:
74 //  Global resource dependence:
75 //  Author:         Daniel.Ding
76 //  Note:
77 /*****************************************************************************/
78 void VCOM_VendorCommand (char bDirection,short wValue,short wIndex ,short wLen);
79 /*****************************************************************************/
80 //  Description:
81 //  Global resource dependence:
82 //  Author:         Daniel.Ding
83 //  Note:
84 /*****************************************************************************/
85 void VCOM_SetAddress (char bDirection,short wValue,short wIndex ,short wLen);
86 /*****************************************************************************/
87 //  Description:
88 //  Global resource dependence:
89 //  Author:         Daniel.Ding
90 //  Note:
91 /*****************************************************************************/
92 void VCOM_ClassCommand (char bDirection,short wValue,short wIndex ,short wLen);
93 /**----------------------------------------------------------------------------*
94 **                         Compiler Flag                                      **
95 **----------------------------------------------------------------------------*/
96 #ifdef   __cplusplus
97 }
98 #endif
99 /**---------------------------------------------------------------------------*/
100 #endif
101 // End