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

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

?? zl5011xinterrupts.c

?? Zalink50114----TDMoIP芯片驅動源碼
?? C
?? 第 1 頁 / 共 5 頁
字號:
            /* Map external port number to internal port connected to it */
            status = zl5011xPkiExternalPortToInternal(zl5011xParams, &internalPortNum, par->portNumber);
            if (status == ZL5011X_OK)
            {
               status = zl5011xPkiEnablePcsInterrupt(zl5011xParams, internalPortNum);
            }
            intSrc = apiSrc;
            break;

         case ZL5011X_WAN_RX_ERROR_INTERRUPT:
            status = zl5011xPlaEnableInterrupts(zl5011xParams, par->context, par->interruptBits);
            break;

         case ZL5011X_WAN_RX_TASK_OVERFLOW_INTERRUPT:
            status = zl5011xPlaEnableTmiOverflowIntr(zl5011xParams, par->interruptBits);
            break;

         case ZL5011X_WAN_TX_INFO_INTERRUPT:
         case ZL5011X_WAN_TX_ERROR_INTERRUPT:
            status = zl5011xTfmEnableInterrupts(zl5011xParams, par->context, par->interruptBits);
            break;

         case ZL5011X_WAN_TX_QUEUE_INTERRUPT:
            status = zl5011xTfqEnableInterrupts(zl5011xParams, par->context, par->interruptBits);
            break;

         case ZL5011X_WAN_TX_GRANULES_INTERRUPT:
            status = zl5011xTfqEnableGranuleThresholdIntr(zl5011xParams, par->interruptBits);
            break;

         case ZL5011X_TASK_MSG_INTERRUPT:
            status = zl5011xTmEnableInterrupts(zl5011xParams, par->interruptBits);
            break;

         case ZL5011X_HOST_OVERFLOW_INTERRUPT:
            status = zl5011xCpqEnableInterrupts(zl5011xParams, par->interruptBits);
            break;

         case ZL5011X_PACKET_TX_INTERRUPT:
         case ZL5011X_MEMORY_PARITY_INTERRUPT:
         case ZL5011X_WAN_TX_ERROR_OVERFLOW_INTERRUPT:
         case ZL5011X_WAN_TX_INFO_OVERFLOW_INTERRUPT:
         case ZL5011X_WAN_TX_QUEUE_OVERFLOW_INTERRUPT:
         case ZL5011X_HOST_GRANULES_INTERRUPT:
         case ZL5011X_WAN_RX_OVERFLOW_INTERRUPT:
         case ZL5011X_HOST_DMA_RX_INTERRUPT:
            /* don't need to set any interrupt masks etc. */
            break;

         default:
            status = ZL5011X_PARAMETER_INVALID;
         break;
      }
   }

   if (status == ZL5011X_OK)
   {
      /* enable the interrupt at the top level */
      status = zl5011xAdmEnableInterruptSource(zl5011xParams, intSrc, ZL5011X_1BIT_MASK << par->interruptSource);
   }

   return status;
}

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

 Function:
    zl5011xIsrDisableInterruptSourceStructInit

 Description:
   This is the initialisation function for zl5011xIsrDisableInterruptSource

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

 Structure Inputs:
      interruptBits  bits set to enable the interrupt
      interruptSource   block where bits are set
      context        context (may be associated with the interrupt)
      portNumber     LAN port (may be associated with the interrupt)

 Outputs:

 Returns:
    zlStatusE

 Remarks:

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

zlStatusE zl5011xIsrDisableInterruptSourceStructInit(zl5011xParamsS *zl5011xParams,
      zl5011xIsrInterruptSourceS *par)
{
   zlStatusE status = ZL5011X_OK;

   status = ZL5011X_CHECK_POINTERS(zl5011xParams, par);

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

      par->interruptBits = 0;
      par->interruptSource = ZL5011X_NO_INTERRUPT;
      par->context = (Uint32T)ZL5011X_INVALID_CONTEXT;
      par->portNumber = (Uint8T)ZL5011X_INVALID;
   }

   return status;
}

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

 Function:
    zl5011xIsrDisableInterruptSource

 Description:
   This function is used to disable the interrupt sources used to drive the
   application interrupt (int 0 on the device).

   Note that the CPQ, CPU, MM and PKQ have interrupts
   but are not masked in the blocks themselves but in the ADM intr enable register,
   therefore their interruptBits parameter uses the bit position in this ADM reg.


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

 Structure Inputs:
      interruptBits  bits set to enable the interrupt
      interruptSource   block where bits are set
      context        context (may be associated with the interrupt)
      portNumber     LAN port (may be associated with the interrupt)
   The function parameters are in a structure (see above), the various parts of
   which are used as appropriate.

 Outputs:

 Returns:
    zlStatusE

 Remarks:
   see also  zl5011xIsrEnableInterruptSource()

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

