/******************************************************************************* | |
* °æÈ¨ËùÓÐ (C)2010, ÉîÛÚÊÐÖÐÐËͨѶ¹É·ÝÓÐÏÞ¹«Ë¾¡£ | |
* | |
* ÎļþÃû³Æ£º global.c | |
* Îļþ±êʶ£º | |
* ÄÚÈÝÕªÒª£º È«¾Ö±äÁ¿¼°³õʼ»¯ | |
* ÆäËü˵Ã÷£º | |
* µ±Ç°°æ±¾£º 1.0 | |
* ×÷¡¡¡¡Õߣº ÎÌÔÆ·å | |
* Íê³ÉÈÕÆÚ£º | |
*******************************************************************************/ | |
#ifndef __GLOBAL_H_ | |
#define __GLOBAL_H_ | |
#include "common.h" | |
#include "usb_config.h" | |
#include <linux/types.h> | |
#include "dwc_otg_driver.h" | |
struct g_data | |
{ | |
dwc_otg_device_t g_dwc_otg_dev_t; | |
u32 dwRxQuit; | |
u32 dwTxQuit; | |
u32 g_Connet; | |
u32 g_USB_MODE; | |
u32 g_USB_TIMEOUT; | |
u16 g_status_buf; | |
int g_State; | |
int g_bootfinish; | |
int g_bootaddr; | |
int g_bootsize; | |
int g_boot_save_size; | |
int g_boot_save_addr; | |
dwc_otg_core_if_t core_if_t; | |
dwc_otg_dev_if_t dev_if_t; | |
dwc_otg_core_params_t g_core_params; | |
u32 g_in_pPara[3]; | |
u32 g_out_pPara[3]; | |
u_setup_pkt g_u_setup_pkt[sizeof(u_setup_pkt)*5]; | |
dwc_otg_pcd_t g_dwc_otg_pcd_tp; | |
u32 g_pll_cfg; | |
int g_enum; | |
}; | |
extern struct g_data global; | |
extern dwc_config_all_t g_config_desc; | |
#endif | |
extern void data_init(void); | |