#define CODE_ID		"U2ND"
#define BOOT_PATTERN	"EST"
#define UP_PMON		1
#define UP_MAC		2
#define UP_CODE		3
#define UP_PIGGY	4

#define LINKSYS		7
#define CISCO		90

#define ENGLISH 	1
#define JAPANESE	2

#define	USA		1
#define	JAPAN		2
#define	EUROPE		3

#define	WRT54G		1
#define	WRT54GS		2


//#define LINKSYS_MODEL	WRT54G
#define LINKSYS_MODEL	WRT54GS

/***************************************
 * define country                      *
 * LOCALE=COUNTRY =                    *
 ***************************************/
#define COUNTRY		LOCALE
#define LOCALE		USA
//#define	LOCALE		JAPAN
//#define	LOCALE		EUROPE

/***************************************
 * define model name and code pattern  *
 * MODEL_NAME =                        *
 * CODE_PATTERN =                      *
 ***************************************/
 #define UI_STYLE	CISCO
#if LINKSYS_MODEL == WRT54GS
 #define CODE_PATTERN   "W54S"
 #define MODEL_NAME	"WRT54GS"
#else
 #define CODE_PATTERN   "W54G"
 #define MODEL_NAME	"WRT54G"
#endif
 #define	VENDOR		"LINKSYS"
 /*Barry add for Control Intel Flash Downgrade code*/
 #define INTEL_FLASH_SUPPORT_VERSION_FROM "v1.41.8"
 #define BCM4712_CHIP_SUPPORT_VERSION_FROM "v1.50.0"
 #define INTEL_FLASH_SUPPORT_BOOT_VERSION_FROM "v1.3"
 #define BCM4712_CHIP_SUPPORT_BOOT_VERSION_FROM "v2.0"

/***************************************
 * define language                     *
 * LANGUAGE =                          *
 ***************************************/
#if LOCALE == JAPAN
	#define	LANGUAGE	JAPANESE
#else
	#define LANGUAGE 	ENGLISH
#endif

/***************************************
 * define wireless max channel         *
 * WL_MAX_CHANNEL =                    *
 ***************************************/
#if LOCALE == JAPAN || LOCALE == EUROPE
	#define	WL_MAX_CHANNEL	"13"
#else
	#define WL_MAX_CHANNEL	"11"
#endif

/***************************************
 * define web file path                *
 * WEB_PAGE =                          *
 ***************************************/
#if UI_STYLE ==  CISCO
	#if LOCALE == JAPAN
		#define	WEB_PAGE	"cisco_wrt54g_jp"
	#else
		#define WEB_PAGE	"cisco_wrt54g_en"
	#endif
#else
	#if LOCALE == JAPAN
		#define	WEB_PAGE	"linksys_wrt54g_jp"
	#else
		#define WEB_PAGE	"linksys_wrt54g_en"
	#endif
#endif

/***************************************
 * check LOCALE
 ***************************************/
 #if LOCALE != JAPAN && LOCALE != USA && LOCALE != EUROPE
	#error	"The LOCALE for LINKSYS is error, must be USA, EUROPE or JAPAN"
 #endif
