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

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

?? zl5011xinit.c

?? Zalink50114----TDMoIP芯片驅(qū)動源碼
?? C
?? 第 1 頁 / 共 5 頁
字號:
      {
         gotDevice = ZL5011X_TRUE;
      }
   }

   /* main function code starts */

   if (status == ZL5011X_OK)
   {
      ZL5011X_TRACE(ZL5011X_INIT_FN_ID,
            "zl5011xWanInit:  if type %d",
            par->ifType, 0, 0, 0, 0, 0);

      /* the memory must be initialised before the WAN is configured */
      if (zl5011xParams->memoryInitialised == ZL5011X_FALSE)
      {
         status = ZL5011X_MEMORY_NOT_INIT;
      }
   }

   if (status == ZL5011X_OK)
   {
      if (zl5011xParams->wanInitialised == ZL5011X_TRUE)
      {
         status = ZL5011X_MULTIPLE_INIT_ATTEMPT;
      }
   }

   /* initialise the WAN blocks - note that the memory must be active before
      initialising the PLA */
   if (status == ZL5011X_OK)
   {
      status = zl5011xInitBlocks(zl5011xParams, ZL5011X_ADM_TIF_BIT | ZL5011X_ADM_TFM_BIT |
            ZL5011X_ADM_TFQ_BIT | ZL5011X_ADM_PAC_BIT | ZL5011X_ADM_PLA_BIT);
   }

   /* initialise the TIF block, and set the interface type. This sets the number of
      streams etc. and must be done before the TFM, TFQ. */
   if (status == ZL5011X_OK)
   {
      status = zl5011xTifInit(zl5011xParams);
   }

   if (status == ZL5011X_OK)
   {
      status = zl5011xTifSetInterfaceType(zl5011xParams, par->ifType, par->liuFreq, par->liuFreqHz);
   }

   /* initialise the other WAN blocks */
   if (status == ZL5011X_OK)
   {
      status = zl5011xTfmInit(zl5011xParams);
   }

   if (status == ZL5011X_OK)
   {
      status = zl5011xTfqInit(zl5011xParams);
   }

   if (status == ZL5011X_OK)
   {
      status = zl5011xTfqSetGranuleUsage(zl5011xParams, par->txQueueMaxNumberOfGranules);
   }

   if (status == ZL5011X_OK)
   {
      status = zl5011xPacInit(zl5011xParams);
   }

   if (status == ZL5011X_OK)
   {
      status = zl5011xPlaInit(zl5011xParams);
   }

   if (status == ZL5011X_OK)
   {
      zl5011xParams->wanInitialised = ZL5011X_TRUE;

      for (loop = 0; loop < ZL5011X_MAX_NUMBER_CONTEXTS; loop++)
      {
         zl5011xParams->wanIf.txQueue[loop].queueInitialised = ZL5011X_FALSE;
      }
   }

   if (gotDevice == ZL5011X_TRUE)
   {
      if (status == ZL5011X_OK)
      {
         status = zl5011xReleaseDevice(zl5011xParams);
      }
      else
      {
         /* already have an error code, so don't overwrite it */
         (void)zl5011xReleaseDevice(zl5011xParams);
      }
   }

   return status;
}

/*******************************************************************************

 Function:
    zl5011xLanInitStructInit

 Description:
   Initialises structure used by zl5011xLanInit function.

 Inputs:
   zl5011xParams   Pointer to the structure for this device instance
   par            Pointer to the structure for configuration items.
                  See main function

 Returns:
   zlStatusE

 Remarks:
    None

*******************************************************************************/

