亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? enable_gmacs.c

?? hifn ipsec固件下載工具
?? C
?? 第 1 頁 / 共 4 頁
字號:
/*----------------------------------------------------------------------------*  Copyright (c) 2006 by Hifn, Inc, Los Gatos, CA, U.S.A.  All Rights Reserved.  This  software is furnished to licensee under a software license  agreement  and may be used and copied only in accordance with the terms and conditions  of such license and with the inclusion of the above Copyright Notice.  This  software  or  any  other  copies  thereof may not be provided or  otherwise  made  available  to any  other person.  No title to and  ownership  of  the  software   is   hereby   transferred   and   licensee  is  subject  to  all  confidentiality  provisions set forth in the  software  license  agreement.  The information in this software is  subject to change without notice.*-----------------------------------------------------------------------------*/static char const hftc_id[] = "$Id: @(#) enable_gmacs.c 1.11@(#) $";/*----------------------------------------------------------------------------* * @file enable_gmacs.c * @brief Enable the gmacs. * * This program is similar to the code in the startup utility enable_gmacs. * *----------------------------------------------------------------------------*//* @defgroup CD_API_UTIL *//*------------------------------------* * Header Include *------------------------------------*//* Standard includes */#include <stdio.h>#include <string.h>#include <stdlib.h>/* API specific includes */#include "download.h"#include "hftc_pub_common.h"#include "hftc_pub_types.h"#include "hftc_pub_errors.h"#include "hftc_pub_gmac.h"#include "hftc_pub_service.h"#include "hftc_pub_os_common.h"#include "hftc_pub_translate_enums.h"#include "hftc_pub_app_utils.h"/*------------------------------------* * Constants and Types *------------------------------------*/#define  DL_DEBUG   0     /* Set = 1 to get debug output, 0 for none. *//*   We are currently enabling the transmit and recieve, and setting the GMACs   into a MAC filtering mode.  If your situation requires customization, this   is a place it can be done.  The ROM currently sets up the GMAC registers   as follows:   1) The DPU Boot ROM code will set up Host 0 / register 1 based on   the boot config pin and pp_gpio_7   2) The DPU Init code will set up the rest as follows:   Register 0: For Host 1, Network 0, and Network 1      If operating in GMII mode : PLL_MODE_1 == "1"      Config register 0 = WATCHDOG_DIS | JABBER_DIS | FRMBURST_EN |                          JUMBOFRM_EN | BIGENDIAN_EN | RX_OWN_DIS |                          FULLDPLX_EN | DEFERRAL_CHK_EN      If operating in MII mode : PLL_MODE_1 == "0"      Config register 0 = WATCHDOG_DIS | JABBER_DIS | FRMBURST_EN |                          JUMBOFRM_EN | BIGENDIAN_EN | RX_OWN_DIS |                          FULLDPLX_EN | DEFERRAL_CHK_EN |                          MIIMODE_DIS   Note: The MIIMODE_DIS bit will be controlled by the station         manager at run time.   Register 1: For Host 0, Host 1      Config register 1 = PROMISC_MODE   Register 1: For Network 0, Network 1 (Address Filter Mode)         Config register 1 = 0   Note: This is the preferred mode where user has 16 progammable         MAC addresses for each GMAC for programming unicast and         multicast addresses.  However, for ease of initial setup         the GMAC is being set into in promiscuous mode.   Register 6 : For H0, H1, N0,  N1      Config register 6 = RX_PAUSE_EN | TX_PAUSE_EN | Pause time (0x10000000)                        = 0x00 0x10 0x00 0x06   3) Additional Host programming:      1) Register 6 should be left alone      2) Register 0 :         a) For any ports that the user wants to enable the user can            read the value and OR in the TX and RX enable bits.         b) If the user knows that the packets, with all headers (i.e.            PPCI and IPSec ) will not exceed 1522 bytes, the JUMBOFRM,            WATCHDOG and JABBER can be clear.      3) Register 1 may need to be programmed in the following cases:         (This helps reduce the number of pause frames that pass         to the DPU caused by the Pause Frame errata ER-17 -- this is         43x0/83x0 specific).         a) If no multicast addresses are needed:            - Put the host side GMACs into inverse filter mode.            - Put the network side GMACs into address filter mode             (allow up to 16 unicast addresses.)         b) On a 43x0/83x0 if multicast is needed and the multicast            addresses used don't hash to the pause address (there is no            issue with pause address on the 44x0/84x0):            - Put the host side GMACs into promiscuous mode.            - Put the network side GMACs into hash mode (set the              appropriate hash bits in the hash register and leave bit 3              reset. The pause address hashes to bit 3.         c) On a 43x0/83x0 if multicast is needed and the address does hash            to the pause address (there is no issue with pause address on            the 44x0/84x0):            - Put the host side GMACs into promiscuous mode.            - Put the network side GMACs into address filter mode for              both unicast and multicast (you will be limited to 16 of              these filters).         d) If multicast is needed and more than 16 MAC addresses            are needed:            - Put the host side GMACs into promiscuous mode            - Put the net side GMACs into promiscuous mode              or  enable multicast.              or  enable promiscuous mode.         On the 44x0/84x0 to allow the neighbor discovery address (a         multicast address) to go through, we use promiscuous mode on         the host ports, and set the allow multicast bit on the network         side ports.   --------------------------------------------------      This code sets TX and RX enable bits in register 0.      It is allowing the possibility of jumbo packets.      When using MAC filtering, the code will set the HOST side GMACs to use      inverse filtering on an invalid MAC address.  This will prevent the      pause frames from being received as they are multicast.  It will also      program the IKE MAC addresses from the configparams file into the MAC      filtering addresses on the NETWORK side.      When setting promiscuous mode, the code will set the MAC Frame Filter      register into Promiscous mode.      Register 0 is the MAC Configuration Register register                 (HFTC_GMAC_SYN_MAC_CONFIG)      Register 1 is the MAC Frame Filter Register register                 (HFTC_GMAC_SYN_MAC_FRAME_FILTER)      Register 6 is the Flow Control Register                 (HFTC_GMAC_SYN_FLOW_CONTROL)      Register 16 is a MAC address filter register for the right-most                  network order bytes.  See hftc_pub_gmac.h                 (HFTC_GMAC_SYN_MAC_ADDR0_LO)      Register 17 is a MAC address filter register for the left-most                  network order bytes.                 (HFTC_GMAC_SYN_MAC_ADDR0_HI)      Register 18 is a MAC address filter register for the right-most                  network order bytes.                 (HFTC_GMAC_SYN_MAC_ADDR1_LO)      Register 19 is a MAC address filter register for the left-most                  network order bytes.                 (HFTC_GMAC_SYN_MAC_ADDR1_HI)      The TX enable bit is bit 3 in HFTC_GMAC_SYN_MAC_CONFIG      The RX enable bit is bit 2 in HFTC_GMAC_SYN_MAC_CONFIG      This code is enabling both Host 0 and 1, and Network 0 and 1*//*   The origin of the values below can be found in UG-0039 Hipp III 43x0 83x0   User's Guide.*/#define CONFIG_ENABLE                   0x0000000C#define FILTER_MASK                     0x0000003F#define FILTER_PERFECT                  0x00000000#define FILTER_ALLOW_MULTICAST          0x00000010#define FILTER_PROMISC                  0x00000001#define FILTER_INVERSE                  0x00000008/*   This is the typedef for the table used to configure the gmacs.*/typedef struct{   HFTC_GMACReg_t             gmac;   HFTC_GMACIndex_t           index;   uint32_t                   config;} gmac_config_t;/*   This is how many entries are used in the gmac_config_table.   For a 4300 or 8300 we only configure HOST0, NET0, so the number is half   that of the x350 or x450 units.   Although NET1 can be enabled on a 4300 or 8300 (it may be present for   failover use) it is not present on all boards.  It is not enabled here.*/#define GMAC_CONFIG_TABLE_SIZE          12#define GMAC_CONFIG_TABLE_SIZE_x300     (GMAC_CONFIG_TABLE_SIZE/2)/*   This is the typedef for the table used add MAC addresses for MAC   filtering.*/typedef struct{   HFTC_GMACReg_t             lo;   HFTC_GMACReg_t             hi;} gmac_filtering_t;/*------------------------------------* * External Variables *------------------------------------*//*------------------------------------* * File-Scope Variables *------------------------------------*//*   This table defines what gmac registers we are configuring and how.   The table is also used for setting the address filtering modes.  If   promiscous mode is being used, the config value is overwritten - that is a   FILTER_INVERSE is overwritten with FILTER_PROMISC, etc.  The value for   the mac frame filter is also overwritten for the 44x0/84x0.  The value being   written into the 0 MAC address is the invalid MAC address for inverse   filtering.  The order of the bytes are reversed and the high bit of the   low address is set (it is the enable bit).  Thus a MAC address of   11:22:33:44:55:66 will be written as 0x80006655 0x44332211*/static gmac_config_t gmac_config_table[GMAC_CONFIG_TABLE_SIZE] ={  {HFTC_GMAC_HOST0_CONTROL, HFTC_GMAC_SYN_MAC_ADDR0_LO,     0x80000000},  {HFTC_GMAC_HOST0_CONTROL, HFTC_GMAC_SYN_MAC_ADDR0_HI,     0x00000001},  {HFTC_GMAC_HOST0_CONTROL, HFTC_GMAC_SYN_MAC_FRAME_FILTER, FILTER_INVERSE},  {HFTC_GMAC_NET0_CONTROL,  HFTC_GMAC_SYN_MAC_FRAME_FILTER, FILTER_PERFECT},  {HFTC_GMAC_HOST0_CONTROL, HFTC_GMAC_SYN_MAC_CONFIG,       CONFIG_ENABLE},  {HFTC_GMAC_NET0_CONTROL,  HFTC_GMAC_SYN_MAC_CONFIG,       CONFIG_ENABLE},  {HFTC_GMAC_HOST1_CONTROL, HFTC_GMAC_SYN_MAC_ADDR0_LO,     0x80000000},  {HFTC_GMAC_HOST1_CONTROL, HFTC_GMAC_SYN_MAC_ADDR0_HI,     0x00000001},  {HFTC_GMAC_HOST1_CONTROL, HFTC_GMAC_SYN_MAC_FRAME_FILTER, FILTER_INVERSE},  {HFTC_GMAC_NET1_CONTROL,  HFTC_GMAC_SYN_MAC_FRAME_FILTER, FILTER_PERFECT},  {HFTC_GMAC_NET1_CONTROL,  HFTC_GMAC_SYN_MAC_CONFIG,       CONFIG_ENABLE},  {HFTC_GMAC_HOST1_CONTROL, HFTC_GMAC_SYN_MAC_CONFIG,       CONFIG_ENABLE}};/*   This table is used to map a "slot" where we append a GMAC address in to   the MAC filtering table into the register pair used for the   HFTC_WriteGMACRegister calls into the API.*/static gmac_filtering_t gmac_filter_table[] ={   {HFTC_GMAC_SYN_MAC_ADDR0_LO, HFTC_GMAC_SYN_MAC_ADDR0_HI},   {HFTC_GMAC_SYN_MAC_ADDR1_LO, HFTC_GMAC_SYN_MAC_ADDR1_HI},   {HFTC_GMAC_SYN_MAC_ADDR2_LO, HFTC_GMAC_SYN_MAC_ADDR2_HI},   {HFTC_GMAC_SYN_MAC_ADDR3_LO, HFTC_GMAC_SYN_MAC_ADDR3_HI},   {HFTC_GMAC_SYN_MAC_ADDR4_LO, HFTC_GMAC_SYN_MAC_ADDR4_HI},   {HFTC_GMAC_SYN_MAC_ADDR5_LO, HFTC_GMAC_SYN_MAC_ADDR5_HI},   {HFTC_GMAC_SYN_MAC_ADDR6_LO, HFTC_GMAC_SYN_MAC_ADDR6_HI},   {HFTC_GMAC_SYN_MAC_ADDR7_LO, HFTC_GMAC_SYN_MAC_ADDR7_HI},   {HFTC_GMAC_SYN_MAC_ADDR8_LO, HFTC_GMAC_SYN_MAC_ADDR8_HI},   {HFTC_GMAC_SYN_MAC_ADDR9_LO, HFTC_GMAC_SYN_MAC_ADDR9_HI},   {HFTC_GMAC_SYN_MAC_ADDR10_LO, HFTC_GMAC_SYN_MAC_ADDR10_HI},   {HFTC_GMAC_SYN_MAC_ADDR11_LO, HFTC_GMAC_SYN_MAC_ADDR11_HI},   {HFTC_GMAC_SYN_MAC_ADDR12_LO, HFTC_GMAC_SYN_MAC_ADDR12_HI},   {HFTC_GMAC_SYN_MAC_ADDR13_LO, HFTC_GMAC_SYN_MAC_ADDR13_HI},   {HFTC_GMAC_SYN_MAC_ADDR14_LO, HFTC_GMAC_SYN_MAC_ADDR14_HI},   {HFTC_GMAC_SYN_MAC_ADDR15_LO, HFTC_GMAC_SYN_MAC_ADDR15_HI}};/*   This is the size of the above table.  It is the number of pairs.*/#define NUM_SYN_MAC_ADDRESS_PAIRS       \        (sizeof(gmac_filter_table)/sizeof(gmac_filtering_t))/*------------------------------------* * Implementation *------------------------------------*//*----------------------------------------------------------------------------* * findParameterValue *----------------------------------------------------------------------------* * @ingroup startup * @brief Find the value of the given parameter in the configparams data. * * @param configParams_p       RO: configparams data. * @param parameter             RO: Parameter to find. * @param value_pp              WO: Pointer to pointer value (gets filled in) * * @par Externals: * * @return *    HFTC_STATUS_OK            Parsing ok, parameter found. * * @par Errors: *    HFTC_NOT_FOUND            Parsing problem, parameter not found. * * @par Locks: *    None. * * @par Assumptions: *    Assumes valid input (configparams file is good, parameter is good) * *----------------------------------------------------------------------------*/staticHFTC_Status_t findParameterValue(HFTC_ConfigParameters_t     *configParams_p,                                 HFTC_Parameter_t             parameter,                                 HFTC_ConfigParameterValue_t **value_pp){   HFTC_Status_t        status = HFTC_NOT_FOUND;   uint32_t             i;   do   {      for (i = 0; i < HFTC_CONFIG_PARAMETER_TABLE_SIZE; i++)      {

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲日本中文字幕区| 亚欧色一区w666天堂| 一区二区三区视频在线看| 日本不卡中文字幕| 色婷婷av一区二区三区gif| 26uuu久久天堂性欧美| 午夜久久电影网| 99久久综合国产精品| 日韩精品影音先锋| 香蕉影视欧美成人| 欧美一级二级三级蜜桃| 亚洲一线二线三线视频| 99re66热这里只有精品3直播| 久久亚洲综合色| 不卡大黄网站免费看| 国产精品免费视频网站| 国产成人在线影院| 2014亚洲片线观看视频免费| 成人av在线一区二区| 亚洲自拍都市欧美小说| 日韩三级视频在线看| 粉嫩欧美一区二区三区高清影视| 精品91自产拍在线观看一区| 日韩**一区毛片| 国产三级一区二区三区| 裸体在线国模精品偷拍| 欧美一级久久久久久久大片| 国产高清久久久久| 亚洲一区视频在线| 久久久噜噜噜久久人人看| 国内精品第一页| 久久久久久9999| 在线看不卡av| 丝袜美腿亚洲一区| 欧美一级搡bbbb搡bbbb| 久久精品国产网站| 国产三级一区二区| 91精品中文字幕一区二区三区| 午夜精品福利一区二区蜜股av| 国产亚洲欧美一区在线观看| 欧美裸体一区二区三区| 琪琪久久久久日韩精品| 久久久精品影视| 欧美色图免费看| 久久99日本精品| 一区二区三区日韩精品视频| 久久久久久久久久久99999| 欧美人与禽zozo性伦| 精品一区中文字幕| 欧美国产激情二区三区| 色吧成人激情小说| 日本在线不卡视频| 亚洲激情成人在线| 欧美v亚洲v综合ⅴ国产v| 国产白丝网站精品污在线入口| 亚洲成人高清在线| 亚洲精品高清视频在线观看| 国产精品久久免费看| 欧美精品 日韩| 欧美优质美女网站| 首页国产欧美久久| 亚洲精品国产无天堂网2021| 国产欧美综合在线| 欧美伦理视频网站| 欧美三级在线播放| 91福利在线免费观看| 一本大道久久a久久综合婷婷| 粉嫩在线一区二区三区视频| 国产精品影视网| 五月综合激情婷婷六月色窝| 亚洲激情五月婷婷| 艳妇臀荡乳欲伦亚洲一区| 亚洲色图一区二区三区| 亚洲日本电影在线| 亚洲日本青草视频在线怡红院| 中文一区二区在线观看| 国产精品午夜春色av| 国产精品三级久久久久三级| 中文字幕va一区二区三区| 欧美高清在线一区二区| 亚洲欧美一区二区在线观看| 精品日韩av一区二区| 欧美成人r级一区二区三区| 日韩一级免费一区| 精品99999| 日本一区二区三区在线观看| 日本一二三四高清不卡| 国产精品成人免费在线| 亚洲欧美日韩国产另类专区| 欧美极品xxx| 综合激情网...| 亚洲自拍偷拍网站| 免费一级片91| 风间由美性色一区二区三区| 91一区二区在线观看| 岛国一区二区三区| 精品制服美女丁香| 高清日韩电视剧大全免费| 99re亚洲国产精品| 欧美伦理视频网站| 久久精品视频一区二区| 亚洲女女做受ⅹxx高潮| 爽好多水快深点欧美视频| 国产美女av一区二区三区| 理论片日本一区| 国产99精品视频| 在线观看国产一区二区| 精品区一区二区| 国产精品网站一区| 日韩主播视频在线| 国产91富婆露脸刺激对白| 欧洲一区二区三区在线| 精品乱人伦一区二区三区| 亚洲人成亚洲人成在线观看图片| 日本不卡一区二区三区高清视频| 国产一区二区三区在线观看免费 | 欧美日韩在线亚洲一区蜜芽| 日韩一区二区在线观看视频| 国产精品人人做人人爽人人添| 亚洲妇熟xx妇色黄| 亚洲一级片在线观看| 爽好久久久欧美精品| 国产成人99久久亚洲综合精品| 欧美三级视频在线观看| 中文字幕精品在线不卡| 美女在线视频一区| 在线一区二区视频| 国产日韩欧美激情| 日本视频一区二区三区| 91老师片黄在线观看| 精品福利在线导航| 亚洲成人资源在线| av中文一区二区三区| 欧美成人精品福利| 性久久久久久久久久久久| 91丨porny丨首页| 国产亚洲女人久久久久毛片| 蜜桃视频一区二区三区| 欧美日韩视频在线一区二区| 亚洲色欲色欲www在线观看| 国产主播一区二区三区| 91麻豆精品国产91久久久| 亚洲人精品一区| 成人午夜av影视| 久久久久一区二区三区四区| 奇米影视在线99精品| 欧美色综合久久| 有坂深雪av一区二区精品| youjizz久久| 国产精品污www在线观看| 国产在线视视频有精品| 日韩精品一区二区三区四区视频| 亚洲高清免费一级二级三级| 一本色道综合亚洲| 亚洲狠狠丁香婷婷综合久久久| av电影在线观看一区| 欧美激情一区三区| 国产一区二区三区四区五区入口| 日韩限制级电影在线观看| 亚洲一二三区不卡| 99精品久久免费看蜜臀剧情介绍| 国产欧美中文在线| 成人久久视频在线观看| 国产精品丝袜一区| 99久久婷婷国产| 亚洲图片你懂的| 色久综合一二码| 亚洲动漫第一页| 5566中文字幕一区二区电影| 亚洲成人午夜电影| 欧美日韩高清一区二区三区| 亚洲va在线va天堂| 欧美精选一区二区| 青草国产精品久久久久久| 欧美本精品男人aⅴ天堂| 国产一区在线不卡| 国产精品国产自产拍高清av王其| 成人免费看片app下载| 亚洲欧洲另类国产综合| 91麻豆产精品久久久久久| 一级中文字幕一区二区| 欧美日本视频在线| 精品一区二区三区欧美| 欧美激情一区不卡| 91国产福利在线| 秋霞av亚洲一区二区三| 国产三级精品三级在线专区| 99re免费视频精品全部| 亚洲国产sm捆绑调教视频| 日韩一级二级三级精品视频| 国产精品一区在线观看你懂的| 中文字幕一区二区三区四区 | 欧美日韩在线电影| 日韩精品国产欧美| 久久蜜臀精品av| 色美美综合视频| 经典三级视频一区| 亚洲乱码国产乱码精品精的特点| 91精品国产欧美一区二区18 | 色播五月激情综合网|