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

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

?? zl5011xinterrupts.c

?? Zalink50114----TDMoIP芯片驅動源碼
?? C
?? 第 1 頁 / 共 5 頁
字號:
   status = ZL5011X_CHECK_POINTERS(zl5011xParams, par);

   if (status == ZL5011X_OK)
   {
      ZL5011X_TRACE(ZL5011X_ISR_FN_ID,
            "zl5011xIsrDisableFreezeStructInit:",
            0, 0, 0, 0, 0, 0);

      par->interruptBits= 0;
   }

   return status;
}

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

 Function:
    zl5011xIsrDisableFreeze

 Description:
   This function does the exact opposite of the IsrEnableFreeze function, it uses
   the same parameter structure (see below) as that function. Here
   the freeze mode is disabled if the bit is set.

   The top level mask contained in the ADM block is updated to cancel the
   ability of the relevant block or part-of-block to freeze the hardware.

 Inputs:
   zl5011xParams      Pointer to the structure for this device instance
   par               pointer to  parameter structure

 Structure Inputs:
   interruptBits - bits set to Disable the interrupt corresponding to the
                        ADM hardware freeze Enable register.

 Outputs:

 Returns:
    zlStatusE

 Remarks:

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

zlStatusE zl5011xIsrDisableFreeze(zl5011xParamsS *zl5011xParams, zl5011xIsrDisableFreezeS *par)
{
   zlStatusE status = ZL5011X_OK;

   status = ZL5011X_CHECK_POINTERS(zl5011xParams, par);

   if (status == ZL5011X_OK)
   {
      ZL5011X_TRACE(ZL5011X_ISR_FN_ID,
            "zl5011xIsrDisableFreeze: dev %08X, bits %08X",
            (Uint32T)zl5011xParams, par->interruptBits, 0, 0, 0, 0);
   }

   if (status == ZL5011X_OK)
   {
      status= zl5011xAdmDisableInterruptSource(zl5011xParams,
            ZL5011X_INTERRUPT_FROZEN, par->interruptBits);
   }

   return status;
}

/*****************   STATIC FUNCTION DEFINTIONS   *****************************/

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

 Function:
    zl5011xIsrCompose

 Description:
   This function is used to get from the device the first interrupt
   present in the given status word (i.e. depends on order of coding) and to write
   it in an  intr message ready for sending to the DPR
   This is also a convenient function to tidy up any intrs not cleared by reading.

 Inputs:
    zl5011xParams     Pointer to the structure for this device instance
   admIntrBit        block interrupt to be serviced
 Outputs:
   None

 Returns:
    zlStatusE

 Remarks:

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