zlStatusE zl5011xLanInitStructInit(zl5011xParamsS *zl5011xParams, zl5011xLanInitS *par)
{
   zlStatusE status = ZL5011X_OK;

   if (status == ZL5011X_OK)
   {
      ZL5011X_TRACE(ZL5011X_INIT_FN_ID, "zl5011xLanInitStructInit: ", 0, 0, 0, 0, 0, 0);

      par->maxPacketQueueGranules = (Uint32T)ZL5011X_INVALID;
      par->rtpInterruptPeriodMs = 5;
      par->osExclusionEnable = ZL5011X_TRUE;

      par->unmatchedProtocolLoopback = ZL5011X_FALSE;
      par->packetLoopbackConfig.protocolType = ZL5011X_LOOPBACK_ETHERNET;
      par->packetLoopbackConfig.header = NULL;
      par->packetLoopbackConfig.portNum = (Uint8T)ZL5011X_INVALID;
      par->packetLoopbackConfig.queueNum = (Uint8T)ZL5011X_INVALID;
      par->packetLoopbackConfig.enableVlan = ZL5011X_FALSE;
      par->packetLoopbackConfig.ethernetSrcAddressFromMac = ZL5011X_TRUE;
   }

   return status;
}

/*******************************************************************************

 Function:
    zl5011xLanInit

 Description:
   This function initialises the LAN interface blocks. The Tx low headers are
   setup and the queues initialised. Sets the frequency of the RTP interrupt.
   This function does not configure the actual Lan ports. The ports can be
   configured after this function has been run.
   There are several functions used to configure the device from reset. They
   are shown below, and must be called in this sequence, in order to enable the
   device.
      zl5011xInit
      zl5011xConfigureMemory
      zl5011xWanInit
      zl5011xLanInit
      zl5011xRun

 Inputs:
   zl5011xParams   Pointer to the structure for this device instance
   par            Pointer to the structure for configuration items. See below:

 Structure inputs:
   maxPacketQueueGranules  maximum number of granules to use for the packet
                           queues
   rtpInterruptPeriodMs    the minimum time between RTP interrupts in
                           milli-seconds
   unmatchedProtocolLoopback  set to ZL5011X_TRUE to configure loopback for
                           any packets that fail the packet Rx protocol
                           match.
   packetLoopbackConfig    configuration for the header to be attached to the
                           loopback packets. The three types of header are :-
                           ETHERNET - replaces the src and dest MAC addresses
                           IP_UDP - adds an extra ethernet->IPv4->UDP header
                           MPLS - adds an extra ethernet->MPLS header
   osExclusionEnable       ZL5011X_TRUE to enable OS exclusion

 Structure outputs:
   None

 Returns:
   zlStatusE

 Remarks:
   The RTP interrupt is enabled from the block, but not from the device (the
   interrupt needs to be enabled at the top level).
   It is probably not desirable to have all packets looped back before the
   active contexts etc. have been programmed, so this function only configures
   the loopback and does NOT enable it. The loopback can be enabled / disabled
   by calling zl5011xPacketLoopbackControl.

*******************************************************************************/

