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

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

?? universe.c

?? VxWorkS下 MV2604的BSP源代碼
?? C
?? 第 1 頁 / 共 4 頁
字號:
#endif    }/********************************************************************************* sysIntDisable - disable a bus interrupt level** This routine disables reception of a specified VMEbus interrupt level.** NOTE: revision 1.0 Universe chips can fail and lockup if two or more interrupt* levels are enabled.  For more details see Tundra Universe Errata sheet.** RETURNS: OK, or ERROR if <intLevel> is not in the range 1 - 7.** SEE ALSO: sysIntEnable()*/STATUS sysIntDisable    (    int intLevel        /* interrupt level to disable (1-7) */    )    {    int mask;    if (intLevel < 1 || intLevel > 7)        return (ERROR);    /* clear any pending intr. for this level */    mask = 1 << intLevel;    UNIV_OUT_LONG(UNIVERSE_LINT_STAT, mask);    /* disable the interrupt */    sysUnivIntsEnabled &= ~mask;    UNIV_OUT_LONG(UNIVERSE_LINT_EN, sysUnivIntsEnabled);    return (OK);    }/********************************************************************************* sysIntEnable - enable a bus interrupt level** This routine enables reception of a specified VMEbus interrupt level.** NOTE: revision 1.0 Universe chips can fail and lockup if two or more interrupt* levels are enabled.  For more details see Tundra Universe Errata sheet.** RETURNS: OK, or ERROR if <intLevel> is not in the range 1 - 7.** SEE ALSO: sysIntDisable()*/STATUS sysIntEnable    (    int intLevel        /* interrupt level to enable (1-7) */    )    {    int mask;    if (intLevel < 1 || intLevel > 7)        return (ERROR);    /* clear any pending intr. for this level */    mask = 1 << intLevel;    UNIV_OUT_LONG(UNIVERSE_LINT_STAT, mask);    /* enable the interrupt */    sysUnivIntsEnabled |= mask;    UNIV_OUT_LONG(UNIVERSE_LINT_EN, sysUnivIntsEnabled);    /* map the interrupt.  Currently all VME ints are mapped to LINT#0 */    UNIV_OUT_LONG(UNIVERSE_LINT_MAP0, 0);    return (OK);    }/********************************************************************************* sysBusIntAck - acknowledge a bus interrupt** This routine acknowledges a specified VMEbus interrupt level.** NOTE: This routine is included for BSP compliance only.  Since VMEbus* interrupts are re-enabled in the interrupt handler, and acknowledged* automatically by hardware, this routine is a no-op.** RETURNS: NULL.** SEE ALSO: sysBusIntGen()*/int sysBusIntAck    (    int intLevel        /* interrupt level to acknowledge */    )    {    return (0);    }/********************************************************************************* sysBusIntGen - generate a bus interrupt** This routine generates a VMEbus interrupt for a specified level with a* specified vector.  Only one VME interrupt can be generated at a time and* none can be generated if a previously generated VME interrupt has not been* acknowledged, i.e., if no VME bus IACK cycle has completed.** RETURNS: OK, or ERROR if <level> or <vector> are out of range or if an* interrupt is already in progress.** SEE ALSO: sysBusIntAck()*/STATUS sysBusIntGen    (    int level,          /* interrupt level to generate    */    int vector          /* interrupt vector for interrupt */    )    {    volatile ULONG enReg;    volatile ULONG mapReg;    volatile ULONG intReg;    volatile ULONG statidReg;    int            lockKey;    /* Validate interrupt level */    if (level < 1 || level > 7 || vector > 255 || vector < 2)        return (ERROR);    if (pciToVmeDev == UNIVERSE_I)        {        /* lock interrupts so there will be no interference */        EIEIO_SYNC;        lockKey = intLock ();        /* Ensure bus interrupt is not already asserted */        UNIV_IN_LONG(UNIVERSE_VINT_STAT, &intReg);        if (intReg & VINT_STAT_SW_INT)            {            intUnlock (lockKey);            return (ERROR);            }        /* map VME int level to SW_INT */        UNIV_IN_LONG(UNIVERSE_VINT_MAP1, &mapReg);        mapReg &= ~VINT_MAP1_SW_INT_MASK;        mapReg |= level << 16;        UNIV_OUT_LONG(UNIVERSE_VINT_MAP1, mapReg);        /* Clear bit before setting it */        UNIV_IN_LONG(UNIVERSE_VINT_EN, &enReg);        enReg &= ~(VINT_EN_SW_INT);        UNIV_OUT_LONG(UNIVERSE_VINT_EN, enReg);    /* clear SW_INT bit */        /* store vector # (only 7 most significant bits accepted by Universe) */        UNIV_OUT_LONG(UNIVERSE_STATID, ((vector << 24) | STATID_MASK));        /* generate int on VME bus by setting the SW_INT bit */        enReg |= (VINT_EN_SW_INT);        UNIV_OUT_LONG(UNIVERSE_VINT_EN, enReg);    /* set SW_INT bit */        /* unlock the interrupt */        intUnlock (lockKey);        EIEIO_SYNC;        }    else        {	/* pciToVmeDev == UNIVERSE_II */        /* lock interrupts so there will be no interference */        CPU_INT_LOCK(&lockKey);        /* Ensure bus interrupt is not already asserted */        UNIV_IN_LONG(UNIVERSE_VINT_STAT, &intReg);        if (intReg & ((1 << level) << 24))            {            CPU_INT_UNLOCK(lockKey);            return (ERROR);            }        /*         * Clear Software Interrupt bit before setting it         * It needs a 0 to 1 transition to generate an interrupt         */         UNIV_IN_LONG(UNIVERSE_VINT_EN, &enReg);         enReg &= ~((1 << level) << 24);         UNIV_OUT_LONG(UNIVERSE_VINT_EN, enReg);         /*          * store vector number, wiping out LSB of vector number          * This implies that only even number vectors should be used          * (Universe FEATURE ?)          */          UNIV_IN_LONG(UNIVERSE_STATID, &statidReg);          vector >>= 1;          statidReg = (statidReg & STATID_MASK) | (vector << 25);          UNIV_OUT_LONG(UNIVERSE_STATID, statidReg);          /* Generate a SW interrupt on the VMEbus at the requested level */          UNIV_IN_LONG(UNIVERSE_VINT_EN, &enReg);          enReg |= ((1 << level) << 24);          UNIV_OUT_LONG(UNIVERSE_VINT_EN, enReg);          /* unlock the interrupt */          CPU_INT_UNLOCK(lockKey);        }    return (OK);    }/********************************************************************************* sysUnivIntEnable - enable Universe-supported interrupt(s)** This routine enables the specified type(s) of interrupt supported by the* Universe VME-to-PCI bridge.** RETURNS: OK, or ERROR if invalid interrupt type(s).** SEE ALSO: sysUnivIntDisable()**/STATUS sysUnivIntEnable    (    int univIntType	/* interrupt type */    )    {    /* make sure the interrupt type is valid */    if ((univIntType & UNIVERSE_INT_MASK)     == 0 ||	(univIntType & UNIVERSE_RESERVED_INT) != 0   )	return(ERROR);    /* clear any pending intr. for the type */    UNIV_OUT_LONG(UNIVERSE_LINT_STAT, univIntType);    /* enable the interrupt */    sysUnivIntsEnabled |= univIntType;    UNIV_OUT_LONG(UNIVERSE_LINT_EN, sysUnivIntsEnabled);    /* map the interrupt.  Currently all VME ints are mapped to LINT#0 */    UNIV_OUT_LONG(UNIVERSE_LINT_MAP1, 0);    return (OK);    }/********************************************************************************* sysUnivIntDisable - disable Universe-supported interrupt(s)** This routine disables the specified type(s) of interrupt supported by the * Universe VME-to-PCI bridge.** RETURNS: OK, or ERROR if invalid interrupt type(s).** SEE ALSO: sysUnivIntEnable()**/STATUS sysUnivIntDisable    (    int univIntType /* interrupt type */    )    {    /* make sure the interrupt type is valid */    if ((univIntType & UNIVERSE_INT_MASK)     == 0 ||	(univIntType & UNIVERSE_RESERVED_INT) != 0   )        return (ERROR);    /* disable the interrupt */    sysUnivIntsEnabled &= ~univIntType;    UNIV_OUT_LONG(UNIVERSE_LINT_EN, sysUnivIntsEnabled);    /* clear any pending intr. for the type */    UNIV_OUT_LONG(UNIVERSE_LINT_STAT, univIntType);    return (OK);    }/********************************************************************************* sysUnivIntLevelSet - set a Universe-supported interrupt level** This routine disables all interrupts supported by the Universe at and below* the specified level.  The lowest level is 0, the highest is 15.  The* priority mapping is:* .CS*    0		no interrupts masked*    1		UNIVERSE_VOWN_INT*    2		VMEBUS_LVL1*    3		VMEBUS_LVL2*    4		VMEBUS_LVL3*    5		VMEBUS_LVL4*    6		VMEBUS_LVL5*    7		VMEBUS_LVL6*    8		VMEBUS_LVL7*    9		UNIVERSE_DMA_INT*    10		UNIVERSE_LERR_INT*    11		UNIVERSE_VERR_INT*    12		UNIVERSE_VME_SW_IACK_INT*    13		UNIVERSE_PCI_SW_INT*    14		UNIVERSE_SYSFAIL_INT*    15		UNIVERSE_ACFAIL_INT* .CE** If the level specified is -1, the level is not changed, just the current* level is returned.** RETURNS: previous interrupt level.** SEE ALSO: sysUnivIntDisable(), sysUnivIntEnable()*/int sysUnivIntLevelSet    (    int  univIntLvl	/* Universe interrupt level */    )    {    int  intLvl;    int  key;    /* Just return current level if so requested */    if (univIntLvl == -1)	return (sysUnivIntLevel);    /* Lock out interrupts during level change */    CPU_INT_LOCK(&key);    /* disable the interrupt levels at and below the current level */    intLvl = univIntTable[univIntLvl].intMask;    intLvl &= sysUnivIntsEnabled;    UNIV_OUT_LONG(UNIVERSE_LINT_EN, intLvl);    /* save current level for return */    intLvl = sysUnivIntLevel;    /* set new mask */    sysUnivIntLevel = univIntLvl;    /* Unlock interrupts */    CPU_INT_UNLOCK(key);    /* return previous mask */    return (intLvl);    }/******************************************************************************** sysUnivIntConnect - connect an interrupt handler for an interrupt type** This routine connects an interrupt handler for a specified interrupt type * to the system vector table of the Universe VME-to-PCI bridge.** RETURNS: OK, or ERROR if any argument is invalid or memory cannot be* allocated.*/STATUS sysUnivIntConnect    (    int		univIntType,  /* the interrupt type to connect with */    VOIDFUNCPTR	routine,      /* routine to be called */    int		parameter     /* parameter to be passed to routine */    )    {    int			univVecNum = 0;    /* make sure the interrupt type is valid */    if ((univIntType & UNIVERSE_INT_MASK) == 0)        return (ERROR);    /* determine the vector number for the interrupt */    switch(univIntType)	{	case UNIVERSE_DMA_INT:	    univVecNum = UNIV_DMA_INT_VEC;	    break;	case UNIVERSE_LERR_INT:	    univVecNum = UNIV_LERR_INT_VEC;	    break;	case UNIVERSE_VERR_INT:	    univVecNum = UNIV_VERR_INT_VEC;	    break;	case UNIVERSE_SYSFAIL_INT:	    univVecNum = UNIV_SYSFAIL_INT_VEC;	    break;	case UNIVERSE_ACFAIL_INT:	    univVecNum = UNIV_ACFAIL_INT_VEC;	    break;	case UNIVERSE_PCI_SW_INT:	    univVecNum = UNIV_PCI_SW_INT_VEC;	    break;	case UNIVERSE_VME_SW_IACK_INT:	    univVecNum = UNIV_VME_SW_IACK_INT_VEC;	    break;	case UNIVERSE_VOWN_INT:	    univVecNum = UNIV_VOWN_INT_VEC;	    break;	default:	    /* doesn't match one of the intr. types, so return an error */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品中文欧美| 裸体在线国模精品偷拍| 欧美激情一区二区三区| 国产欧美一区二区三区网站| 欧美成人一区二区三区片免费| 欧美一区二区精品在线| 日韩欧美中文字幕一区| 精品国产自在久精品国产| 久久综合色之久久综合| 国产精品免费看片| 中文字幕精品—区二区四季| 久久久久国产精品麻豆ai换脸| 欧美极品aⅴ影院| 亚洲三级在线看| 一区二区高清视频在线观看| 一区二区三区久久| 美洲天堂一区二卡三卡四卡视频| 国产麻豆精品在线| www.成人在线| 正在播放一区二区| 国产片一区二区三区| 国产精品美女一区二区| 亚洲电影第三页| 国产一区 二区| 97se亚洲国产综合自在线| 欧美日韩视频第一区| 日韩欧美的一区| 国产精品国产a| 日本不卡免费在线视频| 国产黄人亚洲片| 欧美日韩中文一区| 久久久久久久精| 亚洲va欧美va人人爽| 国产成人免费在线视频| 欧美日韩黄色影视| 欧美国产亚洲另类动漫| 天使萌一区二区三区免费观看| 国产高清精品在线| 欧美精品日日鲁夜夜添| 久久精品欧美日韩精品 | 午夜视频在线观看一区二区三区| 中文字幕欧美日韩一区| 国产伦精品一区二区三区视频青涩 | 在线观看网站黄不卡| 91.麻豆视频| 亚洲色欲色欲www| 九九**精品视频免费播放| 色婷婷综合在线| 日本一区二区成人在线| 免费观看一级欧美片| 91行情网站电视在线观看高清版| 精品国产免费久久| 三级不卡在线观看| 久久成人免费日本黄色| 99视频在线精品| 久久综合久久久久88| 亚洲福利一二三区| 97se亚洲国产综合自在线| 久久久久一区二区三区四区| 日韩av一级片| 欧美一区二区三区影视| 亚洲一级电影视频| 91麻豆123| 中文字幕在线一区免费| 国产精品夜夜嗨| 国产午夜久久久久| 国产乱码精品一区二区三区av| 日韩一区二区三区四区五区六区| 亚洲一区中文在线| 欧美性大战久久久久久久蜜臀| 中文字幕一区二区三区在线观看| 国产乱码精品一区二区三区忘忧草 | 国产精品伦理在线| 国产成人超碰人人澡人人澡| 久久久久综合网| 激情亚洲综合在线| 精品国产99国产精品| 韩国欧美国产1区| 国产亚洲综合在线| 国产不卡视频一区二区三区| 国产精品久久久久久久午夜片| 成人一道本在线| 亚洲三级在线看| 欧美午夜精品久久久| 午夜av区久久| 日韩欧美国产一区二区在线播放| 麻豆成人av在线| 久久久91精品国产一区二区精品| 东方aⅴ免费观看久久av| 中文字幕一区二区三区在线观看| 一本一道久久a久久精品| 午夜精品一区二区三区免费视频 | 成人丝袜高跟foot| 亚洲丝袜精品丝袜在线| 欧美日韩一区二区三区在线| 日本欧美一区二区| 欧美高清在线一区二区| 日本丰满少妇一区二区三区| 免费看欧美女人艹b| 久久久国产一区二区三区四区小说 | 91精品国产综合久久国产大片 | 亚洲欧美在线观看| 欧美在线色视频| 久久成人av少妇免费| 国产精品国产三级国产专播品爱网| 欧美在线999| 韩国中文字幕2020精品| 亚洲欧美另类综合偷拍| 欧美日韩中文另类| 成人在线视频一区二区| 香蕉成人伊视频在线观看| 精品捆绑美女sm三区| 色偷偷88欧美精品久久久| 久久机这里只有精品| 一区二区三区丝袜| 国产区在线观看成人精品| 欧美三级乱人伦电影| 国产精品91xxx| 日韩精品一级二级 | 一区二区三区影院| 久久亚洲影视婷婷| 欧美日韩久久久一区| 99视频在线观看一区三区| 狠狠色丁香九九婷婷综合五月| 亚洲蜜臀av乱码久久精品蜜桃| 精品日韩欧美在线| 欧美理论在线播放| 91麻豆免费在线观看| 国产成人精品影视| 精一区二区三区| 天天综合日日夜夜精品| 18欧美乱大交hd1984| 国产亚洲精品久| 精品国产1区二区| 91精品国产综合久久婷婷香蕉| 91免费观看国产| 大尺度一区二区| 国产成人一区在线| 国产成人一区在线| 国产电影一区在线| 国产一区二区三区免费播放| 精品综合久久久久久8888| 日日摸夜夜添夜夜添精品视频 | 国产嫩草影院久久久久| 精品久久久久香蕉网| 日韩一区二区三免费高清| 欧美日韩一区高清| 欧美巨大另类极品videosbest| 色悠悠久久综合| 色综合av在线| 欧美私人免费视频| 欧美精品第一页| 欧美一级片在线| 日韩欧美123| 久久久久国产精品麻豆ai换脸| 久久免费电影网| 欧美国产视频在线| 亚洲欧洲三级电影| 国产精品女人毛片| 亚洲日穴在线视频| 亚洲午夜免费电影| 婷婷综合另类小说色区| 老汉av免费一区二区三区| 久久精品国产一区二区三| 国产毛片一区二区| 成人aa视频在线观看| 91极品视觉盛宴| 日韩视频在线永久播放| 欧美大肚乱孕交hd孕妇| 久久久久久一二三区| 国产精品家庭影院| 亚洲成人先锋电影| 狠狠色丁香婷婷综合久久片| 国产成人综合在线| 91欧美一区二区| 91精品国产综合久久精品| 久久综合视频网| 一区二区三区在线视频免费| 麻豆精品视频在线观看| 成人18视频在线播放| 欧美熟乱第一页| 国产亚洲精品超碰| 亚洲第一主播视频| 国产69精品久久久久毛片| 欧美曰成人黄网| 久久久五月婷婷| 亚洲高清免费观看| 国产成人免费网站| 欧美日韩精品免费| 日本一区二区成人| 免费在线看一区| 色天使色偷偷av一区二区| 日韩欧美一级精品久久| 1024亚洲合集| 精品伊人久久久久7777人| av成人老司机| 久久久久久免费网| 免费在线一区观看| 国产午夜精品久久久久久久 | 26uuu精品一区二区在线观看|