📄 pigencfg.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: pigencfg.h
*
* Purpose: Declaration of config buffer shared by all modules
*
* Author: Tevin Chen
*
* Date: Jan 08, 2002
*
*/
#ifndef __PIGENCFG_H__
#define __PIGENCFG_H__
#include "ttype.h"
#include "piport.h"
#include "piqos.h"
#ifdef __ASIC_VT6526
#include "pirate.h"
#endif
#include "pitrunk.h"
#include "pivlan.h"
#include "pimisc.h"
#include "pisniff.h"
#include "piadmin.h"
#ifdef __MODULE_WEB_SMART
#include "piipcfg.h"
#endif
#include "pipc_qos.h"
/*--------------------- Export Definitions -------------------------*/
#define g_pSPortPageCfg (&g_UCfgBuf.SPageCfg_Port)
#ifdef __ASIC_VT6526
#define g_pSRatePageCfg (&g_UCfgBuf.SPageCfg_Rate)
#endif
#ifndef __ASIC_VT6524
#define g_pSQosPageCfg (&g_UCfgBuf.SPageCfg_Qos)
#else
#define g_pSQosPageCfg (&g_UCfgBuf.SPageCfg_Port)
#endif
#define g_pSPortStatusPage (&g_UCfgBuf.SPage_PortStatus)
#define g_pSTrkPageCfg (&g_UCfgBuf.SPageCfg_Trunk)
#define g_pSVlanPageCfg (&g_UCfgBuf.SPageCfg_Vlan)
#define g_pSVlanIngrFlt (&g_UCfgBuf.SPageCfg_VlanIngrFlt)
#define g_pSMiscPageCfg (&g_UCfgBuf.SPageCfg_Misc)
#define g_pSAdmPageCfg (&g_UCfgBuf.SPageCfg_Admin)
#define g_pSSniffPageCfg (&g_UCfgBuf.SPageCfg_Sniff)
#define g_pbyChipVer (&g_UCfgBuf.byChipVer)
#ifdef __MODULE_WEB_SMART
#define g_pSIpConfPageCfg (&g_UCfgBuf.SPageCfg_IpConf)
#endif
/*--------------------- Export Classes -----------------------------*/
typedef union
{ //P24 P26
SPortPageCfg SPageCfg_Port; // 26, 62 : sizeof
#ifdef __ASIC_VT6526
SRatePageCfg SPageCfg_Rate; // 0, 48
#endif
#ifndef __ASIC_VT6524
SQosPageCfg SPageCfg_Qos; // 0, 28
#endif
SPortStatusPage SPage_PortStatus; // 24, 52
STrkPageCfg SPageCfg_Trunk; // 38, 41
SVlanPageCfg SPageCfg_Vlan; // 60, 66
SVlanIngrFilterPageCfg SPageCfg_VlanIngrFlt; // 6, 8
SMiscPageCfg SPageCfg_Misc; // 1, 1
SAdmPageCfg SPageCfg_Admin; // 36, 36
SSniffPageCfg SPageCfg_Sniff; // 8, 35
BYTE byChipVer;
#ifdef __MODULE_WEB_SMART
SIpConfPageCfg SPageCfg_IpConf; // 66, 66
#endif
} UConfigBuf;
/*--------------------- Export Macros ------------------------------*/
/*--------------------- Export Variables --------------------------*/
extern UConfigBuf g_UCfgBuf;
/*--------------------- Export Functions --------------------------*/
#endif /* __PIGENCFG_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -