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

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

?? ixqmgrdispatcher.c

?? 針對(duì)OpenJtag通用調(diào)試板的Uboot程序
?? C
?? 第 1 頁(yè) / 共 3 頁(yè)
字號(hào):
/** * @file    IxQMgrDispatcher.c * * @author Intel Corporation * @date    20-Dec-2001 *     * @brief   This file contains the implementation of the Dispatcher sub component * *  * @par * IXP400 SW Release version 2.0 *  * -- Copyright Notice -- *  * @par * Copyright 2001-2005, Intel Corporation. * All rights reserved. *  * @par * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright *    notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright *    notice, this list of conditions and the following disclaimer in the *    documentation and/or other materials provided with the distribution. * 3. Neither the name of the Intel Corporation nor the names of its contributors *    may be used to endorse or promote products derived from this software *    without specific prior written permission. *  * @par * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. *  * @par * -- End of Copyright Notice --*//* * User defined include files. */#include "IxQMgr.h"#include "IxQMgrAqmIf_p.h"#include "IxQMgrQCfg_p.h"#include "IxQMgrDispatcher_p.h"#include "IxQMgrLog_p.h"#include "IxQMgrDefines_p.h"#include "IxFeatureCtrl.h"#include "IxOsal.h"/* * #defines and macros used in this file. *//* * This constant is used to indicate the number of priority levels supported */#define IX_QMGR_NUM_PRIORITY_LEVELS 3/*  * This constant is used to set the size of the array of status words */#define MAX_Q_STATUS_WORDS      4/* * This macro is used to check if a given priority is valid */#define IX_QMGR_DISPATCHER_PRIORITY_CHECK(priority) \(((priority) >= IX_QMGR_Q_PRIORITY_0) && ((priority) <= IX_QMGR_Q_PRIORITY_2))/* * This macto is used to check that a given interrupt source is valid */#define IX_QMGR_DISPATCHER_SOURCE_ID_CHECK(srcSel) \(((srcSel) >= IX_QMGR_Q_SOURCE_ID_E) && ((srcSel) <= IX_QMGR_Q_SOURCE_ID_NOT_F))/* * Number of times a dummy callback is called before logging a trace * message */#define LOG_THROTTLE_COUNT 1000000/* Priority tables limits */#define IX_QMGR_MIN_LOW_QUE_PRIORITY_TABLE_INDEX (0)#define IX_QMGR_MID_LOW_QUE_PRIORITY_TABLE_INDEX (16)#define IX_QMGR_MAX_LOW_QUE_PRIORITY_TABLE_INDEX (31)#define IX_QMGR_MIN_UPP_QUE_PRIORITY_TABLE_INDEX (32)#define IX_QMGR_MID_UPP_QUE_PRIORITY_TABLE_INDEX (48)#define IX_QMGR_MAX_UPP_QUE_PRIORITY_TABLE_INDEX (63) /* * This macro is used to check if a given callback type is valid */#define IX_QMGR_DISPATCHER_CALLBACK_TYPE_CHECK(type) \            (((type) >= IX_QMGR_TYPE_REALTIME_OTHER) && \            ((type) <= IX_QMGR_TYPE_REALTIME_SPORADIC))/*  * define max index in lower queue to use in loops  */#define IX_QMGR_MAX_LOW_QUE_TABLE_INDEX (31)/* * Typedefs whose scope is limited to this file. *//* * Information on a queue needed by the Dispatcher */typedef struct {    IxQMgrCallback callback;       /* Notification callback                  */    IxQMgrCallbackId callbackId;   /* Notification callback identifier       */    unsigned dummyCallbackCount;   /* Number of times runs of dummy callback */    IxQMgrPriority priority;       /* Dispatch priority                      */    unsigned int statusWordOffset; /* Offset to the status word to check     */    UINT32 statusMask;             /* Status mask                            */        UINT32 statusCheckValue;       /* Status check value                     */    UINT32 intRegCheckMask;	   /* Interrupt register check mask          */} IxQMgrQInfo;/* * Variable declarations global to this file. Externs are followed by * statics. *//*  * Flag to keep record of what dispatcher set in featureCtrl when ixQMgrInit() * is called. This is needed because it is possible that a client might * change whether the live lock prevention dispatcher is used between * calls to ixQMgrInit() and ixQMgrDispatcherLoopGet().  */PRIVATE IX_STATUS ixQMgrOrigB0Dispatcher = IX_FEATURE_CTRL_COMPONENT_ENABLED;/*  * keep record of Q types - not in IxQMgrQInfo for performance as * it is only used with ixQMgrDispatcherLoopRunB0LLP() */PRIVATE IxQMgrType ixQMgrQTypes[IX_QMGR_MAX_NUM_QUEUES];/* * This array contains a list of queue identifiers ordered by priority. The table * is split logically between queue identifiers 0-31 and 32-63. */static IxQMgrQId priorityTable[IX_QMGR_MAX_NUM_QUEUES];/* * This flag indicates to the dispatcher that the priority table needs to be rebuilt. */static BOOL rebuildTable = FALSE;/* Dispatcher statistics */static IxQMgrDispatcherStats dispatcherStats;/* Table of queue information */static IxQMgrQInfo dispatchQInfo[IX_QMGR_MAX_NUM_QUEUES];/* Masks use to identify the first queues in the priority tables *  when comparing with the interrupt register*/static unsigned int lowPriorityTableFirstHalfMask;static unsigned int uppPriorityTableFirstHalfMask;/* * Static function prototypes *//* * This function is the default callback for all queues */PRIVATE voiddummyCallback (IxQMgrQId qId,	      	       IxQMgrCallbackId cbId);PRIVATE voidixQMgrDispatcherReBuildPriorityTable (void);/* * Function definitions. */voidixQMgrDispatcherInit (void){    int i;    IxFeatureCtrlProductId productId = 0;    IxFeatureCtrlDeviceId deviceId = 0;    BOOL stickyIntSilicon = TRUE;     /* Set default priorities */    for (i=0; i< IX_QMGR_MAX_NUM_QUEUES; i++)    {	dispatchQInfo[i].callback = dummyCallback;	dispatchQInfo[i].callbackId = 0;	dispatchQInfo[i].dummyCallbackCount = 0;	dispatchQInfo[i].priority = IX_QMGR_Q_PRIORITY_2;	dispatchQInfo[i].statusWordOffset = 0;	dispatchQInfo[i].statusCheckValue = 0;	dispatchQInfo[i].statusMask = 0;          /* 	 * There are two interrupt registers, 32 bits each. One for the lower	 * queues(0-31) and one for the upper queues(32-63). Therefore need to	 * mod by 32 i.e the min upper queue identifier.	 */	dispatchQInfo[i].intRegCheckMask = (1<<(i%(IX_QMGR_MIN_QUEUPP_QID)));        /*          * Set the Q types - will only be used with livelock          */        ixQMgrQTypes[i] = IX_QMGR_TYPE_REALTIME_OTHER;	/* Reset queue statistics */	dispatcherStats.queueStats[i].callbackCnt = 0;	dispatcherStats.queueStats[i].priorityChangeCnt = 0;	dispatcherStats.queueStats[i].intNoCallbackCnt = 0;	dispatcherStats.queueStats[i].intLostCallbackCnt = 0;        dispatcherStats.queueStats[i].notificationEnabled = FALSE;        dispatcherStats.queueStats[i].srcSel = 0;    }    /* Priority table. Order the table from queue 0 to 63 */    ixQMgrDispatcherReBuildPriorityTable();    /* Reset statistics */    dispatcherStats.loopRunCnt = 0;    /* Get the device ID for the underlying silicon */    deviceId = ixFeatureCtrlDeviceRead();        /* Get the product ID for the underlying silicon */    productId = ixFeatureCtrlProductIdRead();    /*      * Check featureCtrl to see if Livelock prevention is required      */    ixQMgrOrigB0Dispatcher = ixFeatureCtrlSwConfigurationCheck(                                  IX_FEATURECTRL_ORIGB0_DISPATCHER);    /*     * Check if the silicon supports the sticky interrupt feature.     * IF (IXP42X AND A0) -> No sticky interrupt feature supported      */    if ((IX_FEATURE_CTRL_DEVICE_TYPE_IXP42X ==         (IX_FEATURE_CTRL_DEVICE_TYPE_MASK & deviceId)) &&        (IX_FEATURE_CTRL_SILICON_TYPE_A0 ==         (IX_FEATURE_CTRL_SILICON_STEPPING_MASK & productId)))     {       stickyIntSilicon = FALSE;    }    /*     * IF user wants livelock prev option AND silicon supports sticky interrupt      * feature -> enable the sticky interrupt bit     */    if ((IX_FEATURE_CTRL_SWCONFIG_DISABLED == ixQMgrOrigB0Dispatcher) &&         stickyIntSilicon)      {        ixQMgrStickyInterruptRegEnable();    }}IX_STATUSixQMgrDispatcherPrioritySet (IxQMgrQId qId,			     IxQMgrPriority priority){       int ixQMgrLockKey;    if (!ixQMgrQIsConfigured(qId))    {	return IX_QMGR_Q_NOT_CONFIGURED;    }        if (!IX_QMGR_DISPATCHER_PRIORITY_CHECK(priority))    {	return IX_QMGR_Q_INVALID_PRIORITY;    }    ixQMgrLockKey = ixOsalIrqLock();        /* Change priority */    dispatchQInfo[qId].priority = priority;    /* Set flag */    rebuildTable = TRUE;    ixOsalIrqUnlock(ixQMgrLockKey);#ifndef NDEBUG    /* Update statistics */    dispatcherStats.queueStats[qId].priorityChangeCnt++;#endif    return IX_SUCCESS;}IX_STATUSixQMgrNotificationCallbackSet (IxQMgrQId qId,			       IxQMgrCallback callback,			       IxQMgrCallbackId callbackId){    if (!ixQMgrQIsConfigured(qId))    {	return IX_QMGR_Q_NOT_CONFIGURED;    }    if (NULL == callback)    {	/* Reset to dummy callback */	dispatchQInfo[qId].callback = dummyCallback;	dispatchQInfo[qId].dummyCallbackCount = 0;	dispatchQInfo[qId].callbackId = 0;    }    else     {	dispatchQInfo[qId].callback = callback;	dispatchQInfo[qId].callbackId = callbackId;    }    return IX_SUCCESS;}IX_STATUSixQMgrNotificationEnable (IxQMgrQId qId, 			  IxQMgrSourceId srcSel){    IxQMgrQStatus qStatusOnEntry;/* The queue status on entry/exit */    IxQMgrQStatus qStatusOnExit; /* to this function               */    int ixQMgrLockKey;#ifndef NDEBUG    if (!ixQMgrQIsConfigured (qId))    {	return IX_QMGR_Q_NOT_CONFIGURED;    }    if ((qId < IX_QMGR_MIN_QUEUPP_QID) &&       !IX_QMGR_DISPATCHER_SOURCE_ID_CHECK(srcSel))    {	/* QId 0-31 source id invalid */	return IX_QMGR_INVALID_INT_SOURCE_ID;    }    if ((IX_QMGR_Q_SOURCE_ID_NE != srcSel) &&	(qId >= IX_QMGR_MIN_QUEUPP_QID))    {	/*	 * For queues 32-63 the interrupt source is fixed to the Nearly	 * Empty status flag and therefore should have a srcSel of NE.	 */	return IX_QMGR_INVALID_INT_SOURCE_ID;    }#endif#ifndef NDEBUG    dispatcherStats.queueStats[qId].notificationEnabled = TRUE;    dispatcherStats.queueStats[qId].srcSel = srcSel;#endif    /* Get the current queue status */    ixQMgrAqmIfQueStatRead (qId, &qStatusOnEntry);      /*      * Enabling interrupts results in Read-Modify-Write     * so need critical section     */    ixQMgrLockKey = ixOsalIrqLock();    /* Calculate the checkMask and checkValue for this q */    ixQMgrAqmIfQStatusCheckValsCalc (qId,				     srcSel,				     &dispatchQInfo[qId].statusWordOffset,				     &dispatchQInfo[qId].statusCheckValue,				     &dispatchQInfo[qId].statusMask);    /* Set the interupt source is this queue is in the range 0-31 */    if (qId < IX_QMGR_MIN_QUEUPP_QID)    {	ixQMgrAqmIfIntSrcSelWrite (qId, srcSel);    }    /* Enable the interrupt */    ixQMgrAqmIfQInterruptEnable (qId);    ixOsalIrqUnlock(ixQMgrLockKey);        /* Get the current queue status */    ixQMgrAqmIfQueStatRead (qId, &qStatusOnExit);      /* If the status has changed return a warning */    if (qStatusOnEntry != qStatusOnExit)    {	return IX_QMGR_WARNING;    }        return IX_SUCCESS;}IX_STATUSixQMgrNotificationDisable (IxQMgrQId qId){    int ixQMgrLockKey;#ifndef NDEBUG    /* Validate parameters */    if (!ixQMgrQIsConfigured (qId))    {	return IX_QMGR_Q_NOT_CONFIGURED;    }#endif      /*      * Enabling interrupts results in Read-Modify-Write     * so need critical section     */#ifndef NDEBUG    dispatcherStats.queueStats[qId].notificationEnabled = FALSE;#endif    ixQMgrLockKey = ixOsalIrqLock();    ixQMgrAqmIfQInterruptDisable (qId);        ixOsalIrqUnlock(ixQMgrLockKey);    return IX_SUCCESS;    }void ixQMgrStickyInterruptRegEnable(void){ /* Use Aqm If function to set Interrupt Register0 Bit-3 */  ixQMgrAqmIfIntSrcSelReg0Bit3Set ();   }#if !defined __XSCALE__ || defined __linux

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品国产三级电影在线观看| 亚洲色图一区二区三区| 青青草91视频| 欧美精品色综合| 三级久久三级久久| 精品国产免费一区二区三区四区| 视频一区中文字幕| 中文字幕不卡三区| 国产真实乱子伦精品视频| 欧美一区二区三区在线视频| 免费观看日韩电影| 国产精品少妇自拍| 91成人免费在线视频| 亚洲丶国产丶欧美一区二区三区| 91精品视频网| 国产老妇另类xxxxx| 日韩av一区二区三区| 五月婷婷综合网| 日韩福利电影在线| 精品一区二区免费视频| 国产精品99久久久久久似苏梦涵 | 欧美一卡在线观看| 国产一区二区三区免费看| 国产精品白丝在线| 精品嫩草影院久久| 色久优优欧美色久优优| 成人app网站| 肉丝袜脚交视频一区二区| 亚洲乱码日产精品bd| 日韩一区欧美一区| 欧美国产在线观看| 制服丝袜亚洲色图| 97国产一区二区| 韩国v欧美v日本v亚洲v| 亚洲色图20p| 国产精品视频免费| 日韩女同互慰一区二区| 精品视频免费看| 91免费看`日韩一区二区| 美女看a上一区| 亚洲成人动漫在线免费观看| 国产亚洲成aⅴ人片在线观看| 欧美绝品在线观看成人午夜影视| 成人开心网精品视频| 国产精品一区二区无线| 日本va欧美va欧美va精品| 亚洲一区二区免费视频| 日韩一区在线看| 中文字幕一区二区三区不卡在线| 精品精品欲导航| 日韩欧美国产一二三区| 91精品国产综合久久久久久久| 国产69精品久久99不卡| 免费精品99久久国产综合精品| 夜夜精品视频一区二区| 一级做a爱片久久| 亚洲一区二区三区四区中文字幕| 玉足女爽爽91| 午夜精品一区二区三区三上悠亚| 亚洲成人动漫在线免费观看| 午夜不卡av在线| 美女一区二区在线观看| 国产自产高清不卡| 成人黄色电影在线| 在线视频一区二区三| 欧美日本国产视频| 久久女同性恋中文字幕| 国产精品麻豆久久久| 亚洲国产欧美另类丝袜| 日韩激情av在线| 成人精品一区二区三区中文字幕| 色一情一乱一乱一91av| 欧美一级高清大全免费观看| 久久久一区二区| 亚洲男帅同性gay1069| 国产精品不卡一区| 亚洲电影第三页| 国产成人午夜视频| 欧美性大战久久久久久久蜜臀| 日韩欧美一二三四区| 樱桃国产成人精品视频| 国产真实乱偷精品视频免| 欧美亚洲综合网| 中文字幕一区二区三区视频| 蜜桃视频在线一区| 色噜噜狠狠一区二区三区果冻| 精品少妇一区二区三区日产乱码| 中文字幕亚洲在| 国产 欧美在线| 91精品国产色综合久久久蜜香臀| 亚洲色大成网站www久久九九| 国产揄拍国内精品对白| 日韩午夜在线播放| 午夜精品成人在线视频| 在线观看国产91| 17c精品麻豆一区二区免费| 国产麻豆精品在线观看| 欧美久久久久久久久| 成人免费一区二区三区在线观看| 国产99精品视频| 久久嫩草精品久久久久| 国内精品免费在线观看| 久久精品网站免费观看| 国产精品一区二区你懂的| 久久理论电影网| 成人综合激情网| 亚洲欧洲国产专区| 欧美色图片你懂的| 婷婷成人激情在线网| 欧美一区三区二区| 精品亚洲成a人| 日韩一级片网址| 国产福利电影一区二区三区| 国产精品女同一区二区三区| 亚洲男人的天堂在线观看| 欧美在线不卡视频| 久久精品国产久精国产| 欧美国产日韩在线观看| 一本大道综合伊人精品热热| 日韩av网站免费在线| 欧美经典一区二区三区| 一本一道久久a久久精品| 午夜精品福利一区二区三区蜜桃| 不卡一卡二卡三乱码免费网站| 亚洲妇女屁股眼交7| 久久综合狠狠综合| 在线中文字幕不卡| 国产成人高清在线| 亚洲国产成人av| 中文字幕在线观看不卡视频| 这里是久久伊人| 91麻豆国产福利精品| 国产米奇在线777精品观看| 一区二区三区日韩欧美精品| 欧美成人性福生活免费看| 欧美亚男人的天堂| 99久久精品一区| 丁香另类激情小说| 韩国女主播一区| 久久国产生活片100| 五月婷婷久久丁香| 一区二区三区欧美| 亚洲欧美国产三级| 亚洲欧洲成人av每日更新| 国产日产精品1区| 欧美成人精品二区三区99精品| 欧美日韩一区二区在线观看视频 | 99精品在线免费| 青娱乐精品在线视频| 亚洲国产精品久久不卡毛片 | 日韩欧美中文字幕制服| 日韩欧美国产精品| 日韩女优av电影在线观看| 日韩一区二区麻豆国产| 精品日韩在线观看| 精品国产污网站| 国产精品毛片a∨一区二区三区| 中文字幕av不卡| 亚洲美女屁股眼交| 亚洲一区国产视频| 日本中文在线一区| 国产乱人伦偷精品视频不卡 | 日本人妖一区二区| 国产成人免费视频精品含羞草妖精| 高清beeg欧美| 一本色道a无线码一区v| 欧美二区三区的天堂| 精品久久免费看| 国产精品麻豆欧美日韩ww| 国产日韩欧美不卡在线| 国产精品女主播在线观看| 亚洲国产人成综合网站| 国产在线播放一区| 欧美午夜精品一区二区蜜桃| 26uuu另类欧美亚洲曰本| 亚洲欧美日韩在线不卡| 理论片日本一区| 在线中文字幕一区| 中文字幕精品综合| 久久精品二区亚洲w码| 欧美在线你懂得| 中文字幕日韩av资源站| 精品一区二区三区香蕉蜜桃| 欧美日韩中文字幕一区二区| 国产午夜精品福利| 久久不见久久见免费视频7| 色欧美片视频在线观看在线视频| 久久噜噜亚洲综合| 久久成人免费电影| 7777精品伊人久久久大香线蕉的 | 精品视频色一区| 最新欧美精品一区二区三区| 国产伦精品一区二区三区免费| 欧美日韩一区二区三区视频| 亚洲日本成人在线观看| 日韩电影在线观看电影| 欧美亚洲日本国产| 亚洲国产裸拍裸体视频在线观看乱了| av福利精品导航| 亚洲美女区一区|