📄 pismac.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: pismac.h
*
* Purpose: Static mac table module UI definitions
*
* Author: Freeya Lin
*
* Date: Feb 24, 2004
*
*/
#ifndef __PISMAC_H__
#define __PISMAC_H__
#include "ttype.h"
#include "switch.h"
#include "str.h"
#include "picfgmp.h"
#include "swpmactb.h"
#include "swsmactb.h"
#include "engine.h"
/*--------------------- Export Classes -----------------------------*/
typedef struct tagSSMacEntryPage {
char azMacAddr[MAC_STRING_LEN+1]; // MAC address of the entry
UINT16 u16Fid; // FID of the entry
BOOL bHiPriDmac; // CPU intervention if set
BOOL bHiPriSmac; // This entry is high priority if set
UINT8 bySrcId; // Src port/Trunk grp ID
SStringTableMap SStrTblMap; // For UI engine to map port id
UINT8 abyDestPortList[SWITCH_PORT_NUM];
} SSMacEntryPage;
// Definition of vlan configuration page
typedef struct tagSSMacPageCfg {
UINT16 wValidEntryNum; // Valid table entry number
UINT16 awValidGrpFidList[SWITCH_SMAC_GRP_NUM]; // Valid group id array
char astrGrpMacList[SWITCH_SMAC_GRP_NUM*(MAC_STRING_LEN+1)]; // Valid mac addr array
SSMacEntryPage SCurGrp; // Currently configuring group
} SSMacPageCfg;
/*--------------------- Export Definitions -------------------------*/
// Define size of smac config
#define EEP_SIZE_SMAC_TBL_ENTRY sizeof(SMacEntry) //TOCHECK
#define EEP_SIZE_PROV_SMAC_CFG (EEP_SIZE_SMAC_TBL_ENTRY*SWITCH_SMAC_GRP_NUM)
/*--------------------- Export Variables --------------------------*/
/*--------------------- Export Macros ------------------------------*/
/*--------------------- Export Functions --------------------------*/
void PISMAC_vInitPage (SSMacPageCfg *pSPageBuf);
void PISMAC_vSetHwFromEep (SSMacPageCfg *pSPageBuf);
void PISMAC_vSetEepDefault (SSMacPageCfg *pSPageBuf, BOOL bWriteDefaul);
#endif /* __PISMAC_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -