• 大小: 4.04MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-10-16
  • 语言: 其他
  • 标签: REALTEK  RTL8370MB  

资源简介

Realtek 8 Port 千兆交换机芯片RTL8370MB API应用例程

资源截图

代码片段和文件信息

/*
 * Copyright (C) 2013 Realtek Semiconductor Corp.
 * All Rights Reserved.
 *
 * This program is the proprietary software of Realtek Semiconductor
 * Corporation and/or its licensors and only be used duplicated
 * modified or distributed under the authorized license from Realtek.
 *
 * ANY USE OF THE SOFTWARE OTHER THAN AS AUTHORIZED UNDER
 * THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED.
 *
 * $Revision: 79489 $
 * $Date: 2017-06-08 14:33:54 +0800 (週四 08 六月 2017) $
 *
 * Purpose : RTK switch high-level API for RTL8367/RTL8367C
 * Feature : Here is a list of all functions and variables in ACL module.
 *
 */

#include 
#include 
#include 
#include 
#include 
#include 
#include 

#include 
#include 
#include 
#include 
#include 
#include 
#include 

CONST_T rtk_uint8 filter_templateField[RTL8367C_ACLTEMPLATENO][RTL8367C_ACLRULEFIELDNO] = {
    {ACL_DMAC0             ACL_DMAC1          ACL_DMAC2          ACL_SMAC0          ACL_SMAC1          ACL_SMAC2          ACL_ETHERTYPE      ACL_FIELD_SELECT15}
    {ACL_IP4SIP0           ACL_IP4SIP1        ACL_IP4DIP0        ACL_IP4DIP1        ACL_FIELD_SELECT13 ACL_FIELD_SELECT14 ACL_FIELD_SELECT02 ACL_FIELD_SELECT15}
    {ACL_IP6SIP0WITHIPV4   ACL_IP6SIP1WITHIPV4ACL_FIELD_SELECT03 ACL_FIELD_SELECT04 ACL_FIELD_SELECT05 ACL_FIELD_SELECT06 ACL_FIELD_SELECT07 ACL_FIELD_SELECT08}
    {ACL_IP6DIP0WITHIPV4   ACL_IP6DIP1WITHIPV4ACL_FIELD_SELECT09 ACL_FIELD_SELECT10 ACL_FIELD_SELECT11 ACL_FIELD_SELECT12 ACL_FIELD_SELECT13 ACL_FIELD_SELECT14}
    {ACL_VIDRANGE          ACL_IPRANGE        ACL_PORTRANGE      ACL_CTAG           ACL_STAG           ACL_FIELD_SELECT13 ACL_FIELD_SELECT14 ACL_FIELD_SELECT15}
};

CONST_T rtk_uint8 filter_advanceCaretagField[RTL8367C_ACLTEMPLATENO][2] = {
    {TRUE      7}
    {TRUE      7}
    {FALSE     0}
    {FALSE     0}
    {TRUE      7}
};


CONST_T rtk_uint8 filter_fieldTemplateIndex[FILTER_FIELD_END][RTK_FILTER_FIELD_USED_MAX] = {
    {0x00 0x010x02}
    {0x03 0x040x05}
    {0x06}
    {0x43}
    {0x44}
    {0x10 0x11}
    {0x12 0x13}
    {0x24}
    {0x25}
    {0x35}
    {0x35}
    {0x20 0x210x220x23}
    {0x30 0x310x320x33}
    {0x26}
    {0x27}
    {0x14}
    {0x15}
    {0x16}
    {0x14}
    {0x15}
    {0x14}
    {0x14}
    {0x14}

    {0x40}
    {0x41}
    {0x42}

    {0x14}
    {0x15}
    {0x16}
    {0x22}
    {0x23}
    {0x24}
    {0x25}
    {0x26}
    {0x27}
    {0x32}
    {0x33}
    {0x34}
    {0x35}
    {0x36}
    {0x37}
    {0x47}

    {0xFF} /* Pattern Match */
};

CONST_T rtk_uint8 filter_fieldSize[FILTER_FIELD_END] = {
    3 3 1 1 1

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-09-01 09:23  Realtek_Unmanaged_Switch_API_V1.3.11_20170626(UTT)\
     目录           0  2017-09-01 09:19  Realtek_Unmanaged_Switch_API_V1.3.11_20170626(UTT)\API_Source\
     文件       80034  2017-06-26 15:59  Realtek_Unmanaged_Switch_API_V1.3.11_20170626(UTT)\API_Source\acl.c
     文件       29753  2017-06-26 15:59  Realtek_Unmanaged_Switch_API_V1.3.11_20170626(UTT)\API_Source\acl.h
     文件       17740  2017-06-26 15:59  Realtek_Unmanaged_Switch_API_V1.3.11_20170626(UTT)\API_Source\cpu.c
     文件        9580  2017-06-26 15:59  Realtek_Unmanaged_Switch_API_V1.3.11_20170626(UTT)\API_Source\cpu.h
     文件       30269  2017-06-26 15:59  Realtek_Unmanaged_Switch_API_V1.3.11_20170626(UTT)\API_Source\dot1x.c
     文件       16082  2017-06-26 15:59  Realtek_Unmanaged_Switch_API_V1.3.11_20170626(UTT)\API_Source\dot1x.h
     文件        5158  2017-06-26 15:59  Realtek_Unmanaged_Switch_API_V1.3.11_20170626(UTT)\API_Source\eee.c
     文件        2400  2017-06-26 15:59  Realtek_Unmanaged_Switch_API_V1.3.11_20170626(UTT)\API_Source\eee.h
     文件       12817  2017-06-26 15:59  Realtek_Unmanaged_Switch_API_V1.3.11_20170626(UTT)\API_Source\i2c.c
     文件        4354  2017-06-26 15:59  Realtek_Unmanaged_Switch_API_V1.3.11_20170626(UTT)\API_Source\i2c.h
     文件       51325  2017-06-26 15:59  Realtek_Unmanaged_Switch_API_V1.3.11_20170626(UTT)\API_Source\igmp.c
     文件       22193  2017-06-26 15:59  Realtek_Unmanaged_Switch_API_V1.3.11_20170626(UTT)\API_Source\igmp.h
     文件       14944  2017-06-26 15:59  Realtek_Unmanaged_Switch_API_V1.3.11_20170626(UTT)\API_Source\interrupt.c
     文件        7943  2017-06-26 15:59  Realtek_Unmanaged_Switch_API_V1.3.11_20170626(UTT)\API_Source\interrupt.h
     文件      101874  2017-06-26 15:59  Realtek_Unmanaged_Switch_API_V1.3.11_20170626(UTT)\API_Source\l2.c
     文件       39573  2017-06-26 15:59  Realtek_Unmanaged_Switch_API_V1.3.11_20170626(UTT)\API_Source\l2.h
     文件       18199  2017-06-26 15:59  Realtek_Unmanaged_Switch_API_V1.3.11_20170626(UTT)\API_Source\leaky.c
     文件       11206  2017-06-26 15:59  Realtek_Unmanaged_Switch_API_V1.3.11_20170626(UTT)\API_Source\leaky.h
     文件       26422  2017-06-26 15:59  Realtek_Unmanaged_Switch_API_V1.3.11_20170626(UTT)\API_Source\led.c
     文件       14295  2017-06-26 15:59  Realtek_Unmanaged_Switch_API_V1.3.11_20170626(UTT)\API_Source\led.h
     文件       19815  2017-06-26 15:59  Realtek_Unmanaged_Switch_API_V1.3.11_20170626(UTT)\API_Source\mirror.c
     文件        8881  2017-06-26 15:59  Realtek_Unmanaged_Switch_API_V1.3.11_20170626(UTT)\API_Source\mirror.h
     文件        7473  2017-06-26 15:59  Realtek_Unmanaged_Switch_API_V1.3.11_20170626(UTT)\API_Source\oam.c
     文件        4348  2017-06-26 15:59  Realtek_Unmanaged_Switch_API_V1.3.11_20170626(UTT)\API_Source\oam.h
     文件       86788  2017-07-03 16:25  Realtek_Unmanaged_Switch_API_V1.3.11_20170626(UTT)\API_Source\port.c
     文件       31787  2017-06-26 15:59  Realtek_Unmanaged_Switch_API_V1.3.11_20170626(UTT)\API_Source\port.h
     文件       25305  2017-06-26 15:59  Realtek_Unmanaged_Switch_API_V1.3.11_20170626(UTT)\API_Source\ptp.c
     文件       15221  2017-06-26 15:59  Realtek_Unmanaged_Switch_API_V1.3.11_20170626(UTT)\API_Source\ptp.h
     文件       50920  2017-06-26 15:59  Realtek_Unmanaged_Switch_API_V1.3.11_20170626(UTT)\API_Source\qos.c
............此处省略92个文件信息

评论

共有 条评论