📄 pi8021x.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: pi8021x.h
*
* Purpose: 802.1X module UI callback functions
*
* Author: Freeya Lin
*
* Date: Dec 10, 2003
*
* Functions:
*
* Revision History:
*
*/
#ifndef _PI8021X_H
#define _PI8021X_H
#include "ttype.h"
#if !defined(__CCONFIG_H__)
#include "cconfig.h"
#endif
#include "pieeprom.h"
#include "picfgmp.h"
#include "engine.h"
/*--------------------- Export Classes -----------------------------*/
typedef struct tagS8021XPageCfg {
UINT8 byMode; //802.1X Mode
#if __PAD_ALGN_3
UINT8 byPadA[__PAD_ALGN_3];
#endif
UINT8 abySecPortMsk[BYTE_NUM_OF_CFGBUF_BIT_MASK]; // Security port mask
} S8021XPageCfg;
/*--------------------- Export Definitions -------------------------*/
#define EEP_SIZE_PROV_8021X_CFG sizeof(S8021XPageCfg)
//#define EEP_SIZE_STP_PORT_STATE_OFFSET sizeof(SSTPPortStateCfg)
/*--------------------- Export Classes -----------------------------*/
/*--------------------- Export Macro --------------------------*/
/*--------------------- Export Functions --------------------------*/
// Get config from EEPROM and set into hardware
// boot init: eep -> hw
void PI8021X_vSetHwFromEep(S8021XPageCfg* pSPageCfg_8021X);
// Set EEPROM into default value
void PI8021X_vSetEepDefault(S8021XPageCfg* pSPageCfg_8021X, BOOL bWriteDefault);
// Get config from EEPROM and set into page buf
// load config: eep -> buf
void PI8021X_vInitPage(S8021XPageCfg* pSPageCfg_8021X);
// Write config to EEPROM and set to hardware
// save config: buf -> eep, hw
UINT8 PI8021X_bySavePage(S8021XPageCfg* pSPageCfg_8021X);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -