1/*************************************************************************** 2#*** 3#*** Copyright 2005 Hon Hai Precision Ind. Co. Ltd. 4#*** All Rights Reserved. 5#*** No portions of this material shall be reproduced in any form without the 6#*** written permission of Hon Hai Precision Ind. Co. Ltd. 7#*** 8#*** All information contained in this document is Hon Hai Precision Ind. 9#*** Co. Ltd. company private, proprietary, and trade secret property and 10#*** are protected by international intellectual property laws and treaties. 11#*** 12#**************************************************************************** 13*** 14*** Filename: ambitCfg.h 15*** 16*** Description: 17*** This file is specific to each project. Every project should have a 18*** different copy of this file. 19*** Included from ambit.h which is shared by every project. 20*** 21*** History: 22*** 23*** Modify Reason Author Date Search Flag(Option) 24*** -------------------------------------------------------------------------------------- 25*** File Creation Jasmine Yang 11/02/2005 26*******************************************************************************/ 27 28 29#ifndef _AMBITCFG_H 30#define _AMBITCFG_H 31 32#define WW_VERSION 1 /* WW SKUs */ 33#define NA_VERSION 2 /* NA SKUs */ 34#define JP_VERSION 3 35#define GR_VERSION 4 36#define PR_VERSION 5 37#define KO_VERSION 6 38#define RU_VERSION 7 39#define SS_VERSION 8 40#define PT_VERSION 9 41#define TWC_VERSION 10 42#define BRIC_VERSION 11 43#define SK_VERSION 12 44 45#define WLAN_REGION WW_VERSION 46#define FW_REGION WW_VERSION /* true f/w region */ 47 48/*formal version control*/ 49#define AMBIT_HARDWARE_VERSION "U12H189T00" 50#define AMBIT_SOFTWARE_VERSION "V1.0.1.40" 51#define AMBIT_UI_VERSION "1.0.68" 52#define STRING_TBL_VERSION "1.0.1.40_2.1.17.1" 53 54#define AMBIT_PRODUCT_NAME "WNDR4500" 55#define AMBIT_PRODUCT_DESCRIPTION "Netgear Wireless Router WNDR4500" 56#define UPnP_MODEL_URL "WNDR4500.aspx" 57#define UPnP_MODEL_DESCRIPTION "N900" 58 59#define AMBIT_NVRAM_VERSION "1" /* digital only */ 60 61#ifdef AMBIT_UPNP_SA_ENABLE 62#define SMART_WIZARD_SPEC_VERSION "0.7" /* This is specification version of smartwizard 2.0 */ 63#endif 64/**************************************************************************** 65 * Board-specific defintions 66 * 67 ****************************************************************************/ 68 69/* Interface definitions */ 70#define WAN_IF_NAME_NUM "eth0" 71#define LAN_IF_NAME_NUM "vlan1" 72#define WLAN_IF_NAME_NUM "eth1" 73#define WLAN_N_IF_NAME_NUM "eth2" 74#define WDS_IF_NAME_NUM "wds0.1" /* WDS interface */ 75 76#ifdef MULTIPLE_SSID 77#define WLAN_BSS1_NAME_NUM "wl0.1" /* Multiple BSSID #2 */ 78#define WLAN_BSS2_NAME_NUM "wl0.2" /* Multiple BSSID #3 */ 79#define WLAN_BSS3_NAME_NUM "wl0.3" /* Multiple BSSID #4 */ 80 81#define WLAN_5G_BSS1_NAME_NUM "wl1.1" /* Multiple BSSID #2 */ 82#define WLAN_5G_BSS2_NAME_NUM "wl1.2" /* Multiple BSSID #3 */ 83#define WLAN_5G_BSS3_NAME_NUM "wl1.3" /* Multiple BSSID #4 */ 84#endif /* MULTIPLE_SSID */ 85 86/* GPIO definitions */ 87 88#if defined(WNDR4500REV) 89#define GPIO_POWER_LED_GREEN 2 90#define GPIO_POWER_LED_GREEN_STR "2" 91#define GPIO_POWER_LED_AMBER 3 92#define GPIO_POWER_LED_AMBER_STR "3" 93#else /* WNDR4500REV */ 94#define GPIO_POWER_LED_GREEN 14 95#define GPIO_POWER_LED_GREEN_STR "14" 96#define GPIO_POWER_LED_AMBER 14 97#define GPIO_POWER_LED_AMBER_STR "14" 98#endif /* WNDR4500REV */ 99 100 101#define GPIO_WAN_LED 15 102 103#define GPIO_WIFI_2G_LED 9 104#define GPIO_WIFI_5G_LED 11 105 106#define LANG_TBL_MTD_RD "/dev/mtdblock" 107#define LANG_TBL_MTD_WR "/dev/mtd" 108 109#define ML_MTD_RD "/dev/mtdblock" 110#define ML_MTD_WR "/dev/mtd" 111/* MTD definitions */ 112#define ML1_MTD_RD "/dev/mtdblock3" 113#define ML1_MTD_WR "/dev/mtd3" 114#define ML2_MTD_RD "/dev/mtdblock4" 115#define ML2_MTD_WR "/dev/mtd4" 116 117#if defined(X_ST_ML) 118#define ST_SUPPORT_NUM (7) /* The maxium value can be 2-10. */ 119#define LANG_TBL_MTD_START (3) 120#define LANG_TBL_MTD_END (LANG_TBL_MTD_START + ST_SUPPORT_NUM - 1) 121#define FLASH_MTD_ML_SIZE 0x10000 122#define BUILTIN_LANGUAGE "English" 123 124#define ML3_MTD_RD "/dev/mtdblock5" 125#define ML3_MTD_WR "/dev/mtd5" 126#define ML4_MTD_RD "/dev/mtdblock6" 127#define ML4_MTD_WR "/dev/mtd6" 128#define ML5_MTD_RD "/dev/mtdblock7" 129#define ML5_MTD_WR "/dev/mtd7" 130#define ML6_MTD_RD "/dev/mtdblock8" 131#define ML6_MTD_WR "/dev/mtd8" 132#define ML7_MTD_RD "/dev/mtdblock9" 133#define ML7_MTD_WR "/dev/mtd9" 134 135#define TF1_MTD_RD "/dev/mtdblock10" 136#define TF1_MTD_WR "/dev/mtd10" 137#define TF2_MTD_RD "/dev/mtdblock11" 138#define TF2_MTD_WR "/dev/mtd11" 139 140#define POT_MTD_RD "/dev/mtdblock12" 141#define POT_MTD_WR "/dev/mtd12" 142 143#define BD_MTD_RD "/dev/mtdblock13" 144#define BD_MTD_WR "/dev/mtd13" 145 146#define NVRAM_MTD_RD "/dev/mtdblock14" 147#define NVRAM_MTD_WR "/dev/mtd14" 148#else 149#define TF1_MTD_RD "/dev/mtdblock5" 150#define TF1_MTD_WR "/dev/mtd5" 151#define TF2_MTD_RD "/dev/mtdblock6" 152#define TF2_MTD_WR "/dev/mtd6" 153 154#define POT_MTD_RD "/dev/mtdblock7" 155#define POT_MTD_WR "/dev/mtd7" 156 157#define BD_MTD_RD "/dev/mtdblock8" 158#define BD_MTD_WR "/dev/mtd8" 159 160#define NVRAM_MTD_RD "/dev/mtdblock9" 161#define NVRAM_MTD_WR "/dev/mtd9" 162#endif 163 164 165 166/* The following definition is used in acosNvramConfig.c and acosNvramConfig.h 167 * to distingiush between Foxconn's and Broadcom's implementation. 168 */ 169#define BRCM_NVRAM /* use broadcom nvram instead of ours */ 170 171/* The following definition is to used as the key when doing des 172 * encryption/decryption of backup file. 173 * Have to be 7 octects. 174 */ 175#define BACKUP_FILE_KEY "NtgrBak" 176 177#define DOCUMENT_URL "http://downloadcenter.netgear.com/" 178 179 180#define USB_support_level "7" 181 182 183#endif /*_AMBITCFG_H*/ 184