zlStatusE zl5011xLanInit(zl5011xParamsS *zl5011xParams, zl5011xLanInitS *par)
{
   zlStatusE status = ZL5011X_OK;
   zl5011xBooleanE gotDevice = ZL5011X_FALSE;

   /* do some parameter checking */
   status = ZL5011X_CHECK_POINTERS(zl5011xParams, par);

   if ((status == ZL5011X_OK) && (par->osExclusionEnable == ZL5011X_TRUE))
   {
      /* get access to the device */
      status = zl5011xGetDevice(zl5011xParams, ZL5011X_GET_DEVICE_TIMEOUT_MODE);

      if (status == ZL5011X_OK)
      {
         gotDevice = ZL5011X_TRUE;
      }
   }

   /* main function code starts */

   if (status == ZL5011X_OK)
   {
      ZL5011X_TRACE(ZL5011X_INIT_FN_ID,
            "zl5011xLanInit: ",
            0, 0, 0, 0, 0, 0);

      /* the WAN must be initialised before the LAN is configured */
      if (zl5011xParams->wanInitialised == ZL5011X_FALSE)
      {
         status = ZL5011X_WAN_NOT_INIT;
      }
   }

   if (status == ZL5011X_OK)
   {
      if (zl5011xParams->lanInitialised == ZL5011X_TRUE)
      {
         status = ZL5011X_MULTIPLE_INIT_ATTEMPT;
      }
   }

   /* initialise the LAN blocks - PKQ and PTX do not have initialisation bits */
   if (status == ZL5011X_OK)
   {
      status = zl5011xInitBlocks(zl5011xParams, ZL5011X_ADM_PKI_BIT | ZL5011X_ADM_PRX_BIT |
            ZL5011X_ADM_PKC_BIT | ZL5011X_ADM_RTP_BIT);
   }

   /* enable the PTX block, this does not have an init, and needs to be run
      before it can be accessed */
   if (status == ZL5011X_OK)
   {
      status = zl5011xAdmEnableBlocks(zl5011xParams, ZL5011X_ADM_PTX_BIT);
   }

   if (status == ZL5011X_OK)
   {
      status = zl5011xPkiInit(zl5011xParams);
   }

   if (status == ZL5011X_OK)
   {
      status = zl5011xPkcInit(zl5011xParams);
   }

   if (status == ZL5011X_OK)
   {
      status = zl5011xPrxInit(zl5011xParams);
   }

   if (status == ZL5011X_OK)
   {
      status = zl5011xPtxInit(zl5011xParams);
   }

   /* configure the PTX - ethernet and IP header generation */
   if (status == ZL5011X_OK)
   {
      status = zl5011xPtxConfigure(zl5011xParams);
   }

   /* PKQ initialisation */
   if (status == ZL5011X_OK)
   {
      status = zl5011xPkqInit(zl5011xParams);
   }

   if (status == ZL5011X_OK)
   {
      /* if the value has been set by the calling function then make the call */
      if (par->maxPacketQueueGranules != (Uint32T)ZL5011X_INVALID)
      {
         status = zl5011xPkqSetTotalGranuleThreshold(zl5011xParams,
               par->maxPacketQueueGranules);
      }
   }

   if (status == ZL5011X_OK)
   {
      status = zl5011xRtpInit(zl5011xParams);
   }

   if (status == ZL5011X_OK)
   {
      status = zl5011xRtpSetInterruptPeriod(zl5011xParams, par->rtpInterruptPeriodMs);
   }

   if (status == ZL5011X_OK)
   {
      status = zl5011xRtpConfigure(zl5011xParams,
            ZL5011X_RTP_STATS_BASE, ZL5011X_RTP_HEADER_BASE);
   }

   if (par->unmatchedProtocolLoopback == ZL5011X_TRUE)
   {
      /* set up the packet Tx header first */
      if (status == ZL5011X_OK)
      {
         if (par->packetLoopbackConfig.header == NULL)
         {
            status = ZL5011X_PARAMETER_INVALID;
         }
         else
         {
            status = zl5011xPacketTxLoopback(zl5011xParams, &(par->packetLoopbackConfig));
         }
      }

      /* set up the packet Rx for unmatched packets */
      if (status == ZL5011X_OK)
      {
         status = zl5011xPacketRxLoopback(zl5011xParams, &(par->packetLoopbackConfig),
               par->unmatchedProtocolLoopback);
      }

      if (status == ZL5011X_OK)
      {
         zl5011xParams->packetIf.unmatchedProtocolLoopback = par->unmatchedProtocolLoopback;
      }
   }

   if (status == ZL5011X_OK)
   {
      zl5011xParams->lanInitialised = ZL5011X_TRUE;
   }

   if (gotDevice == ZL5011X_TRUE)
   {
      if (status == ZL5011X_OK)
      {
         status = zl5011xReleaseDevice(zl5011xParams);
      }
      else
      {
         /* already have an error code, so don't overwrite it */
         (void)zl5011xReleaseDevice(zl5011xParams);
      }
   }

   return status;
}

