blob: 8d14d731f0a9f9d14fc5ef96be809908f36da31e [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001/*******************************************************************************
2* °æÈ¨ËùÓÐ (C)2010, ÉîÛÚÊÐÖÐÐËͨѶ¹É·ÝÓÐÏÞ¹«Ë¾¡£
3*
4* ÎļþÃû³Æ£º global.c
5* Îļþ±êʶ£º
6* ÄÚÈÝÕªÒª£º È«¾Ö±äÁ¿¼°³õʼ»¯
7* ÆäËü˵Ã÷£º
8* µ±Ç°°æ±¾£º 1.0
9* ×÷¡¡¡¡Õߣº ÎÌÔÆ·å
10* Íê³ÉÈÕÆÚ£º
11*******************************************************************************/
12#ifndef __GLOBAL_H_
13#define __GLOBAL_H_
14#include "common.h"
15
16#include "dwc_otg_driver.h"
17
18
19struct g_data
20{
21 dwc_otg_device_t g_dwc_otg_dev_t;
22 u32 dwRxQuit;
23 u32 dwTxQuit;
24 u32 g_Connet;
25 u32 g_USB_MODE;
26 u32 g_USB_TIMEOUT;
27 u16 g_status_buf;
28 int g_State;
29 int g_bootfinish;
30 int g_bootaddr;
31 int g_bootsize;
32 int g_boot_save_size;
33 int g_boot_save_addr;
34
35 dwc_otg_core_if_t core_if_t;
36 dwc_otg_dev_if_t dev_if_t;
37 dwc_otg_core_params_t g_core_params;
38
39 u32 g_in_pPara[3];
40 u32 g_out_pPara[3];
41 u_setup_pkt g_u_setup_pkt[sizeof(u_setup_pkt)*5];
42 dwc_otg_pcd_t g_dwc_otg_pcd_tp;
43 u32 g_pll_cfg;
44 int g_enum;
45};
46
47extern struct g_data global;
48//extern dwc_config_all_t desc;
49extern dwc_config_all_t g_config_desc;
50#endif
51