zlStatusE zl5011xIsrDisableInterruptSource(zl5011xParamsS *zl5011xParams,
      zl5011xIsrInterruptSourceS *par)
{
   zlStatusE status = ZL5011X_OK;
   Uint8T internalPortNum;

   status = ZL5011X_CHECK_POINTERS(zl5011xParams, par);

   if (status == ZL5011X_OK)
   {
      ZL5011X_TRACE(ZL5011X_ISR_FN_ID,
            "zl5011xIsrDisableInterruptSource: dev %08X, intSrc %d, ctxt %d, port %d, bits %08X",
            (Uint32T)zl5011xParams, par->interruptSource, par->context, par->portNumber, par->interruptBits, 0);
   }

   if (status == ZL5011X_OK)
   {
      /* these application interrupts can only be enabled if the interrupt is running */
      if (zl5011xIsrAppIntNum == (Uint32T)ZL5011X_INVALID)
      {
         status = ZL5011X_NOT_RUNNING;
      }
   }

   if (status == ZL5011X_OK)
   {
      switch (par->interruptSource)
      {
         case ZL5011X_GRANULE_INTERRUPT:
            status = zl5011xGmDisableInterrupts( zl5011xParams, par->interruptBits);
            break;

         case ZL5011X_WAN_CLK_INTERRUPT:
            status = zl5011xPacDisableInterrupts(zl5011xParams, par->interruptBits);
            break;

         case ZL5011X_PACKET_RX_INTERRUPT:
            if ((par->interruptBits & (ZL5011X_1BIT_MASK << ZL5011X_PACKET_RX_PW_INT)) != 0)
            {
               zl5011xParams->interruptMasks.pkcPwInterruptEnabled = ZL5011X_FALSE;
            }

            status = zl5011xPkcDisableInterrupts(zl5011xParams, par->interruptBits);
            break;

         case ZL5011X_MAC_IF_INTERRUPT:
            /* Map external port number to internal port connected to it */
            status = zl5011xPkiExternalPortToInternal(zl5011xParams, &internalPortNum, par->portNumber);

            if (status == ZL5011X_OK)
            {
               status = zl5011xPkiDisablePcsInterrupt(zl5011xParams, par->portNumber);
            }
            break;

         case ZL5011X_WAN_RX_ERROR_INTERRUPT:
            status = zl5011xPlaDisableInterrupts(zl5011xParams, par->context, par->interruptBits);
            break;

         case ZL5011X_WAN_RX_TASK_OVERFLOW_INTERRUPT:
            status = zl5011xPlaDisableTmiOverflowIntr(zl5011xParams, par->interruptBits);
            break;

         case ZL5011X_WAN_TX_INFO_INTERRUPT:
         case ZL5011X_WAN_TX_ERROR_INTERRUPT:
            status = zl5011xTfmDisableInterrupts(zl5011xParams, par->context, par->interruptBits);
            break;

          case ZL5011X_WAN_TX_QUEUE_INTERRUPT:
            status = zl5011xTfqDisableInterrupts(zl5011xParams, par->context, par->interruptBits);
            break;

         case ZL5011X_WAN_TX_GRANULES_INTERRUPT:
            status = zl5011xTfqDisableGranuleThresholdIntr(zl5011xParams, par->interruptBits);
            break;

         case ZL5011X_TASK_MSG_INTERRUPT:
            status = zl5011xTmDisableInterrupts(zl5011xParams, par->interruptBits);
            break;

         case ZL5011X_HOST_OVERFLOW_INTERRUPT:
            status = zl5011xCpqDisableInterrupts(zl5011xParams, par->interruptBits);
            break;

         case ZL5011X_PACKET_TX_INTERRUPT:
         case ZL5011X_MEMORY_PARITY_INTERRUPT:
         case ZL5011X_WAN_TX_ERROR_OVERFLOW_INTERRUPT:
         case ZL5011X_WAN_TX_INFO_OVERFLOW_INTERRUPT:
         case ZL5011X_WAN_TX_QUEUE_OVERFLOW_INTERRUPT:
         case ZL5011X_HOST_GRANULES_INTERRUPT:
         case ZL5011X_WAN_RX_OVERFLOW_INTERRUPT:
         case ZL5011X_HOST_DMA_RX_INTERRUPT:
            /* no further sub-division of these interrupts in the blocks, so just disable
               at the top level */
            status = zl5011xAdmDisableInterruptSource(zl5011xParams, ZL5011X_INTERRUPT_ZERO, ZL5011X_1BIT_MASK << par->interruptSource);
            break;

         default:
            status = ZL5011X_PARAMETER_INVALID;
         break;
      }
   }

   return status;
}

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

 Function:
    zl5011xIsrEnableFreezeStructInit

 Description:
   This is the initialisation function for zl5011xIsrEnableFreeze - see below.

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

 Returns:
    zlStatusE

 Remarks:

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