/*******************************************************************************

 Function:
    zl5011xRunStructInit

 Description:
   Initialises structure used by zl5011xRun function.

 Inputs:
   zl5011xParams   Pointer to the structure for this device instance
   par            Pointer to the structure for configuration items.
                  See main function

 Returns:
   zlStatusE

 Remarks:
    None

*******************************************************************************/

zlStatusE zl5011xRunStructInit(zl5011xParamsS *zl5011xParams, zl5011xRunS *par)
{
   zlStatusE status = ZL5011X_OK;

   if (status == ZL5011X_OK)
   {
      ZL5011X_TRACE(ZL5011X_INIT_FN_ID, "zl5011xRunStructInit: ", 0, 0, 0, 0, 0, 0);

      par->osExclusionEnable = ZL5011X_TRUE;
   }

   return status;
}

/*******************************************************************************

 Function:
    zl5011xRun

 Description:
   This function is the last stage of the initialisation sequence. If all of the
   other initialisation functions has completed successfully, then the blocks are
   put into run mode.
   There are several functions used to configure the device from reset. They
   are shown below, and must be called in this sequence, in order to enable the
   device.
      zl5011xInit
      zl5011xConfigureMemory
      zl5011xWanInit
      zl5011xLanInit

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美大片一区二区三区| 日韩一区二区三区在线观看| 欧美一区二区三区在线视频| 国产精品视频一区二区三区不卡| 午夜不卡av免费| 99久久夜色精品国产网站| 欧美一级精品在线| 1024成人网色www| 国产精品一区2区| 91麻豆精品国产91久久久使用方法 | 国产精品国产三级国产三级人妇 | 精品成人一区二区三区四区| 夜夜精品视频一区二区| 成人午夜电影网站| 91精品国产一区二区三区香蕉| 亚洲老妇xxxxxx| 成人激情小说网站| 日韩欧美成人一区二区| 亚洲成人资源网| 99re这里只有精品视频首页| 欧美大片一区二区三区| 日韩中文字幕91| 91无套直看片红桃| 国产精品欧美久久久久无广告| 精品一区二区在线视频| 欧美一区二区三区视频在线| 亚洲一区在线观看视频| 99re视频这里只有精品| 亚洲国产精品成人综合色在线婷婷 | 国产精品福利影院| 国产精品中文欧美| 精品免费视频一区二区| 日韩av电影免费观看高清完整版 | 欧美一区二区观看视频| 一区二区三区精密机械公司| 99在线视频精品| 国产欧美日韩在线看| 国产精品亚洲综合一区在线观看| 精品国精品自拍自在线| 另类小说视频一区二区| 日韩一级黄色片| 美女视频黄 久久| 日韩一区二区在线免费观看| 免费黄网站欧美| 日韩一级完整毛片| 午夜精品在线看| 538在线一区二区精品国产| 一区二区欧美国产| 在线观看国产一区二区| 一区二区视频在线| 99久久国产综合精品女不卡 | 欧美日韩精品三区| 五月天久久比比资源色| 欧美一区二区不卡视频| 日本亚洲天堂网| 精品成人在线观看| 国产成人av一区二区三区在线 | 欧美一级理论性理论a| 蜜臀av亚洲一区中文字幕| 欧美精品v日韩精品v韩国精品v| 三级影片在线观看欧美日韩一区二区| 欧美精品乱人伦久久久久久| 秋霞午夜鲁丝一区二区老狼| 亚洲精品在线观| 国产成人免费视频精品含羞草妖精 | 欧美亚洲禁片免费| 日韩国产欧美视频| 欧美大片日本大片免费观看| 国内精品国产成人| 日本一区二区三区国色天香 | 懂色中文一区二区在线播放| 中文字幕亚洲欧美在线不卡| 欧洲日韩一区二区三区| 视频一区国产视频| 久久尤物电影视频在线观看| 成人18精品视频| 亚洲免费av高清| 6080日韩午夜伦伦午夜伦| 国产综合久久久久影院| 国产精品久久久久桃色tv| 欧美性一区二区| 麻豆精品视频在线观看视频| 国产亚洲欧美中文| 在线观看欧美精品| 久久精品国产秦先生| 国产精品久久二区二区| 欧美精品精品一区| 国产乱人伦偷精品视频免下载| 亚洲色图欧洲色图| 4hu四虎永久在线影院成人| 精品一区二区三区香蕉蜜桃| 国产免费观看久久| 欧美精三区欧美精三区| 国产精选一区二区三区| 亚洲国产精品久久久久婷婷884| 日韩欧美国产成人一区二区| 成人手机电影网| 亚洲影视在线观看| 国产婷婷一区二区| 欧美久久一区二区| 成人午夜精品一区二区三区| 日韩电影在线免费看| 国产精品久久久久影院| 欧美电影在哪看比较好| 成人一区二区三区| 免费观看一级特黄欧美大片| 国产精品久久久久7777按摩| 日韩一区二区中文字幕| 91久久精品一区二区| 国内精品伊人久久久久av一坑 | 国产精品丝袜黑色高跟| 777亚洲妇女| 99久久精品国产麻豆演员表| 日本最新不卡在线| 亚洲男人天堂av| 久久久久久麻豆| 91精品婷婷国产综合久久性色| 99久久99久久精品免费观看 | 日韩av不卡一区二区| 国产精品久久免费看| 欧美大片国产精品| 欧美日韩精品一二三区| 91欧美一区二区| 久久99久久久欧美国产| 亚洲综合在线五月| 国产精品色噜噜| 精品处破学生在线二十三| 欧美剧情片在线观看| 色天天综合色天天久久| 成人综合在线观看| 麻豆精品视频在线观看免费 | 国产亚洲综合av| 91精品国产综合久久蜜臀 | 亚洲精品中文在线影院| 久久免费电影网| 欧美xingq一区二区| 欧美色爱综合网| 99国产精品一区| 成人av在线资源网站| 蜜桃视频免费观看一区| 亚洲成人av在线电影| 国产精品国产三级国产aⅴ无密码| 欧美大肚乱孕交hd孕妇| 欧美年轻男男videosbes| 91官网在线免费观看| 99精品久久免费看蜜臀剧情介绍| 国产精品一区二区久久不卡| 久久99精品国产麻豆婷婷| 亚洲成人黄色小说| 亚洲国产视频在线| 亚洲国产视频直播| 亚洲成人午夜电影| 五月天一区二区三区| 亚洲成人激情综合网| 亚洲国产成人高清精品| 亚洲国产精品久久人人爱| 一区二区三区国产精品| 亚洲主播在线观看| 亚洲国产日韩a在线播放| 亚洲乱码国产乱码精品精可以看| 亚洲免费观看高清完整版在线观看| 中文字幕一区日韩精品欧美| 国产欧美精品一区| 国产人成亚洲第一网站在线播放| 久久精品日韩一区二区三区| 91精品免费观看| 91精品国产综合久久久久久久久久 | 亚洲成人av一区二区三区| 亚洲一二三四区| 亚洲成a人片在线观看中文| 亚洲成精国产精品女| 亚洲电影在线免费观看| 视频一区欧美精品| 久久草av在线| 国产精品白丝av| 成人一二三区视频| 91香蕉视频黄| 精品视频在线看| 宅男在线国产精品| 久久新电视剧免费观看| 欧美国产精品一区二区| 亚洲免费观看高清| 亚洲妇女屁股眼交7| 免费视频一区二区| 国产一区二区毛片| av中文字幕在线不卡| 欧美中文字幕一区| 在线播放国产精品二区一二区四区| 欧美一级理论片| 久久久99精品久久| 亚洲欧美日韩小说| 日精品一区二区三区| 国内不卡的二区三区中文字幕| 成人视屏免费看| 欧美日韩激情一区二区三区| 日韩欧美在线网站| 国产精品久久久久久久浪潮网站| 亚洲精品一卡二卡| 免费观看久久久4p| 成人在线视频一区二区|