static zlStatusE  zl5011xIsrCompose(zl5011xParamsS *zl5011xParams, Uint32T admIntrBit)
{
   zlStatusE status = ZL5011X_OK;
   Uint32T currTime;

   zl5011xBooleanE matchedInt = ZL5011X_TRUE;

   Uint32T admIntrBitLocal;

   zl5011xInterruptQueueDataS intrMsg;

   Uint8T temp8;

   ZL5011X_TRACE(ZL5011X_ISR_FN_ID,
         "zl5011xIsrCompose:  ADM Intr Status  0x%.08lx ",
         admIntrBit, 0, 0, 0, 0, 0);

   /* set defaults for the data fields - since not all fields will be
      relevant to the different interrupts */
   intrMsg.activeInterrupts = 0;
   intrMsg.context = (Uint32T)ZL5011X_INVALID_CONTEXT;
   intrMsg.misc = 0;

   switch (admIntrBit)
   {
      case ZL5011X_1BIT_MASK << ZL5011X_WAN_TX_ERROR_INTERRUPT:
         intrMsg.interruptSource = ZL5011X_WAN_TX_ERROR_INTERRUPT;

         do
         {
            (void)zl5011xTfmGetNextError(zl5011xParams, &(intrMsg.context), &(intrMsg.activeInterrupts));
            status = zl5011xIsrQueueUpInterrupts(zl5011xParams, &intrMsg);

            if (status != ZL5011X_OK)
            {
               /* if cannot queue the message then don't continue */
               break;
            }

            /* read a message off of the queue. The only way to find out if there are
               more messages on the queue is to reset the interrupt bit and see if it gets set
               again */
            (void)zl5011xAdmClearInterruptSource( zl5011xParams, admIntrBit);
            (void)zl5011xAdmGetInterruptStatus( zl5011xParams, &admIntrBitLocal);
         } while ((admIntrBitLocal & admIntrBit) != 0);

         /* already sent the message to the queue, so indicate that there is nothing left to do */
         matchedInt = ZL5011X_FALSE;
         break;

      case ZL5011X_1BIT_MASK << ZL5011X_WAN_TX_INFO_INTERRUPT:
         intrMsg.interruptSource = ZL5011X_WAN_TX_INFO_INTERRUPT;

         do
         {
            (void)zl5011xTfmGetNextInfo(zl5011xParams, &(intrMsg.context));
            status = zl5011xIsrQueueUpInterrupts(zl5011xParams, &intrMsg);

            if (status != ZL5011X_OK)
            {
               /* if cannot queue the message then don't continue */
               break;
            }

            /* read a message off of the queue. The only way to find out if there are
               more messages on the queue is to reset the interrupt bit and see if it gets set
               again */
            (void)zl5011xAdmClearInterruptSource( zl5011xParams, admIntrBit);
            (void)zl5011xAdmGetInterruptStatus( zl5011xParams, &admIntrBitLocal);
         } while ((admIntrBitLocal & admIntrBit) != 0);

         /* already sent the message to the queue, so indicate that there is nothing left to do */
         matchedInt = ZL5011X_FALSE;
         break;

      case ZL5011X_1BIT_MASK << ZL5011X_WAN_TX_QUEUE_INTERRUPT:
         intrMsg.interruptSource = ZL5011X_WAN_TX_QUEUE_INTERRUPT;

         do
         {
            (void)zl5011xTfqGetNextError(zl5011xParams, &(intrMsg.context), &(intrMsg.activeInterrupts));
            status = zl5011xIsrQueueUpInterrupts(zl5011xParams, &intrMsg);

            if (status != ZL5011X_OK)
            {
               /* if cannot queue the message then don't continue */
               break;
            }

            /* read a message off of the queue. The only way to find out if there are
               more messages on the queue is to reset the interrupt bit and see if it gets set
               again */
            (void)zl5011xAdmClearInterruptSource( zl5011xParams, admIntrBit);
            (void)zl5011xAdmGetInterruptStatus( zl5011xParams, &admIntrBitLocal);
         } while ((admIntrBitLocal & admIntrBit) != 0);

         /* already sent the message to the queue, so indicate that there is nothing left to do */
         matchedInt = ZL5011X_FALSE;
         break;

      case ZL5011X_1BIT_MASK << ZL5011X_WAN_TX_GRANULES_INTERRUPT:
         intrMsg.interruptSource = ZL5011X_WAN_TX_GRANULES_INTERRUPT;
         (void)zl5011xTfqClearGranuleThresholdIntr(zl5011xParams);
         break;

      case ZL5011X_1BIT_MASK << ZL5011X_WAN_RX_ERROR_INTERRUPT:
         intrMsg.interruptSource = ZL5011X_WAN_RX_ERROR_INTERRUPT;

         do
         {
            (void)zl5011xPlaGetNextError(zl5011xParams, &(intrMsg.context), &(intrMsg.activeInterrupts));
            status = zl5011xIsrQueueUpInterrupts(zl5011xParams, &intrMsg);

            if (status != ZL5011X_OK)
            {
               /* if cannot queue the message then don't continue */
               break;
            }

            /* read a message off of the queue. The only way to find out if there are
               more messages on the queue is to reset the interrupt bit and see if it gets set
               again */
            (void)zl5011xAdmClearInterruptSource( zl5011xParams, admIntrBit);
            (void)zl5011xAdmGetInterruptStatus( zl5011xParams, &admIntrBitLocal);
         } while ((admIntrBitLocal & admIntrBit) != 0);

         /* already sent the message to the queue, so indicate that there is nothing left to do */
         matchedInt = ZL5011X_FALSE;
         break;

      case ZL5011X_1BIT_MASK << ZL5011X_WAN_CLK_INTERRUPT:
         /* the PAC status will be handled by the api interrupt rather than the
            application if it is running */
         intrMsg.interruptSource = ZL5011X_WAN_CLK_INTERRUPT;
         (void)zl5011xPacGetStatus(zl5011xParams, &(intrMsg.activeInterrupts));

         /* if the slew rate interrupt is enabled then need to mask it out, since it may
            be set again immediately. The other interrupts are status changes, so only
            need to reset the interrupt */
         if ((intrMsg.activeInterrupts & (ZL5011X_1BIT_MASK << ZL5011X_DPLL_SLEW_RATE_INT)) != 0)
         {
            (void)zl5011xPacDisableInterrupts(zl5011xParams, ZL5011X_1BIT_MASK << ZL5011X_DPLL_SLEW_RATE_INT);
         }

         /* if any of the DPLL interrupt bits are set then retrieve the status, since the application is
            going to need that to determine what has happened */
         if ((intrMsg.activeInterrupts & ((ZL5011X_1BIT_MASK << ZL5011X_DPLL_LOCK_INT) |
            (ZL5011X_1BIT_MASK << ZL5011X_DPLL_REF_CHANGE_INT) | (ZL5011X_1BIT_MASK << ZL5011X_DPLL_HOLDOVER_INT))) != 0)
         {
            (void)zl5011xPacDpllGetStatusValue(zl5011xParams,  &(intrMsg.misc));
         }

         /* Now clear any interrupts that were active */
         (void)zl5011xPacClearInterrupts(zl5011xParams, intrMsg.activeInterrupts);
         break;

      case ZL5011X_1BIT_MASK << ZL5011X_MAC_IF_INTERRUPT:
         /* the PKI status will be handled by the api interrupt rather than the
            application if it is running */
         intrMsg.interruptSource = ZL5011X_MAC_IF_INTERRUPT;
         (void)zl5011xPkiGetPcsStatus(zl5011xParams, &(intrMsg.activeInterrupts));
         break;

      case ZL5011X_1BIT_MASK << ZL5011X_PACKET_TX_INTERRUPT:
         intrMsg.interruptSource = ZL5011X_PACKET_TX_INTERRUPT;
         (void)zl5011xPkqGetDropStatus(zl5011xParams, &(intrMsg.activeInterrupts));

         /* the packet queue interrupt is a threshold, so may remain asserted. Therefore, the
            only option is to clear the interrupt at the top level. The application can
            turn this int back on again after taking any corrective action */
         (void)zl5011xAdmDisableInterruptSource(zl5011xParams, ZL5011X_INTERRUPT_ZERO, ZL5011X_1BIT_MASK << admIntrBit);
         break;

      case ZL5011X_1BIT_MASK << ZL5011X_PACKET_RX_INTERRUPT:
         intrMsg.interruptSource = ZL5011X_PACKET_RX_INTERRUPT;
         (void)zl5011xPkcGetInterruptStatus(zl5011xParams, &(intrMsg.activeInterrupts));

         /* get the current tick time - for updating the PW bit times */
         currTime = OS_TICK_GET();

         /* service any PW interrupts first */
         while ((intrMsg.activeInterrupts & (ZL5011X_1BIT_MASK << ZL5011X_PACKET_RX_PW_INT)) != 0)
         {
            /* send this message with just the PW interrupt bit sent */
            intrMsg.activeInterrupts = ZL5011X_1BIT_MASK << ZL5011X_PACKET_RX_PW_INT;

            (void)zl5011xPkcGetPwStatus(zl5011xParams, &(intrMsg.context), &(intrMsg.misc));

            if (intrMsg.context < ZL5011X_MAX_NUMBER_CONTEXTS)
            {
               /* update the PW statistics for the context */
               if (zl5011xParams->packetIf.packetRx.contextRxPacketMatch[intrMsg.context].statusByte.value == (Uint32T)ZL5011X_INVALID)
               {
                  /* first update so intialise the stats */
                  zl5011xParams->packetIf.packetRx.contextRxPacketMatch[intrMsg.context].statusByte.lCount = 0;
                  zl5011xParams->packetIf.packetRx.contextRxPacketMatch[intrMsg.context].statusByte.lTime = 0;
                  zl5011xParams->packetIf.packetRx.contextRxPacketMatch[intrMsg.context].statusByte.lTimePrev = currTime;

                  zl5011xParams->packetIf.packetRx.contextRxPacketMatch[intrMsg.context].statusByte.rCount = 0;
                  zl5011xParams->packetIf.packetRx.contextRxPacketMatch[intrMsg.context].statusByte.rTime = 0;
                  zl5011xParams->packetIf.packetRx.contextRxPacketMatch[intrMsg.context].statusByte.rTimePrev = currTime;
               }
               else
               {
                  if ((intrMsg.misc & ZL5011X_PKT_PW_L_BIT_MASK) !=
                     (zl5011xParams->packetIf.packetRx.contextRxPacketMatch[intrMsg.context].statusByte.value & ZL5011X_PKT_PW_L_BIT_MASK))
                  {
                     if ((intrMsg.misc & ZL5011X_PKT_PW_L_BIT_MASK) != 0)
                     {
                        /* count how many times the bit gets set */
                        zl5011xParams->packetIf.packetRx.contextRxPacketMatch[intrMsg.context].statusByte.lCount++;
                     }
                     else
                     {
                        /* now that the bit has been cleared, update the time that it was set for */
                        zl5011xParams->packetIf.packetRx.contextRxPacketMatch[intrMsg.context].statusByte.lTime += currTime -
                              zl5011xParams->packetIf.packetRx.contextRxPacketMatch[intrMsg.context].statusByte.lTimePrev;
                     }

                     zl5011xParams->packetIf.packetRx.contextRxPacketMatch[intrMsg.context].statusByte.lTimePrev = currTime;
                  }

                  if ((intrMsg.misc & ZL5011X_PKT_PW_R_BIT_MASK) !=
                     (zl5011xParams->packetIf.packetRx.contextRxPacketMatch[intrMsg.context].statusByte.value & ZL5011X_PKT_PW_R_BIT_MASK))
                  {
                     if ((intrMsg.misc & ZL5011X_PKT_PW_R_BIT_MASK) != 0)
                     {
                        /* count how many times the bit gets set */
                        zl5011xParams->packetIf.packetRx.contextRxPacketMatch[intrMsg.context].statusByte.rCount++;
                     }
                     else
                     {
                        /* now that the bit has been cleared, update the time that it was set for */
                        zl5011xParams->packetIf.packetRx.contextRxPacketMatch[intrMsg.context].statusByte.rTime += currTime -
                              zl5011xParams->packetIf.packetRx.contextRxPacketMatch[intrMsg.context].statusByte.rTimePrev;
                     }

                     zl5011xParams->packetIf.packetRx.contextRxPacketMatch[intrMsg.context].statusByte.rTimePrev = currTime;
                  }
               }

               zl5011xParams->packetIf.packetRx.contextRxPacketMatch[intrMsg.context].statusByte.value = intrMsg.misc;

               if (zl5011xIsrPwReportEnableFlag == ZL5011X_TRUE)
               {
                  status = zl5011xIsrQueueUpInterrupts(zl5011xParams, &intrMsg);
               }
            }

            if (status != ZL5011X_OK)
            {
               /* if cannot queue the message then don't continue */
               break;
            }

            /* read a message off of the queue. The only way to find out if there are
               more messages on the queue is to reset the interrupt bit and see if it
               gets set again */
            (void)zl5011xPkcClearInterrupts(zl5011xParams, intrMsg.activeInterrupts);
            (void)zl5011xPkcGetInterruptStatus(zl5011xParams, &(intrMsg.activeInterrupts));
         }

         /* if there are any other interrupts that need to be serviced then let a message
            be sent. If not, then set the flag to indicate that the message has already
            been handled */
         if ((intrMsg.activeInterrupts & ~(ZL5011X_1BIT_MASK << ZL5011X_PACKET_RX_PW_INT)) == 0)
         {
            matchedInt = ZL5011X_FALSE;
         }
         break;

      case ZL5011X_1BIT_MASK << ZL5011X_TASK_MSG_INTERRUPT:
         intrMsg.interruptSource = ZL5011X_TASK_MSG_INTERRUPT;
         (void)zl5011xTmGetInterruptStatus(zl5011xParams, &(intrMsg.activeInterrupts));

         /* if the TM raises an interrupt, then it is probably going to persist,
            so disable the interrupt */
         (void)zl5011xTmDisableInterrupts(zl5011xParams, intrMsg.activeInterrupts);
         break;

      case ZL5011X_1BIT_MASK << ZL5011X_GRANULE_INTERRUPT:

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩高清一区二区三区| 精品久久久三级丝袜| 色婷婷综合久久| 日韩一级二级三级| 综合在线观看色| 黄一区二区三区| 91福利在线导航| 久久尤物电影视频在线观看| 亚洲国产精品久久人人爱| 99久久精品免费看国产| 久久精子c满五个校花| 午夜电影一区二区三区| 在线观看成人小视频| 国产精品不卡一区| 高清成人在线观看| 国产亚洲美州欧州综合国| 青青草一区二区三区| 欧美日韩小视频| 一区二区三区免费| 色综合久久久网| 亚洲色图在线播放| 99久久婷婷国产精品综合| 国产丝袜在线精品| 国内久久婷婷综合| 精品粉嫩aⅴ一区二区三区四区| 亚洲成av人片一区二区梦乃| 一本色道久久综合亚洲91| 国产精品亲子伦对白| 国产福利精品一区| 久久久久久久国产精品影院| 国产伦精品一区二区三区视频青涩| 91精品国产综合久久久久久| 日韩不卡免费视频| 日韩女优电影在线观看| 久久草av在线| 久久久精品免费免费| 丁香网亚洲国际| 国产精品久久久久aaaa| 99v久久综合狠狠综合久久| 亚洲欧洲www| 欧美三片在线视频观看| 日韩国产高清在线| 精品国产sm最大网站免费看| 国产福利91精品| 日韩一区有码在线| 欧美日韩久久久一区| 免费看欧美美女黄的网站| 26uuu成人网一区二区三区| 国产黄色精品视频| 亚洲欧美激情插| 欧美一区二区在线免费观看| 久久超碰97人人做人人爱| 欧美激情一区二区三区蜜桃视频| 丁香桃色午夜亚洲一区二区三区| 亚洲人成7777| 欧美精品久久一区| 国产精品资源在线观看| 中文字幕日韩精品一区| 欧美日韩日日骚| 国产综合久久久久久久久久久久| 国产精品久久三区| 5566中文字幕一区二区电影| 国产一区二区三区四区五区美女| 中文字幕在线不卡国产视频| 欧美私人免费视频| 国产综合久久久久久鬼色| 中文字幕一区免费在线观看| 欧美日韩高清一区| 成人午夜精品一区二区三区| 一区二区三区 在线观看视频| 欧美一区二区三区免费观看视频 | 日韩免费一区二区| 国产精品一区免费在线观看| 亚洲男人的天堂在线观看| 日韩久久免费av| 99精品在线免费| 韩国中文字幕2020精品| 亚洲国产一二三| 国产精品欧美综合在线| 51午夜精品国产| 色综合久久久久久久| 毛片基地黄久久久久久天堂| 国产精品国模大尺度视频| 日韩一区二区不卡| 欧美亚洲日本国产| 成人妖精视频yjsp地址| 日韩不卡免费视频| 亚洲综合免费观看高清在线观看| 国产欧美日韩精品a在线观看| 精品视频一区三区九区| 99精品视频中文字幕| 国内精品国产三级国产a久久| 亚洲国产日韩一区二区| 中文字幕一区二区三区蜜月| 久久蜜臀精品av| 日韩欧美一区在线观看| 欧美电影一区二区| 在线观看不卡一区| 在线国产电影不卡| 91视频一区二区| 99久久婷婷国产综合精品| 国产mv日韩mv欧美| 国产91色综合久久免费分享| 麻豆精品精品国产自在97香蕉| 亚洲最新视频在线播放| 综合av第一页| 亚洲精品日韩一| 日韩美女视频19| 亚洲免费在线观看| 亚洲欧美另类图片小说| 日韩综合一区二区| 亚洲成av人片一区二区三区| 亚洲国产精品一区二区久久恐怖片 | 777久久久精品| 欧美日韩精品三区| 4438x成人网最大色成网站| 精品视频一区二区三区免费| 欧美亚洲综合一区| 欧美久久一二三四区| 欧美美女一区二区在线观看| 51午夜精品国产| 日韩精品一区二区三区中文精品| 8x8x8国产精品| 日韩免费视频一区| 久久精品夜夜夜夜久久| 欧美国产精品一区二区| 国产精品福利一区| 一区二区三区日本| 日韩影院在线观看| 九色综合狠狠综合久久| 福利一区二区在线| 91美女片黄在线观看91美女| 欧美午夜一区二区三区| 5566中文字幕一区二区电影| 精品国产乱子伦一区| 日本一区二区成人在线| 综合久久一区二区三区| 五月天一区二区三区| 国产一区二区三区视频在线播放| 成人看片黄a免费看在线| caoporen国产精品视频| 欧美性高清videossexo| 日韩一级高清毛片| 最近日韩中文字幕| 蜜臀av性久久久久蜜臀av麻豆| 国产精品影音先锋| 欧美影院一区二区| 精品国产一区久久| 亚洲三级小视频| 美日韩一区二区| 色综合天天综合狠狠| 日韩一区二区在线观看| 亚洲视频一区二区免费在线观看| 午夜久久久影院| 国产馆精品极品| 69av一区二区三区| 国产精品视频九色porn| 日韩电影在线免费看| av不卡免费在线观看| 日韩美女主播在线视频一区二区三区| 国产精品青草综合久久久久99| 日日噜噜夜夜狠狠视频欧美人| 成人免费观看av| 精品裸体舞一区二区三区| 亚洲你懂的在线视频| 国产在线精品一区二区不卡了| 在线看国产一区二区| 国产日韩av一区| 精品综合免费视频观看| 欧美亚洲图片小说| 中文字幕在线观看一区二区| 九九九久久久精品| 欧美日韩国产一区| 亚洲色图一区二区三区| 国产美女精品在线| 欧美一区二区三区播放老司机| 亚洲一区二区三区四区在线| 成人丝袜18视频在线观看| 日韩欧美一级二级三级久久久| 亚洲激情图片一区| 99久久精品免费看国产免费软件| 久久五月婷婷丁香社区| 美国毛片一区二区三区| 欧美三级视频在线播放| 一区二区三区精品视频| 91年精品国产| 最好看的中文字幕久久| 国产69精品久久久久777| 精品成人免费观看| 久久99国内精品| 亚洲精品在线观看网站| 麻豆国产精品777777在线| 日韩一区二区三区在线观看| 首页欧美精品中文字幕| 欧美精品日韩一区| 午夜视黄欧洲亚洲| 欧美日韩情趣电影| 日韩国产一二三区| 精品噜噜噜噜久久久久久久久试看 | 91色视频在线|