diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2015-01-03 13:58:15 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2015-01-03 13:58:15 +0100 |
commit | 4aca87515a5083ae0e31ce3177189fd43b6d05ac (patch) | |
tree | 7b1d9a31393ca090757dc6f0d3859b4fcd93f271 /release/src/include/code_pattern.h | |
parent | 008d0be72b2f160382c6e880765e96b64a050c65 (diff) | |
download | tomato-4aca87515a5083ae0e31ce3177189fd43b6d05ac.tar.gz tomato-4aca87515a5083ae0e31ce3177189fd43b6d05ac.tar.bz2 |
patch to Vanilla Tomato 1.28
Diffstat (limited to 'release/src/include/code_pattern.h')
-rw-r--r--[-rwxr-xr-x] | release/src/include/code_pattern.h | 203 |
1 files changed, 1 insertions, 202 deletions
diff --git a/release/src/include/code_pattern.h b/release/src/include/code_pattern.h index 3f05bf13..fd543c53 100755..100644 --- a/release/src/include/code_pattern.h +++ b/release/src/include/code_pattern.h @@ -1,202 +1 @@ -#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 UP_SN 6 -#define UP_LANG 7 - -#define LINKSYS 7 -#define CISCO 90 - -#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 WRT54V5 3 -#define DPN 4 -#define RTA41 5 -#define WRT54GL 6 -#define WRT54GSV4 7 - -#define OEM LINKSYS - -//#define LINKSYS_MODEL WRT54G //WRT54G -#define LINKSYS_MODEL WRT54GL //WRT54GL -//#define LINKSYS_MODEL WRT54GV5 //WRT54GV5 -//#define LINKSYS_MODEL RTA41 //RTA41 -//#define LINKSYS_MODEL WRT54GS //WRT54GS -//#define LINKSYS_MODEL WRT54GSV4 //WRT54GSV4 -//#define LINKSYS_MODEL DPN //DPN -/*************************************** - * define country * - * LOCALE=COUNTRY = * - ***************************************/ -#define COUNTRY LOCALE -#define LOCALE USA -//#define LOCALE JAPAN -//#define LOCALE EUROPE -//#define LOCALE WW -//#define LOCALE GERMANY -//#define LOCALE FRANCE -//#define LOCALE KOREA - -/*************************************** - * define model name and code pattern * - * MODEL_NAME = * - * CODE_PATTERN = * - ***************************************/ - #define CT_VENDOR "LINKSYS" - #define INTEL_FLASH_SUPPORT_BOOT_VERSION_FROM "v1.3" - #define BCM4712_CHIP_SUPPORT_BOOT_VERSION_FROM "v2.0" - #define UI_STYLE CISCO - - #if LINKSYS_MODEL == WRT54GS - #define INTEL_FLASH_SUPPORT_VERSION_FROM "v1.41.8" - #define BCM4712_CHIP_SUPPORT_VERSION_FROM "v1.50.0" - #define CODE_PATTERN "W54S" - #if LOCALE == GERMANY - #define MODEL_NAME "WRT54GS-DE" - #define MODEL_VERSION "" - #elif LOCALE == FRANCE - #define MODEL_NAME "WRT54GS-FR" - #define MODEL_VERSION "" - #elif LOCALE == JAPAN - #define MODEL_NAME "WRT54GS-JP" - #define MODEL_VERSION "" - #else - #define MODEL_NAME "WRT54GS" - #define MODEL_VERSION "V3.0" - #endif - #elif LINKSYS_MODEL == WRT54GSV4 - #define BCM4712_CHIP_SUPPORT_VERSION_FROM "v1.00.0" - #define INTEL_FLASH_SUPPORT_VERSION_FROM "v1.00.0" - #define CODE_PATTERN "W54s" - #define MODEL_NAME "WRT54GSV4" - #define MODEL_VERSION "" - #elif LINKSYS_MODEL == DPN //DPN - #define INTEL_FLASH_SUPPORT_VERSION_FROM "v1.41.8" - #define BCM4712_CHIP_SUPPORT_VERSION_FROM "v1.50.0" - #define CODE_PATTERN "WDPN" - #define MODEL_NAME "DPN" - #define MODEL_VERSION "" - #elif LINKSYS_MODEL == WRT54GV5 - #define INTEL_FLASH_SUPPORT_VERSION_FROM "v1.41.8" - #define BCM4712_CHIP_SUPPORT_VERSION_FROM "v1.50.0" - #define CODE_PATTERN "W54V" - #define MODEL_NAME "WRTA54G" - #define MODEL_VERSION "" - #elif LINKSYS_MODEL == RTA41 - #define INTEL_FLASH_SUPPORT_VERSION_FROM "v1.41.8" - #define BCM4712_CHIP_SUPPORT_VERSION_FROM "v1.50.0" - #define CODE_PATTERN "W54N" - #define MODEL_NAME "RTA41" - #define MODEL_VERSION "" - #elif LINKSYS_MODEL == WRT54GL - #define INTEL_FLASH_SUPPORT_VERSION_FROM "v1.41.8" - #define BCM4712_CHIP_SUPPORT_VERSION_FROM "v1.50.0" - #define CODE_PATTERN "W54G" - #define MODEL_NAME "WRT54GL" - #define MODEL_VERSION "V1" - #elif LINKSYS_MODEL == WRT54G - #define INTEL_FLASH_SUPPORT_VERSION_FROM "v1.41.8" - #define BCM4712_CHIP_SUPPORT_VERSION_FROM "v1.50.0" - #define CODE_PATTERN "W54G" - #if LOCALE == GERMANY - #define MODEL_NAME "WRT54G-DE" - #define MODEL_VERSION "" - #elif LOCALE == FRANCE - #define MODEL_NAME "WRT54G-FR" - #define MODEL_VERSION "" - #elif LOCALE == JAPAN - #define MODEL_NAME "WRT54G-JP" - #define MODEL_VERSION "" - #else - #define MODEL_NAME "WRT54G" - #define MODEL_VERSION "V4.0" - #endif - #else - #error "You must select a LINKSYS_MODEL!!" - #endif - -/*************************************** - * define language * - * LANGUAGE = * - * LANG_SEL=EN * - * 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 - -/*************************************** - * define wireless max channel * - * WL_MAX_CHANNEL = * - ***************************************/ -#if LOCALE == JAPAN || LOCALE == EUROPE || LOCALE == GERMANY || LOCALE == FRANCE - #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" - #elif LOCALE == GERMANY - #define WEB_PAGE "cisco_wrt54g_de" - #elif LOCALE == FRANCE - #define WEB_PAGE "cisco_wrt54g_fr" - #else - #if LINKSYS_MODEL == WRT54GV5 - #define WEB_PAGE "verizon_wrt54g_en" - #elif LINKSYS_MODEL == RTA41 - #define WEB_PAGE "verizon_wrt54g_en" - #else - #define WEB_PAGE "cisco_wrt54g_m" - #endif - #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 && LOCALE != GERMANY && LOCALE != FRANCE - #error "The LOCALE for LINKSYS is error, must be USA, EUROPE, JAPAN, GERMANY or FRANCE" - #endif +#define MODEL_NAME "WRT54G" |