zlStatusE zl5011xIsrEnableFreezeStructInit(zl5011xParamsS *zl5011xParams,
      zl5011xIsrEnableFreezeS *par)
{
   zlStatusE status = ZL5011X_OK;

   status = ZL5011X_CHECK_POINTERS(zl5011xParams, par);

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

      par->interruptBits= 0;
   }

   return status;
}

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

 Function:
    zl5011xIsrEnableFreeze

 Description:
   This function is used to enable the interrupt sources which will cause the
   hardware/debug freeze feature .

   The top level mask contained in the ADM block is updated to enable the
   relevant block to freeze the hardware. Note that the blocks themselves
   do not have individual freeze eanbling, although some selectivity
   within some blocks is possible from the ADM freeze register

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

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

 Outputs:

 Returns:
    zlStatusE

 Remarks:

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

zlStatusE zl5011xIsrEnableFreeze(zl5011xParamsS *zl5011xParams, zl5011xIsrEnableFreezeS *par)
{
   zlStatusE status = ZL5011X_OK;

   status = ZL5011X_CHECK_POINTERS(zl5011xParams, par);

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

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

   return status;
}


/*******************************************************************************
 Function:
    zl5011xIsrDisableFreezeStructInit

 Description:
   This is the initialisation function for zl5011xIsrDisableFreeze - see below.

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

 Structure Inputs:
      interruptBits - bits set to disable the interrupt
 Outputs:

 Returns:
    zlStatusE

 Remarks:

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

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

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲特黄一级片| 青青草伊人久久| 欧美猛男超大videosgay| 黑人精品欧美一区二区蜜桃| 一区二区激情小说| 久久日一线二线三线suv| 欧美曰成人黄网| 国产精品1区2区| 日韩专区欧美专区| 一区二区在线观看免费视频播放| 欧美sm极限捆绑bd| 欧美视频精品在线| 91美女视频网站| 国产福利不卡视频| 琪琪一区二区三区| 亚洲国产日韩精品| 中文字幕日韩av资源站| 26uuu欧美日本| 欧美一卡二卡三卡| 欧美日韩综合不卡| 91丝袜呻吟高潮美腿白嫩在线观看| 精品亚洲aⅴ乱码一区二区三区| 一区二区在线看| 日本一区二区三区在线不卡| 欧美白人最猛性xxxxx69交| 欧美亚洲国产bt| 91啪亚洲精品| 91在线精品秘密一区二区| 国产精品一区二区果冻传媒| 美日韩一级片在线观看| 首页综合国产亚洲丝袜| 亚洲一线二线三线视频| 亚洲人成网站影音先锋播放| 中文字幕一区在线观看| 国产精品美女久久久久久2018| 欧美va在线播放| 精品免费99久久| www欧美成人18+| 日韩欧美国产综合一区| 日韩片之四级片| 日韩欧美在线影院| 日韩欧美区一区二| 亚洲精品一区二区三区福利| 日韩午夜激情av| 精品捆绑美女sm三区| 精品免费视频.| 久久久亚洲欧洲日产国码αv| 精品欧美黑人一区二区三区| 精品处破学生在线二十三| 精品久久一区二区三区| 精品国产一区二区亚洲人成毛片 | 91在线精品秘密一区二区| 99久久精品一区二区| 一本一道综合狠狠老| 在线观看一区二区精品视频| 欧美在线观看视频在线| 91精品国产综合久久国产大片| 91精品国产91热久久久做人人| 日韩女优av电影| 久久久精品免费网站| 亚洲天堂a在线| 无吗不卡中文字幕| 美女一区二区视频| 国产成人自拍在线| av动漫一区二区| 欧美日韩在线播| 日韩欧美中文字幕制服| 国产视频一区在线播放| 自拍视频在线观看一区二区| 亚洲狠狠爱一区二区三区| 六月丁香婷婷色狠狠久久| 国产福利电影一区二区三区| 91老司机福利 在线| 欧美日本在线视频| 久久久99久久| 亚洲黄一区二区三区| 石原莉奈一区二区三区在线观看| 精品伊人久久久久7777人| 国产91丝袜在线观看| 在线亚洲欧美专区二区| wwwwxxxxx欧美| 一区二区三区四区亚洲| 久久精品国产99| 99综合电影在线视频| 制服丝袜av成人在线看| 欧美高清在线精品一区| 午夜精品一区二区三区电影天堂 | 国产亚洲精品久| 一区二区在线观看免费| 狠狠色狠狠色合久久伊人| 91啪在线观看| 久久色在线视频| 五月婷婷久久综合| 豆国产96在线|亚洲| 欧美精品三级在线观看| 国产精品剧情在线亚洲| 免费成人美女在线观看.| 91原创在线视频| 精品久久久三级丝袜| 亚洲亚洲精品在线观看| 丁香网亚洲国际| 欧美一区二区免费视频| 亚洲精品成人精品456| 精品在线视频一区| 欧美日韩午夜在线| 国产精品高潮呻吟久久| 精品一区二区在线视频| 欧美妇女性影城| 亚洲日本成人在线观看| 国产不卡一区视频| 日韩精品一区二区三区三区免费| 亚洲最大的成人av| 不卡影院免费观看| 欧美精品一区二区三区一线天视频| 亚洲最快最全在线视频| 91麻豆精品一区二区三区| 国产亚洲欧美日韩俺去了| 精品制服美女丁香| 制服丝袜国产精品| 亚洲成人av在线电影| 色婷婷国产精品| 国产精品你懂的| 国产成人午夜片在线观看高清观看| 日韩欧美成人一区二区| 精品亚洲成a人在线观看| 91精品国产综合久久久蜜臀图片| 亚洲乱码精品一二三四区日韩在线| 成人精品国产免费网站| 欧美激情在线看| 国产伦精品一区二区三区免费| 欧美丰满高潮xxxx喷水动漫| 亚洲第一久久影院| 欧美日韩视频在线一区二区 | 亚洲国产精品黑人久久久| 久久超碰97中文字幕| 欧美一区二区三区免费大片 | 国产亚洲综合色| 国产在线国偷精品免费看| 精品国产一区久久| 国产一区在线看| 久久亚洲一区二区三区明星换脸| 麻豆国产精品一区二区三区| 欧美xxxxx裸体时装秀| 老司机免费视频一区二区三区| 欧美成人精品高清在线播放| 男女性色大片免费观看一区二区| 欧美一区二区三区色| 九九国产精品视频| 久久久一区二区三区| 成人av资源站| 一区二区三区视频在线观看| 欧美性生交片4| 免费人成在线不卡| 久久综合九色综合97婷婷| 国产成人精品一区二区三区四区| 国产欧美一区二区精品仙草咪| 粉嫩蜜臀av国产精品网站| 亚洲欧美激情一区二区| 欧美日韩电影在线| 激情深爱一区二区| 国产精品的网站| 欧美午夜电影网| 久久精品国产在热久久| 亚洲国产成人午夜在线一区| 色综合色综合色综合 | 成人福利视频网站| 一区二区三区日韩精品| 日韩一区二区电影| 国产精品一级片在线观看| 专区另类欧美日韩| 6080国产精品一区二区| 国产精品自产自拍| 亚洲精品视频自拍| 精品剧情v国产在线观看在线| 成人午夜精品在线| 不卡av电影在线播放| 亚洲黄色录像片| 91精品国产色综合久久久蜜香臀| 国产自产高清不卡| 亚洲一区二区三区爽爽爽爽爽| 日韩精品自拍偷拍| 91在线视频观看| 捆绑变态av一区二区三区| 一区视频在线播放| 欧美一卡二卡三卡| 91亚洲永久精品| 麻豆91免费观看| 亚洲天堂a在线| 久久亚区不卡日本| 欧美日韩成人综合| 不卡的av电影| 久久疯狂做爰流白浆xx| 亚洲另类一区二区| 久久久久久久综合日本| 欧美性极品少妇| 成人h精品动漫一区二区三区| 日本亚洲天堂网| 亚洲欧美福利一区二区| 国产日本欧洲亚洲| 欧美一区日本一区韩国一区|