1#ifndef __CONFIG_H__
2#define __CONFIG_H__
3
4/* which mtd used record traffic meter data */
5#define TRAFFIC_METER_MTD "/dev/mtd16"
6#define TRAFFIC_METER_MTD_DONGLE "/dev/mtd18"
7
8/* WAN interface name of router */
9#define WAN_DHCP_IFNAME "brwan"
10/* PPP interface name of router */
11#define WAN_PPP_IFNAME "ppp0"
12#define WAN_ETH_STATUS "/tmp/port_status"
13#define WAN_PPP_STATUS "/tmp/ppp/ppp0-status"
14
15/* output files, like as status, statistics, date and volume left, warning messages,
16 *    and config file of traffic meter. */
17#define TMP_TRAFFIC_WARNINGMSG "/tmp/traffic_meter/traffic_meter_warning_message"
18#define TMP_TRAFFIC_CONFIG "/tmp/traffic_meter/traffic_meter.conf"
19#define TMP_TRAFFIC_LEFT "/tmp/traffic_meter/date_and_volume_left"
20#define TMP_TRAFFIC_STATISTICS "/tmp/traffic_meter/traffic_statistics"
21#define TMP_TRAFFIC_STATUS "/tmp/traffic_meter/traffic_status"
22
23/* support new feature of NTP described in traffic meter spec 1.9 */
24#define NTP_FEATURE
25/*For accurate control*/
26#define ACCURATE_CONTROL
27/* When users change the timezone, the traffic statistics numbers should be adjusted accordingly */
28#define UPDATE_STATISTICS
29/* The traffic meter function should be disabled automatically when change connection time control */
30#define AUTO_DISABLE
31
32/* enable changes for nand flash access */
33#define NAND_FLASH_SUPPORT 1
34#if NAND_FLASH_SUPPORT
35#define NAND_FLASH_BLOCKSIZE 0x1f000
36#define NAND_FLASH_PAGESIZE  2048
37#define MAX_RECORD_6HOURS 1
38#endif
39
40#endif
41