1 /***********************************************************************
3 * Copyright (c) 2006-2007 Broadcom Corporation
6 * <:label-BRCM:2011:DUAL/GPL:standard
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License, version 2, as published by
10 * the Free Software Foundation (the "GPL").
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
18 * A copy of the GPL is available at http://www.broadcom.com/licenses/GPLv2.php, or by
19 * writing to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 * Boston, MA 02111-1307, USA.
24 ************************************************************************/
26 #ifndef __CMS_PARAMS_H__
27 #define __CMS_PARAMS_H__
30 * \brief Header file containing customizable or board/hardware dependent
31 * parameters for the the CPE Management System (CMS). Note that
32 * other customizable parameters are modified via make menuconfig.
36 /** Config file version.
39 #define CMS_CONFIG_FILE_VERSION "3.0"
42 /** Number of spaces to indent each line in the config file.
45 #define CMS_CONFIG_FILE_INDENT 2
48 /** Address where the shared memory region is attached.
50 * Every process must attach to the shared memory at the same address
51 * because the data structures inside the shared memory region contain
52 * pointers to other areas in the shared memory.
54 #define MDM_SHM_ATTACH_ADDR 0x58800000
57 /** Base amount of shared memory to allocate.
60 #define MDM_SHM_BASE_SIZE (160 * 1024)
63 /** Amount of shared memory to allocate if WLAN feature is enabled.
66 #define MDM_SHM_WLAN_EXTRA (128 * 1024)
69 /** Amount of shared memory to allocate if VOIP feature is enabled.
72 #define MDM_SHM_VOIP_EXTRA (128 * 1024)
75 /** Amount of shared memory to allocate if GPON feature is enabled.
78 #define MDM_SHM_GPON_EXTRA (128 * 1024)
80 /** Amount of shared memory to allocate if extra large DSL data is enabled.
83 #define MDM_SHM_DSL_BIG_DATA_EXTRA (256 * 1024)
85 /** The "key" to use when requesting a semaphore from the Linux OS.
87 * This is used to implement low level MDM transation locks.
88 * The only time this will need to be modified is when other code
89 * is using the same key.
91 #define MDM_LOCK_SEMAPHORE_KEY 0x5ed7
94 /** This is the Unix Domain Socket address for communications with smd used
95 * by the messaging library.
97 * Note two different addresses are defined, one for modem and one for DESKTOP_LINUX testing.
98 * It is highly unlikely that this needs to be changed.
101 #define SMD_MESSAGE_ADDR "/var/tmp/smd_messaging_server_addr"
103 #define SMD_MESSAGE_ADDR "/var/smd_messaging_server_addr"
107 /** This is the number of fully connected connections that can be queued
108 * up at the SMD message server socket.
110 * It is highly unlikely that this needs to be changed.
112 #define SMD_MESSAGE_BACKLOG 3
115 /** Special hack for the smd dynamic launch service, when it launches a server app, the
116 * server app will find its server fd at this number.
118 * It is highly unlikely that this needs to be changed.
120 #define CMS_DYNAMIC_LAUNCH_SERVER_FD 3
124 /** This is the port ftpd listens on.
126 * Note two different ports are defined, one for modem and one for DESKTOP_LINUX testing.
127 * It is highly unlikely that this needs to be changed.
130 #define FTPD_PORT 44421
136 /** This is the port tftpd listens on.
138 * Note two different ports are defined, one for modem and one for DESKTOP_LINUX testing.
139 * It is highly unlikely that this needs to be changed.
142 #define TFTPD_PORT 44469
144 #define TFTPD_PORT 69
148 /** This is the port sshd listens on.
150 * Note two different ports are defined, one for modem and one for DESKTOP_LINUX testing.
151 * It is highly unlikely that this needs to be changed.
154 #define SSHD_PORT 44422
160 /** The amount of idle time, in seconds, before sshd exits.
162 * Make this relatively long because the user might be configuring something,
163 * then gets confused and have to look up some manual.
164 * If 0, then no timeout.
166 #define SSHD_EXIT_ON_IDLE_TIMEOUT 600
169 /** This is the port telnetd listens on.
171 * Note two different ports are defined, one for modem and one for DESKTOP_LINUX testing.
172 * It is highly unlikely that this needs to be changed.
175 #define TELNETD_PORT 44423
177 #define TELNETD_PORT 23
181 /** The amount of idle time, in seconds, before telnetd exits.
183 * Make this relatively long because the user might be configuring something,
184 * then gets confused and have to look up some manual.
185 * If 0, then no timeout.
187 #define TELNETD_EXIT_ON_IDLE_TIMEOUT 600
190 /** This is the port httpd listens on.
192 * Note two different ports are defined, one for modem and one for DESKTOP_LINUX testing.
193 * It is highly unlikely that this needs to be changed.
195 #ifdef DESKTOP_LINUX // __
\14MTS__, Richard Huang
196 #define HTTPD_PORT 44480
198 #ifdef SUPPORT_HTTPD_SSL
199 #define HTTPD_PORT_SSL 443
201 #define HTTPD_PORT 80
205 /** The amount of idle time, in seconds, before httpd exits.
207 * Make this relatively long because the user might be configuring something,
208 * then gets confused and have to look up some manual.
210 #define HTTPD_EXIT_ON_IDLE_TIMEOUT 600
213 /** The amount of idle time, in seconds, before consoled exits.
215 * Make this relatively long because the user might be configuring something,
216 * then gets confused and have to look up some manual.
217 * If 0, then no timeout.
219 #define CONSOLED_EXIT_ON_IDLE_TIMEOUT 600
222 /** This is the port snmpd listens on.
224 * Note two different ports are defined, one for modem and one for DESKTOP_LINUX testing.
225 * It is highly unlikely that this needs to be changed.
228 #define SNMPD_PORT 44161
230 #define SNMPD_PORT 161
233 /** This is the port tr64c listens on.
234 * LGD_TODO: Due to the time limit, it still have one DESKTOP_LINUX version TR64C,
235 * in the future will add it.
237 #define TR64C_HTTP_CONN_PORT 49431
240 /** This is the port tr69c listens on for connection requests from the ACS.
243 #define TR69C_CONN_REQ_PORT 30005
246 /** This is the path part of the URL for tr69c connection requests from the ACS.
249 #ifdef BUILD_EIRCOM_CUSTOMIZATION
250 #define TR69C_CONN_REQ_PATH "/tr069"
252 #define TR69C_CONN_REQ_PATH "/"
255 /** The amount of idle time, in seconds, before tr69c exits.
257 * This value does not need to be very large because the ACS is usually running
258 * a script so it will do all the actions it needs back-to-back and then be
259 * completely done. So if we see no more requests from the ACS for 30 seconds,
260 * that probably means the ACS is completely done. However, if response time
261 * is very important, and you do not want the tr69c client to exit, then you
262 * can set this to a very large value (e.g. 2160356, which is one year).
264 #define TR69C_EXIT_ON_IDLE_TIMEOUT 30
267 /** Maximum number of Layer 2 bridges supported.
269 * If this value is changed, be sure to also modify the default value in
272 #define MAX_LAYER2_BRIDGES 16
275 /** Maximum depth of objects in the Data Model that we can support.
276 * If the data model has a greater actual depth than what is defined here,
277 * cmsMdm_init() will fail.
279 #define MAX_MDM_INSTANCE_DEPTH 6
282 /** Maximum length of a parameter name in the Data Model that we can support.
283 * If the data model has a greater actual param name length than what is defined here,
284 * cmsMdm_init() will fail.
286 #define MAX_MDM_PARAM_NAME_LENGTH 55
288 /** DNS Probing parameters for both dnsprobe and dproxy. They probe every
289 * 30 seconds. Timeout is 3 seconds and only retry 2 more times. */
290 #if 1//__MSTC__,kenny, Reduce waiting time for switch DNS Server
291 #define DNS_PROBE_INTERVAL 10
293 #define DNS_PROBE_INTERVAL 30
295 #define DNS_PROBE_TIMEOUT 3
296 #define DNS_PROBE_MAX_TRY 3
298 #endif /* __CMS_PARAMS_H__ */