📄 pimib.c
字号:
/*
* 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: pimib.c
*
* Purpose:
*
* Author: Freeya Lin
*
* Date: June 14, 2004
*
* Functions:
*
* Revision History:
*
*/
#include "swmibtb.h"
#include "str.h"
#include "piportmp.h"
#include "pigencfg.h"
#include "pieeprom.h"
#include "pimib.h"
/*--------------------- Static Definitions -------------------------*/
/*--------------------- Static Classes ----------------------------*/
/*--------------------- Static Variables --------------------------*/
/*--------------------- Static Functions --------------------------*/
/*--------------------- Export Variables --------------------------*/
/*--------------------- Export Macros -----------------------------*/
/*--------------------- Export Functions --------------------------*/
void PIMIB_vInitPage(SMIBPageCfg* pSPageCfg_Mib, UINT8 byShowPortPage)
{
UINT8 byPhyPID;
STR_pvMemset(pSPageCfg_Mib, 0, sizeof(SMIBPageCfg));
for (byPhyPID = 0; byPhyPID < SWITCH_PORT_NUM; byPhyPID++)
SWMIBTB_vGetPortStatistic(byPhyPID, &pSPageCfg_Mib->aSPortStatistic[byPhyPID]);
if (byShowPortPage) //next page : start from port14
STR_pvMemcpy(pSPageCfg_Mib->aSPortStatistic, pSPageCfg_Mib->aSPortStatistic+(UI_SWITCH_PORT_NUM/2), (UI_SWITCH_PORT_NUM/2)*sizeof(SPortStatistic));
}
void PIMIB_vClearAllCntr(void)
{
UINT8 byPortId;
for (byPortId = 0; byPortId < SWITCH_PORT_NUM; byPortId++)
SWMIBTB_vClearAllCntr(byPortId);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -