📄 swstp.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: swstp.h
*
* Purpose: STP functions
*
* Author: Tevin Chen
*
* Date: Jan 08, 2002
*
*/
#ifndef __SWSTP_H__
#define __SWSTP_H__
#if !defined(__TTYPE_H__)
#include "ttype.h"
#endif
/*--------------------- Export Definitions ------------------------*/
// Regsiter for BPDU Configuration
#define RB_STP_PORT_START_ADDR 0x36A //(FWD_BASE_ADDR + (0x6A))
#define RB_STP_CPU_FWD_ADDR 0x309 //(FWD_BASE_ADDR + (0x09), bit1:0)
/*--------------------- Export Types ------------------------------*/
typedef enum {
DISABLED,
BLOCKING,
LEARNING,
FORWARDING,
LISTENING //not implement in hw, so must covert in HIbSTP_SetStpState()
} STP_STATE;
typedef enum {
FWD_BPDU_PKT_2_ALL_BUT_CPU = 0,
DRP_BPUD_PKT,
FWD_BPUD_PKT_2_CPU_ONLY
} STP_PKT_FWD_STATE ;
/*--------------------- Export Macros -----------------------------*/
/*--------------------- Export Classes ----------------------------*/
/*--------------------- Export Variables --------------------------*/
/*--------------------- Export Functions --------------------------*/
BOOL SWSTP_bSetStpStatus(BOOL bStatus);
void SWSTP_vSetPortState(UINT8 u8Port, UINT8 u8State);
#endif // __SWSTP_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -