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

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

?? universe.c

?? VxWorks下 Mv2100的BSP源碼
?? C
?? 第 1 頁 / 共 4 頁
字號:
    (    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 */        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);        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 23.  The* priority mapping is:* .CS*    0		no interrupts masked*    1		UNIVERSE_VOWN_INT*    2          UNIVERSE_LM1_INT*    3          UNIVERSE_LM2_INT*    4          UNIVERSE_LM3_INT*    5          UNIVERSE_MBOX0_INT*    6          UNIVERSE_MBOX1_INT*    7          UNIVERSE_MBOX2_INT*    8          UNIVERSE_MBOX3_INT*    9		VMEBUS_LVL1*    10		VMEBUS_LVL2*    11		VMEBUS_LVL3*    12		VMEBUS_LVL4*    13		VMEBUS_LVL5*    14		VMEBUS_LVL6*    15		VMEBUS_LVL7*    16		UNIVERSE_DMA_INT*    17         UNIVERSE_LM0_INT*    18		UNIVERSE_LERR_INT*    19		UNIVERSE_VERR_INT*    20		UNIVERSE_VME_SW_IACK_INT*    21		UNIVERSE_PCI_SW_INT*    22		UNIVERSE_SYSFAIL_INT*    23		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.** NOTE: the interrupt LM0 is reserved for the sysMailbox routines.** RETURNS: OK, or ERROR if any argument is invalid or interrupt type* doesn't match the table entries.*/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;	case UNIVERSE_MBOX0_INT:	    univVecNum = UNIV_MBOX0_INT_VEC;	    break;        case UNIVERSE_MBOX1_INT:            univVecNum = UNIV_MBOX1_INT_VEC;            break;        case UNIVERSE_MBOX2_INT:            univVecNum = UNIV_MBOX2_INT_VEC;            break;        case UNIVERSE_MBOX3_INT:

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线视频亚洲一区| 国产精品色婷婷久久58| 久久久久久亚洲综合影院红桃| 中文一区二区完整视频在线观看| 亚洲大片精品永久免费| 国产v综合v亚洲欧| 日韩欧美亚洲国产精品字幕久久久| 国产精品入口麻豆九色| 精品一区二区三区蜜桃| 91福利精品第一导航| 国产日韩欧美精品在线| 美国欧美日韩国产在线播放| 在线视频欧美精品| 国产精品国产三级国产普通话99| 国精产品一区一区三区mba桃花 | 国产精品久久久久影视| 美女诱惑一区二区| 精品视频免费在线| 亚洲免费大片在线观看| 高清beeg欧美| 中文字幕国产一区二区| 国产精品1024| 久久蜜桃av一区二区天堂| 人禽交欧美网站| 7777精品久久久大香线蕉| 亚洲午夜一二三区视频| 日韩视频123| 丝袜亚洲另类丝袜在线| 欧美人牲a欧美精品| 图片区小说区国产精品视频| 在线一区二区三区四区五区 | 亚洲一区二区四区蜜桃| 91一区二区在线| 亚洲视频在线一区二区| 色婷婷av久久久久久久| 亚洲综合免费观看高清完整版在线 | 成人精品电影在线观看| 国产精品私房写真福利视频| 成人免费视频视频在线观看免费| 国产日韩视频一区二区三区| 成人va在线观看| 亚洲日本乱码在线观看| 色哦色哦哦色天天综合| 亚洲第一久久影院| 欧美一区二区三区人| 麻豆成人91精品二区三区| 欧美精品一区二区三区四区| 国产中文一区二区三区| 国产色产综合产在线视频| 99re这里只有精品6| 亚洲一区二区三区中文字幕 | 午夜av区久久| 日韩欧美激情四射| 国产成人免费在线观看不卡| 日韩伦理电影网| 6080yy午夜一二三区久久| 国产美女精品人人做人人爽| 中文字幕一区二区三区不卡 | www.综合网.com| 亚洲丝袜自拍清纯另类| 欧美猛男超大videosgay| 日本一区中文字幕| 国产午夜亚洲精品不卡| 日本丶国产丶欧美色综合| 日本中文一区二区三区| 国产亚洲女人久久久久毛片| 色噜噜狠狠成人网p站| 免费观看久久久4p| 亚洲欧美在线视频观看| 欧美一个色资源| 99久久综合狠狠综合久久| 天堂成人国产精品一区| 日本一区二区动态图| 欧美放荡的少妇| 99在线精品观看| 久久99这里只有精品| 亚洲黄色片在线观看| 国产香蕉久久精品综合网| 欧美视频日韩视频| www.99精品| 国内精品伊人久久久久影院对白| 亚洲精品自拍动漫在线| 久久久精品人体av艺术| 欧美浪妇xxxx高跟鞋交| 99精品国产热久久91蜜凸| 久久精品国产免费| 午夜欧美视频在线观看| 国产精品乱子久久久久| 亚洲精品在线电影| 欧美精品在线视频| 欧洲人成人精品| 99久久精品免费观看| 国产成人免费视频网站 | 不卡av在线网| 国产精品综合在线视频| 蜜桃av噜噜一区| 视频精品一区二区| 亚洲精品乱码久久久久久久久 | 天天爽夜夜爽夜夜爽精品视频| 中文字幕一区二区三区精华液| 久久精品人人做| 欧美videofree性高清杂交| 欧美年轻男男videosbes| 色欧美乱欧美15图片| 91美女在线观看| 91女人视频在线观看| 91原创在线视频| 99re热视频这里只精品| 成人av网址在线观看| av在线不卡网| 99精品视频中文字幕| 99久久精品国产毛片| 日韩精品一区在线| 日韩一区二区三区电影| 在线不卡欧美精品一区二区三区| 在线免费精品视频| 欧美日韩亚洲综合在线| 欧美日韩一区国产| 欧美在线观看一区二区| 欧美猛男超大videosgay| 在线成人高清不卡| 精品对白一区国产伦| 久久久久久久久久美女| 国产欧美日韩中文久久| 国产精品久久久久婷婷| 一区二区免费在线| 日韩精品视频网站| 国产综合久久久久久久久久久久| 六月婷婷色综合| 国产成人精品aa毛片| 92国产精品观看| 欧美日韩亚洲高清一区二区| 日韩三区在线观看| 国产亚洲va综合人人澡精品 | 天天综合色天天综合| 毛片av中文字幕一区二区| 国产成人综合网| 色综合天天性综合| 欧美人与性动xxxx| 久久久久久久久免费| 亚洲精品视频在线观看免费| 五月天激情综合网| 国产精品一区二区在线观看不卡| jlzzjlzz亚洲女人18| 欧美日韩精品一区二区三区 | 一区二区三区资源| 蜜臀av性久久久久蜜臀aⅴ| 国产一区二区三区四区五区入口| 91在线免费播放| 日韩欧美视频在线| 中文字幕一区在线| 99精品国产一区二区三区不卡| 欧美另类videos死尸| 国产亚洲欧美色| 五月天丁香久久| 成人午夜在线播放| 91精品国产综合久久福利软件| 中文字幕成人av| 蜜臀久久99精品久久久画质超高清| av亚洲精华国产精华精华| 欧美一卡在线观看| 一级日本不卡的影视| 国内精品伊人久久久久av影院| 91精品福利在线| 国产精品色在线观看| 久久91精品国产91久久小草| 欧美在线你懂的| 中文字幕av在线一区二区三区| 五月综合激情网| 91激情在线视频| 国产精品色眯眯| 韩国成人福利片在线播放| 欧美色手机在线观看| 中文字幕一区二区三区色视频| 精品一区二区在线免费观看| 欧美日韩一区二区三区四区五区| 国产精品二三区| 国产制服丝袜一区| 日韩久久久久久| 日本不卡一区二区| 欧美日韩精品一区视频| 亚洲精品视频自拍| 成人a免费在线看| 久久夜色精品国产欧美乱极品| 性做久久久久久免费观看| 97aⅴ精品视频一二三区| 国产精品三级在线观看| 国产精品66部| 精品成人一区二区三区| 亚洲福利一区二区| 91国产精品成人| 亚洲男人的天堂在线观看| 成人av免费在线观看| 国产人久久人人人人爽| 国产美女主播视频一区| 精品粉嫩超白一线天av| 精品一区二区在线视频| 久久蜜桃av一区精品变态类天堂 | 欧美一区二区精品在线| 国产精品乱人伦|