⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pidef.h

📁 VIA VT6524 8口网管交换机源码
💻 H
字号:
/*
 * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.
 * All rights reserved.
 *
 * This software is copyrighted by and is the sole property of
 * VIA Networking Technologies, Inc. This software may only be used
 * in accordance with the corresponding license agreement. Any unauthorized
 * use, duplication, transmission, distribution, or disclosure of this
 * software is expressly forbidden.
 *
 * This software is provided by VIA Networking Technologies, Inc. "as is"
 * and any express or implied warranties, including, but not limited to, the
 * implied warranties of merchantability and fitness for a particular purpose
 * are disclaimed. In no event shall VIA Networking Technologies, Inc.
 * be liable for any direct, indirect, incidental, special, exemplary, or
 * consequential damages.
 *
 *
 * File:    pidef.h
 *
 * Purpose: System LED order and default configuration definition
 *
 * Author:  Tevin Chen
 *
 * Date:    Jan 08, 2002
 *
 */

#ifndef __PIDEF_H__
#define __PIDEF_H__

#include "ttype.h"
#include "swfwd.h"
#include "swport.h"
#include "swvlan.h"
#include "swqos.h"
#include "pimisc.h"


/*---------------------  General Definitions -------------------------*/
// version information
#define EEP_VALUE_CONTENT_VER           180         // Write default if the value in eeprom is different

// Definition of vendor
#define __VENDOR_VIA                    TRUE


/*---------------------  Per-Vendor Definitions ----------------------*/
//
// Default value definition for VIA
#ifdef __VENDOR_VIA
    #define PORT_MAP_PANEL_DEFAULT          TRUE
/*
    //  01 03 05 07 09 11 13 15 17 19 21 23
    //  00 02 04 06 08 10 12 14 16 18 20 22
    #define PORT_MAP_PANEL_ACCTON           TRUE
    //  00 01 02 03 04 05 06 07 08 09 10 11
    //  12 13 14 15 16 17 18 19 20 21 22 23
    #define PORT_MAP_PANEL_DLINK            TRUE
    //  00 02 04 06 08 10 12 14 16 18 20 22
    //  01 03 05 07 09 11 13 15 17 19 21 23
    #define PORT_MAP_PANEL_CNET             TRUE
    //  11 10 09 08 07 06 05 04 03 02 01 00
    //  23 22 21 20 19 18 17 16 15 14 13 12
*/
  #ifdef __SWITCH_PORT_18
    #define UI_SWITCH_PORT_NUM              18
    #define UI_SWITCH_MEGA_PORT_NUM         16
    #define UI_SWITCH_TRUNKABLE_PORT_NUM    16
  #else
    #define UI_SWITCH_PORT_NUM              SWITCH_PORT_NUM
    #define UI_SWITCH_MEGA_PORT_NUM         SWITCH_MEGA_PORT_NUM
    #define UI_SWITCH_TRUNKABLE_PORT_NUM	SWITCH_TRUNKABLE_PORT_NUM 
    //#define UI_SWITCH_TRUNKABLE_PORT_NUM     16
  #endif

  #ifndef __ASIC_VT6524
    #ifdef __SWITCH_PORT_18 // 16+2 ports
      #ifdef __MODULE_WEB_SMART
        #define STRING_LOGIN_TITLE              "Web Smart 16 + 2 Port Standalone Switch"
      #else
        #define STRING_LOGIN_TITLE              "Smart 16 + 2 Port Standalone Switch"
      #endif
    #else   // 24+2 ports
      #ifdef __MODULE_WEB_SMART
        #define STRING_LOGIN_TITLE              "Web Smart 24 + 2 Port Standalone Switch"
      #else
        #define STRING_LOGIN_TITLE              "Smart 24 + 2 Port Standalone Switch"
      #endif
    #endif
  #else // for __ASIC_VT6524
    #ifdef __SWITCH_PORT_18 // 16 ports
      #ifdef __MODULE_WEB_SMART
        #define STRING_LOGIN_TITLE              "Web Smart 16 Port Standalone Switch"
      #else
        #define STRING_LOGIN_TITLE              "Smart 16 Port Standalone Switch"
      #endif
    #else   // 24 ports
      #ifdef __MODULE_WEB_SMART
        #define STRING_LOGIN_TITLE              "S1908D Web Smart 8 Ports Switch"
      #else
        #define STRING_LOGIN_TITLE              "Smart 24 Port Standalone Switch"
      #endif
    #endif
  #endif

    // select the methods of module card detection
  #ifndef __ASIC_VT6524
    #define __DETECT_MOD_CARD_BY_EEPROM
    #define __DETECT_MOD_CARD_BY_PIN_DEF
    #define __DETECT_MOD_CARD_BY_STRAPPING
  #endif

    // Define default username/password and backdoor pair
    #define DEFAULT_ADM_USERNAME            "admin"
    #define DEFAULT_ADM_PASSWORD            "123"
    #define BACKDOOR_ADM_USERNAME           "root"
    #define BACKDOOR_ADM_PASSWORD           "qtm"
    #define SETMAC_ADM_USERNAME             "setmac"
    #define SETMAC_ADM_PASSWORD             "111111"    // shift-654321

    // Port Control module default configuration
    #define DEFAULT_PORT_ENABLE             TRUE
    #define DEFAULT_PORT_AUTO               TRUE
    #define DEFAULT_PORT_SPD_DPX            PORT_SPDPX_AUTO
    #define DEFAULT_FLOW_CONTROL            TRUE

    // VLAN module default configuration
    #define DEFAULT_VLAN_INFILT_BYTE_CFG    0x55    // VLAN_INGRS_FILTER_NOTMBR => 0x01

    // QoS  module default configuration
    #define DEFAULT_QOS_MODE                QOS_WRR_3
    #define DEFAULT_STATIC_PRIORITY         QOS_PORT_PRIORI_DISABLE
    #define DEFAULT_8021P_MAP               0xF0

    // Misc module default configuration
    #define DEFAULT_BSF_MODE                BSF_MODE_20
    #define DEFAULT_RETRY_FOREVER           TRUE
    #define DEFAULT_AUTO_AGING              AUTO_AGING_300S
    #define DEFAULT_AUTO_LOGOUT             AUTO_LOGOUT_5MIN

  #ifdef __MODULE_WEB_SMART
    #define DEFAULT_WEB_AUTO_LOGOUT         WEB_AUTO_LOGOUT_5MIN

    // IP configuration
    #define DEFAULT_IP_ADDR                 "192.168.1.1"
    #define DEFAULT_SUBNET                  "255.255.255.0"
    #define DEFAULT_GATEWAY                 "192.168.1.254"
  #endif

#endif // __VENDOR_VIA




#endif /* __PIDEF_H__ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -