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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? zl5011xcetqueue.c

?? Zalink50114----TDMoIP芯片驅動源碼
?? C
?? 第 1 頁 / 共 3 頁
字號:
/*******************************************************************************
*
*  File name:              zl5011xCetQueue.c
*
*  Version:                21
*
*  Author:                 MRC
*
*  Date created:           03/02/2003
*
*  Copyright 2002, 2003, 2004, 2005, Zarlink Semiconductor Limited.
*  All rights reserved.
*
*  Module Description:
*  This module contains functionality required for managing the WAN Tx queues,
*  and is provided as part of the CET function.
*
*  The CET queue task must be run at a higher priority than the application task
*
*  Revision History:
*
*  Rev:  Date:       Author:  Comments:
*  1     07/02/2003  MRC      Creation
*  2     07/03/2003  MRC      Review actions
*  3     11/06/2003  MRC      Modified criteria for resetting the queue
*  4     09/07/2003  MRC      Now handles queue overrun more effectively
*  5     21/07/2003  MRC      No longer uses queue length to decide on reset
*  6     29/07/2003  MRC      Split the CET internal params etc into a seperate
*                             header file.
*  7     04/09/2003  MRC      Added check that the parameter handle is valid
*                             before calling queue handler
*  8     29/07/2004  MRC      Fixed some compiler warnings
*  9     20/10/2004  MRC      Added queue depth adjust functionality following a
*                             reset of the TDM queue.
*  10    22/10/2004  MRC      Added variables to preserve task priority settings
*  11    03/11/2004  MRC      Added task priority variable
*  12    21/01/2005  MRC      Moved variable definition
*  13    28/01/2005  MRC      Renamed CetQueueTable to CetExtensionTable and
*                             added non CES clocking options
*  14    31/01/2005  MRC      Modified clocking function
*  15    03/03/2005  MRC      Added async notification mechanism
*  16    11/03/2005  APL      Added ZL5011X_ERR_FN_ID to trace on error
*  17    23/03/2005  MRC      Amended status check in clock mod function
*  18    01/04/2005  MRC      Added task priority variable for clock mod task
*  19    18/04/2005  MRC      Changed queue management context state checks
*  20    05/05/2005  APL      Fixed compiler warning
*  21    20/05/2005  MRC      Issues a reset if too many adjusts are taking place
*
*******************************************************************************/

/*****************   INCLUDE FILES                *****************************/

#include "zl5011xApi.h"
#include "zl5011xCet.h"
#include "zl5011xMisc.h"

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

/*****************   STATIC GLOBAL VARIABLES   ********************************/

zl5011xBooleanE zl5011xCetRunning = ZL5011X_FALSE;
zl5011xCetExtensionTableS *zl5011xCetExtensionTable = NULL;

/* instantiate some of the #defines from zl5011xCet.h into variables, to
   support customisation for object only releases */

Uint32T Zl5011xCetTaskPriority = ZL5011X_CET_TASK_PRIORITY;
Uint32T Zl5011xCetDiffTaskPriority = ZL5011X_CET_DIFF_TASK_PRIORITY;
Uint32T Zl5011xCetAdTaskPriority = ZL5011X_CET_AD_TASK_PRIORITY;
Uint32T Zl5011xCetAdEnhTaskPriority = ZL5011X_CET_AD_ENH_TASK_PRIORITY;
Uint32T Zl5011xCetDiffRxTaskPriority = ZL5011X_CET_DIFF_RX_TASK_PRIORITY;
Uint32T Zl5011xCetQueueTaskPriority = ZL5011X_CET_QUEUE_TASK_PRIORITY;
Uint32T Zl5011xCetModTaskPriority = ZL5011X_CET_MOD_TASK_PRIORITY;
Uint32T Zl5011xCetQueueSize = ZL5011X_CET_QUEUE_SIZE;
Uint32T Zl5011xCetStatusQueueSize = ZL5011X_CET_QUEUE_SIZE;

/*****************   STATIC FUNCTION DECLARATIONS   ***************************/

void zl5011xCetQueueHandler(Uint32T index);

Uint32T zl5011xCetQueueExtraDebug = (Uint32T)-1;

/*****************   EXPORTED FUNCTION DEFINTIONS   ***************************/

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

 Function:
   zl5011xCetReceiveStatusMsgStructInit

 Description:
   Initialise the structure used in function zl5011xCetReceiveStatusMsg

 Inputs:
   par            Pointer to the structure for configuration items.

 Outputs:
   None

 Returns:
   zlStatusE

 Remarks:
   None

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

zlStatusE zl5011xCetReceiveStatusMsgStructInit(zl5011xCetReceiveStatusMsgS *par)
{
   zlStatusE status = ZL5011X_OK;

   status = ZL5011X_CHECK_POINTERS((void *)1, par);

   if (status == ZL5011X_OK)
   {
      ZL5011X_TRACE( ZL5011X_CET_FN_ID,
            "zl5011xCetReceiveStatusMsgStructInit:",
            0, 0, 0, 0, 0, 0);

      par->timeout = 0;
   }

   return status;
}

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

 Function:
   zl5011xCetReceiveStatusMsg

 Description:
   This function will receive the packet at the top of the message queue

 Inputs:
   par            Pointer to the structure for configuration items.

 Structure inputs:
   timeout        The time (in processor ticks) to wait for a packet to be
                  received. Set to 0 to return immediately if there are no
                  status messages waiting, and -1 to wait indefinitely for a
                  status message to become available.

 Structure outputs:
   zl5011xParams   Pointer to the structure for this device instance.
   stream         stream that this flag change is for
   statusType     set to indicate the type of change that occurred
   remoteFlags    new state of the flags from the master
   cetStatus      new state of the clock recovery

 Outputs:
   None

 Returns:
   zlStatusE

 Remarks:
   None

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

zlStatusE zl5011xCetReceiveStatusMsg(zl5011xCetReceiveStatusMsgS *par)
{
   zlStatusE status = ZL5011X_OK;

   status = ZL5011X_CHECK_POINTERS((void *)1, par);

   if (status == ZL5011X_OK)
   {
      if (zl5011xCetRunning != ZL5011X_TRUE)
      {
         status = ZL5011X_NOT_RUNNING;
      }
   }

   if (status == ZL5011X_OK)
   {
      if (zl5011xCetExtensionTable->clockStatusMode == ZL5011X_CET_STATUS_DISABLE)
      {  /* Status event notification was not enabled during zl5011xCetInit */
         status = ZL5011X_NOT_RUNNING;

         ZL5011X_TRACE((ZL5011X_ERR_FN_ID | ZL5011X_CET_FN_ID),
               "zl5011xCetReceiveStatusMsg: status logging not enabled",
               0,0,0,0,0,0);
      }
   }

   if (status == ZL5011X_OK)
   {
      if (OS_MSG_Q_RECEIVE(zl5011xCetExtensionTable->clockStatusQueueId, (char *)&(par->msg),
            sizeof(zl5011xCetStatusMsgS), par->timeout) == OS_ERROR)
      {
         /* no message received so indicate this using the status type field in the msg structure */
         par->msg.statusType = ZL5011X_CET_STATUS_DISABLE;
      }
      else
      {
         ZL5011X_TRACE(ZL5011X_CET_FN_ID,
               "zl5011xCetReceiveStatusMsg: dev = %08lX, stream = %02d, type = %d, state = %d, flags = %02X",
               (Uint32T)par->msg.zl5011xParams,
               par->msg.stream,
               par->msg.statusType,
               par->msg.cetStatus,
               par->msg.remoteFlags,
               0);
      }
   }

   return status;
}

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

 Function:
    zl5011xCetQueueSetModeStructInit

 Description:
    Set up default parameters for the zl5011xCetQueueSetMode function

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

 Outputs:
   None

 Returns:
   zlStatusE

 Remarks:

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

zlStatusE zl5011xCetQueueSetModeStructInit(zl5011xParamsS *zl5011xParams,
      zl5011xCetQueueSetModeS *par)
{
   zlStatusE status = ZL5011X_OK;

   ZL5011X_TRACE(ZL5011X_CET_FN_ID,
         "zl5011xCetQueueSetModeStructInit:", 0, 0, 0, 0, 0, 0);

   status = ZL5011X_CHECK_POINTERS(zl5011xParams, par);

   if (status == ZL5011X_OK)
   {
      par->context = (Uint32T)ZL5011X_INVALID_CONTEXT;
      par->mode = ZL5011X_CET_QUEUE_ENABLE;

      par->resetPktDepth = (Uint32T)ZL5011X_INVALID;
   }

   return(status);
}

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

 Function:
      zl5011xCetQueueSetMode

 Description:
   This function is used to control the queue management for a given context.
   For example, if a queue uses the sequence number, then the queue depth will
   be constrained by this, and any over/under runs will NOT adjust the queue
   depth.
   This function is used with a resequencing queue, to adjust the queue depth
   in this situation.

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

 Structure inputs:
   context        which context to setup
   mode           control operation of the queue management for the context
   resetPktDepth  the target queue depth in packets to be actioned
                  whenever the TDM queue is reset. This mechanism is similar
                  to the jitter buffer level specified at context creation, and
                  will have an uncertainty on the actual queue depth equivalent
                  to the packet delay variation.
                  If this parameter is not specified or an invalid value then
                  the default operation is for the queue to be set to 1/2 depth
                  following a reset.

 Structure outputs:
   None

 Returns:
   zlStatusE

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产成人在线| 一区二区三区精品视频| 欧美午夜电影网| 国产曰批免费观看久久久| 亚洲精品乱码久久久久久久久| 欧美成人午夜电影| 在线免费视频一区二区| 国产成人一区在线| 秋霞午夜av一区二区三区| 日韩一区在线免费观看| wwwwww.欧美系列| 911精品国产一区二区在线| 成人黄色小视频在线观看| 麻豆91在线观看| 亚洲高清视频在线| 亚洲欧美一区二区久久| 欧美大胆人体bbbb| 欧美精品第1页| 欧洲色大大久久| 久久男人中文字幕资源站| 欧洲av在线精品| 色悠悠亚洲一区二区| 国产99久久久国产精品| 精品午夜久久福利影院| 五月天丁香久久| 亚洲国产欧美日韩另类综合| 《视频一区视频二区| 国产女主播在线一区二区| 精品国产a毛片| 精品国产一区二区在线观看| 欧美一区午夜视频在线观看| 欧美色图免费看| 在线观看av一区二区| 色综合一个色综合| 日本韩国欧美在线| 色综合中文字幕| 日本道免费精品一区二区三区| av毛片久久久久**hd| 成人动漫一区二区三区| 国产不卡高清在线观看视频| 国产成人在线视频免费播放| 国产精品一区二区x88av| 国产真实乱偷精品视频免| 激情都市一区二区| 国产在线观看一区二区| 国产精品中文有码| 成人免费高清视频在线观看| av影院午夜一区| 色哦色哦哦色天天综合| 色丁香久综合在线久综合在线观看| 成人高清免费在线播放| eeuss鲁片一区二区三区 | 亚洲激情第一区| 一区二区三区欧美日韩| 亚洲第一电影网| 日韩av电影天堂| 精品一区二区在线播放| 国产91高潮流白浆在线麻豆| av资源站一区| 欧美午夜片在线看| 欧美不卡一区二区| 国产精品入口麻豆原神| 亚洲女子a中天字幕| 五月综合激情日本mⅴ| 久久国产剧场电影| 成人免费毛片app| 欧洲色大大久久| 精品电影一区二区三区| 国产精品丝袜一区| 亚洲欧美另类久久久精品2019| 日韩精品国产欧美| 不卡视频一二三| 欧美三级日韩在线| 久久精品亚洲精品国产欧美| 自拍偷在线精品自拍偷无码专区| 一区二区三区国产精华| 久久精品国产网站| 9i在线看片成人免费| 欧美精品aⅴ在线视频| 久久久噜噜噜久噜久久综合| 亚洲精选在线视频| 久久精品国产亚洲一区二区三区 | 7777精品伊人久久久大香线蕉 | 青青草国产精品亚洲专区无| 国产a视频精品免费观看| 欧美色精品天天在线观看视频| 欧美不卡视频一区| 一区二区视频在线看| 精品一区二区三区视频| 一本色道**综合亚洲精品蜜桃冫| 日韩亚洲欧美高清| 最新欧美精品一区二区三区| 免费观看日韩电影| 色老头久久综合| 久久久精品蜜桃| 免费视频最近日韩| 色欧美乱欧美15图片| 日本一区免费视频| 日本最新不卡在线| 色偷偷88欧美精品久久久| 精品粉嫩超白一线天av| 日韩中文字幕不卡| 日本高清不卡在线观看| 国产欧美在线观看一区| 日韩成人午夜精品| 欧美性大战久久| 亚洲国产岛国毛片在线| 九九精品一区二区| 7777精品伊人久久久大香线蕉完整版 | 成人欧美一区二区三区1314| 毛片不卡一区二区| 欧美老人xxxx18| 亚洲欧美影音先锋| 国产成人在线网站| 26uuu国产在线精品一区二区| 亚洲成人av一区二区| 色婷婷精品大在线视频| 中文字幕一区二区三区四区不卡| 国内精品不卡在线| 精品国产乱码久久久久久闺蜜| 亚洲福利电影网| 色婷婷久久99综合精品jk白丝| 日韩一区在线看| 99国内精品久久| 欧美国产精品一区| 国产成人精品影院| 国产亲近乱来精品视频| 国产在线一区观看| 精品国产髙清在线看国产毛片| 日本亚洲视频在线| 日韩欧美高清在线| 精品在线一区二区| 精品国产91乱码一区二区三区| 免费成人av在线播放| 欧美一卡二卡三卡| 看电影不卡的网站| 久久精品亚洲精品国产欧美kt∨| 国产精品亚洲一区二区三区在线| 久久久久久久综合色一本| 看电视剧不卡顿的网站| 欧美精品一区二区三区高清aⅴ | 美女视频黄免费的久久| 欧美一区二区三区人| 琪琪一区二区三区| 91精品国产免费| 精品在线观看视频| 亚洲国产精品黑人久久久| 国产成人一区在线| 中文字幕一区二区日韩精品绯色| 99久久99久久综合| 亚洲va韩国va欧美va精品| 性久久久久久久久| 91精品国产综合久久婷婷香蕉 | 亚洲午夜在线电影| 欧美日韩亚洲综合一区| 秋霞电影网一区二区| 久久久蜜桃精品| 99久精品国产| 午夜视频在线观看一区二区| 日韩欧美一级精品久久| 国产盗摄一区二区| 亚洲人成人一区二区在线观看| 欧洲一区二区三区在线| 裸体健美xxxx欧美裸体表演| 久久精品在线观看| 91国偷自产一区二区三区观看| 日韩精品福利网| 国产视频一区在线观看| 在线免费av一区| 久久99蜜桃精品| 亚洲婷婷国产精品电影人久久| 欧美日韩久久久久久| 国产综合久久久久影院| 夜夜精品视频一区二区 | 一区二区日韩av| 26uuu国产日韩综合| 在线一区二区三区四区五区| 老司机午夜精品| 亚洲欧美另类图片小说| 精品免费日韩av| 日韩精品最新网址| 精品福利在线导航| 色av综合在线| 国产在线播放一区| 亚洲视频你懂的| 精品少妇一区二区三区免费观看| 国产91色综合久久免费分享| 亚洲免费三区一区二区| 精品国产91洋老外米糕| 91香蕉视频mp4| 国产一区久久久| 午夜免费久久看| 国产亚洲成aⅴ人片在线观看| 欧美日韩一区二区三区在线看 | 精品91自产拍在线观看一区| 97久久精品人人爽人人爽蜜臀| 亚洲成人av一区二区| 久久久久久久网| 欧美一区二区人人喊爽| 不卡一二三区首页|