tizen 2.4 release
[kernel/u-boot-tm1.git] / nand_fdl / common / src / virtual_com.c
1 /******************************************************************************
2  ** File Name:    model.c                                                     *
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 /*----------------------------------------------------------------------------*
15 **                        Dependencies                                        *
16 **---------------------------------------------------------------------------*/
17 #include "common.h"
18 #include <asm/arch/usb200_fdl.h>
19
20 /**---------------------------------------------------------------------------*
21 **                        Compiler Flag                                       *
22 **---------------------------------------------------------------------------*/
23 #ifdef   __cplusplus
24 extern   "C"
25 {
26 #endif
27
28 /*--------------------------- Local Data ------------------------------------*/
29 __align (4) const uint8 DeviceDescrSerial[] =
30 {
31     0x12, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x40,
32     0x82, 0x17, 0x00, 0x4d, 0x02, 0x02, 0x00, 0x00,
33     0x00, 0x01,
34     0x00, 0x00  // insert 2byte to becom one multip 4byte packet
35 };
36
37 __align (4) const uint8 ConfigDescrSerial_64[]  =
38 {
39     0x09,0x02,0x20,0x00,0x01,0x01,0x00,0xc0,
40     0x32,
41     0x09,0x04,0x00,0x00,0x02,0xff,0x00,0x00,
42     0x00,
43     0x07,0x05,0x85,0x02,0x40,0x00,0x00,  //Ep 1 In   64
44     0x07,0x05,0x06,0x02,0x40,0x00,0x00  //Ep 2 OUT  64
45
46 };
47
48
49 /*****************************************************************************/
50 //  Description:
51 //  Global resource dependence:
52 //  Author:         Daniel.Ding
53 //  Note:
54 /*****************************************************************************/
55 uint8 *UCOM_Get_DevDesc()
56 {
57     return (uint8 *) DeviceDescrSerial;
58 }
59 /*****************************************************************************/
60 //  Description:
61 //  Global resource dependence:
62 //  Author:         Daniel.Ding
63 //  Note:
64 /*****************************************************************************/
65
66 uint8 *UCOM_Get_CfgDesc()
67 {
68     return (uint8 *) ConfigDescrSerial_64;
69 }
70
71 /**---------------------------------------------------------------------------*
72 **                         Compiler Flag                                      *
73 **---------------------------------------------------------------------------*/
74 #ifdef   __cplusplus
75 }
76 #endif
77 // End