#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 UP_EOU_KEY	5

#define LINKSYS		7
#define PCI		9	// <remove the line>
#define ELSA		10	// <remove the line>
#define ALLNET		11	// <remove the line>
#define REENET		12	// 2003/06/21	<remove the line>
#define CISCO		90
#define	OTHER_OEM	99	// <remove the line>

#define ENGLISH 	1
#define JAPANESE	2
#define GERMAN		3
#define FRENCH		4
#define KOREAN		5

#define	USA		1
#define	JAPAN		2
#define	EUROPE		3
#define WW		4
#define GERMANY		5
#define	KOREA		6
#define	FRANCE		7

#define	WRT54G		1
#define	WRT54GS		2


#define LINKSYS_MODEL	WRT54G
//#define LINKSYS_MODEL	WRT54GS
//#define LINKSYS_MODEL   DPN            //For DPN
/***************************************
 * 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_WRT54GS   "W54S"
// #define MODEL_NAME_GS	"WRT54GS"
//#elif LINKSYS_MODEL == DPN  //DPN
// #define CODE_PATTERN   "WDPN"
// #define MODEL_NAME     "DPN"
//#else
 #define CODE_PATTERN_WRT54G   "W54G"
 #define MODEL_NAME	"DD-WRT"
//#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

 /***************************************
 * define language                     *
 * LANGUAGE =                          *
 * HTTP_CHARSET =		       *
 ***************************************/
//#if LOCALE == JAPAN
//	#define	LANGUAGE	JAPANESE
//	#define	HTTP_CHARSET	"shift-jis"
//#elif LOCALE == GERMANY
//	#define LANGUAGE	GERMAN
//	#define	HTTP_CHARSET	"iso-8859-1"
//#elif LOCALE == FRANCE
//	#define LANGUAGE	FRENCH
//	#define	HTTP_CHARSET	"iso-8859-1"
//#elif LOCALE == KOREA
//	#define LANGUAGE 	KOREAN
//	#define	HTTP_CHARSET	"euc-kr"
//#else
	#define LANGUAGE 	ENGLISH
	#define	HTTP_CHARSET	"iso-8859-1"
//#endif