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

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

?? dec2155xcpci.c

?? VxWorks下 Cpv3060的BSP源代碼
?? C
?? 第 1 頁 / 共 4 頁
字號:
    }/********************************************************************************* sysDec2155xIntDisable - disable a Dec2155x internal interrupt** This routine disables the specified internal Dec2155x interrupt.** RETURNS: OK, or ERROR if invalid interrupt vector.** SEE ALSO: sysDec2155xIntEnable()**/STATUS sysDec2155xIntDisable    (    int vector          /* interrupt vector for interrupt */    )    {    int bit;    /* check for doorbell interrupt */    if ( (vector >= DEC2155X_DOORBELL0_INT_VEC) &&          (vector <= DEC2155X_DOORBELL15_INT_VEC) )        {        /* calculate the bit in the Secondary Set IRQ Mask Register */        bit = vector - DEC2155X_DOORBELL0_INT_VEC;        /* set the correct bit in the Secondary Set IRQ Mask Register */        sysPciOutWord (DEC2155X_CSR_ADRS(DEC2155X_CSR_SEC_SET_IRQ_MSK),                       (UINT16)(1 << bit));        }    else        {        switch (vector)            {            case DEC2155X_PWR_MGMT_INT_LVL:                {                sysPciOutWord (DEC2155X_CSR_ADRS(DEC2155X_CSR_CHP_SET_IRQ_MSK),                               DEC2155X_CHPCSR_PM_D0);                break;                }            case DEC2155X_I2O_INT_LVL:                {                DEC2155X_PCI_INSERT_LONG(DEC2155X_CSR_I2O_IBND_PST_LST_MSK,                                         DEC2155X_I2O_PST_LST_MSK,                                         DEC2155X_I2O_PST_LST_MSK);                break;                }            case DEC2155X_PG_CRSSNG_INT_LVL:                {                sysPciOutLong (DEC2155X_CSR_ADRS(                               DEC2155X_CSR_US_PG_BND_IRQ_MSK0),                               (UINT32)(0xffffffff));                sysPciOutLong (DEC2155X_CSR_ADRS(                               DEC2155X_CSR_US_PG_BND_IRQ_MSK1),                               (UINT32)(0xffffffff));                break;                }            default:                {                return (ERROR);                break;                }            }        }    return (OK);    }/********************************************************************************* sysDec2155xIntEnable - Enable a Dec2155x internal interrupt** This routine enables the specified internal Dec2155x interrupt.** RETURNS: OK, or ERROR if invalid interrupt vector.** SEE ALSO: sysDec2155xIntDisable()**/STATUS sysDec2155xIntEnable    (    int vector          /* interrupt vector for interrupt */    )    {    int bit;    /* check for doorbell interrupt */    if ( (vector >= DEC2155X_DOORBELL0_INT_VEC) &&         (vector <= DEC2155X_DOORBELL15_INT_VEC) )        {        /* calculate the bit in the Secondary Clear IRQ Mask Register */        bit = vector - DEC2155X_DOORBELL0_INT_VEC;        /* set the correct bit in the Secondary Clear IRQ Mask Register */        sysPciOutWord (DEC2155X_CSR_ADRS(DEC2155X_CSR_SEC_CLR_IRQ_MSK),                       (UINT16)(1 << bit));        }    else        {        switch (vector)            {            case DEC2155X_PWR_MGMT_INT_LVL:                {                sysPciOutWord (DEC2155X_CSR_ADRS(DEC2155X_CSR_CHP_CLR_IRQ_MSK),                               DEC2155X_CHPCSR_PM_D0);                break;                }            case DEC2155X_I2O_INT_LVL:                {                DEC2155X_PCI_INSERT_LONG(DEC2155X_CSR_I2O_IBND_PST_LST_MSK,                                         DEC2155X_I2O_PST_LST_MSK,                                         ~DEC2155X_I2O_PST_LST_MSK);                break;                }            case DEC2155X_PG_CRSSNG_INT_LVL:                {                sysPciOutLong (DEC2155X_CSR_ADRS(                               DEC2155X_CSR_US_PG_BND_IRQ_MSK0),                               (UINT32)(0x00000000));                sysPciOutLong (DEC2155X_CSR_ADRS(                               DEC2155X_CSR_US_PG_BND_IRQ_MSK1),                               (UINT32)(0x00000000));                break;                }            default:                {                return (ERROR);                break;                }            }        }    return (OK);    }/********************************************************************************* sysMailboxInt - mailbox interrupt handler** The Dec2155x interrupt dispatcher will clear the interrupt for us, so all we* need to do is call the mailbox routine, if it exists.*/LOCAL void sysMailboxInt (void)    {    if (sysMailboxRoutine != NULL)        sysMailboxRoutine (sysMailboxArg);    }/********************************************************************************* sysMailboxConnect - connect a routine to the mailbox interrupt** This routine specifies the interrupt service routine to be called at each* mailbox interrupt.** NOTE: The mailbox interrupt is DEC2155X_MAILBOX_INT_VEC.** RETURNS: OK, or ERROR if the routine cannot be connected to the interrupt.** SEE ALSO: intConnect(), sysMailboxEnable()*/STATUS sysMailboxConnect    (    FUNCPTR routine,    /* routine called at each mailbox interrupt */    int arg             /* argument with which to call routine      */    )    {    static BOOL sysMailboxConnected = FALSE;    int bit;    if (!sysMailboxConnected &&        intConnect (INUM_TO_IVEC (DEC2155X_MAILBOX_INT_VEC),                        sysMailboxInt, NULL) == ERROR)        {        return (ERROR);        }    sysMailboxConnected = TRUE;    sysMailboxRoutine   = routine;    sysMailboxArg       = arg;    /*     * clear the mailbox intr by clearing the correct bit in the Secondary     * Clear IRQ Register     */    bit = DEC2155X_MAILBOX_INT_VEC - DEC2155X_DOORBELL0_INT_VEC;    sysPciOutWord (DEC2155X_CSR_ADRS(DEC2155X_CSR_SEC_CLR_IRQ),                   (UINT16)(1 << bit));    return (OK);    }/********************************************************************************* sysMailboxEnable - enable the mailbox interrupt** This routine enables the mailbox interrupt.** NOTE: The mailbox interrupt is DEC2155X_MAILBOX_INT_VEC.** RETURNS: OK, always.** SEE ALSO: sysMailboxConnect(), sysMailboxDisable()*/STATUS sysMailboxEnable    (    char *mailboxAdrs           /* address of mailbox (ignored) */    )    {    return (sysDec2155xIntEnable (DEC2155X_MAILBOX_INT_VEC));    }/********************************************************************************* sysMailboxDisable - disable the mailbox interrupt** This routine disables the mailbox interrupt.** NOTE: The mailbox interrupt is DEC2155X_MAILBOX_INT_VEC.** RETURNS: OK, always.** SEE ALSO: sysMailboxConnect(), sysMailboxEnable()*/STATUS sysMailboxDisable    (    char *mailboxAdrs           /* address of mailbox (ignored) */    )    {    int bit;    /* calculate the bit in the register */    bit = DEC2155X_MAILBOX_INT_VEC - DEC2155X_DOORBELL0_INT_VEC;    /*     * clear any pending interrupt by writing a one to the proper bit in the     * the Secondary Clear IRQ Register     */    sysPciOutWord (DEC2155X_CSR_ADRS(DEC2155X_CSR_SEC_CLR_IRQ),                   (UINT16)(1 << bit));    /* disable the interrupt */    return (sysDec2155xIntDisable (DEC2155X_MAILBOX_INT_VEC));    }/********************************************************************************* sysDec2155xErrClr - Dec2155x Error Clear routine** This is the Error clear routine for the Dec21554x PCI to PCI Bridge. The* following error bits are cleared:** Secondary Status Register:* Data Parity Detected* Signaled Target Abort* Received Target Abort* Received Master Abort* Signaled System Error* Detected Parity Error** Primary Status Register:* Received Master Abort** Chip Status Register:* Upstream Delayed Transaction Master Timeout* Upstream Delayed Read Transaction Discarded* Upstream Delayed Write Transaction Discarded* Upstream Posted Write Data Discarded** RETURNS: N/A*/void sysDec2155xErrClr (void)    {    DEC2155X_CFG_WR_WORD(PCI_CFG_STATUS, DEC2155X_CFG_STS_ERR_CLR);    DEC2155X_CFG_WR_WORD(PCI_CFG_STATUS + DEC2155X_PRI_FROM_SEC_OFFSET,                         DEC2155X_CFG_STS_RCVD_MSTR_ABT);    /* need to use insert routine due to reserved bits in register */    DEC2155X_CFG_INSERT_WORD(DEC2155X_CFG_CHP_STATUS,                             DEC2155X_CFG_CHP_STS_ERR_CLR,                             DEC2155X_CFG_CHP_STS_ERR_CLR);    }/********************************************************************************* sysDec2155xIntr - Dec2155x (Drawbridge) PCI-to-PCI interrupt handler** This is the interrupt handler for the Dec2155x PCI-to-PCI Bridge.  It is* connected to the single Dec2155x interrupt from the interrupt controller and* examines the Dec2155x chip to determine the interrupt number of the interrupt* source. Having obtained the interrupt number, this routine then indexes into* the system vector table and dispatches the specified interrupt handling* routine(s).** NOTE: The Dec2155x does not present a vector number. Each interrupt source* within the chip is examined to determine the interrupt source and* a logical interrupt vector number is synthesized as a result of that* search. The search order is as follows:** Power Management Transition to D0 (due to response time requirements)* Secondary doorbell interrupts* I20 interrupt* Upstream Memory 2 BAR page crossing interrupts.** This handler will clear all interrupt sources except the Upstream Memory* 2 BAR page crossing interrupts. Since there are 64 of these interrupts, it* is left to the page crossing handler to clear the interrupts it services.* This policy eliminates races in determining which page crossing interrupts* were presented in time for the handler to see them vs. those that arrived too* late for processing. The only exception to this policy in the case of a page* crossing interrupt arriving without a registered handler. This is a* programming error, but to protect itself, the interrupt handler will clear* any pending page crossing interrupts before reporting the un-handled* interrupt.** RETURNS: N/A*/void sysDec2155xIntr (void)    {    UINT32		vecNum = 0;    UINT16		status;    UINT16              mask;    UINT32		intMskAdrs;    UINT32		intClrAdrs;    INT_HANDLER_DESC *  currHandler;    /*     * Handle pending interrupts in order of highest priority.     *     * For each interrupt source, check for interrupt asserted, clear the     * interrupt in the Dec2155x, and dispatch to all associated ISRs.     */    /* check for power management event */    intMskAdrs = DEC2155X_CSR_ADRS(DEC2155X_CSR_CHP_SET_IRQ_MSK);    intClrAdrs = DEC2155X_CSR_ADRS(DEC2155X_CSR_CHP_STS_CSR);    /*     * Dec2155x mask registers are constructed such that a 0 allows the     * interrupt and a 1 masks out the interrupt. To convert the masked     * to an interrupt enabled array, it must be inverted before use.     */    mask = ~(sysPciInWord (intMskAdrs));    /*     * To clear a Dec2155x interrupt, a 1 is written to the bit to be     * cleared. The zeroes in the remaining bit positions are ignored. By     * isolating the proper bit during the status read, we set up the     * value to be used when clearing the interrupt.     */        status = sysPciInWord (intClrAdrs) & DEC2155X_CHPCSR_PM_D0;    if (status & mask)        {        /* clear interrupt source */        sysPciOutWordConfirm (intClrAdrs, status);        vecNum = DEC2155X_PWR_MGMT_INT_VEC;        if ((currHandler = sysIntTbl[vecNum]) == NULL)            logMsg ("uninitialized Dec2155x interrupt %d\n", vecNum,                     0,0,0,0,0);        else            {            while (currHandler != NULL)                {                currHandler->vec (currHandler->arg);                currHandler = currHandler->next;                }            }        }    /* check for secondary doorbell interrupts */    intMskAdrs = DEC2155X_CSR_ADRS(DEC2155X_CSR_SEC_SET_IRQ_MSK);    intClrAdrs = DEC2155X_CSR_ADRS(DEC2155X_CSR_SEC_CLR_IRQ);    mask = ~(sysPciInWord (intMskAdrs));    status = sysPciInWord (intClrAdrs);    /* isolate and save the active and enabled bits */    if (status &= mask)        {        /* clear interrupt source(s) */        sysPciOutWordConfirm (intClrAdrs, status);        /* start search at LSB */        mask = 1;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩高清影院| 亚洲电影第三页| 亚洲成年人网站在线观看| 久久91精品久久久久久秒播| 99re6这里只有精品视频在线观看| 日韩一级二级三级| 亚洲黄色尤物视频| 成人午夜电影久久影院| 欧美成人猛片aaaaaaa| 亚洲线精品一区二区三区八戒| 国产精品888| 精品毛片乱码1区2区3区| 亚洲一区在线观看视频| av一区二区三区四区| 2欧美一区二区三区在线观看视频| 日韩精品1区2区3区| 欧美日韩日日夜夜| 性感美女极品91精品| 在线精品亚洲一区二区不卡| 一区二区中文视频| 99精品久久只有精品| 久久久精品tv| 成人禁用看黄a在线| 久久精品亚洲精品国产欧美| 韩国v欧美v亚洲v日本v| 精品国产成人系列| 国产在线日韩欧美| ww久久中文字幕| 国产一区二区精品久久99| 欧美变态tickle挠乳网站| 久久91精品久久久久久秒播| 欧美va在线播放| 国产精品白丝jk黑袜喷水| 欧美国产一区在线| 成人小视频免费在线观看| 国产精品美女久久久久久久网站| 成人高清在线视频| 亚洲激情校园春色| 91精品国产色综合久久久蜜香臀| 日本欧美大码aⅴ在线播放| 日韩一区二区在线观看| 国内精品免费**视频| 欧美国产一区视频在线观看| 91原创在线视频| 一区二区在线看| 555夜色666亚洲国产免| 老色鬼精品视频在线观看播放| 2021中文字幕一区亚洲| 成人激情图片网| 亚洲一二三级电影| 欧美精品一区二区蜜臀亚洲| 成人午夜在线免费| 亚洲第一成人在线| 久久综合网色—综合色88| 懂色av一区二区夜夜嗨| 亚洲综合激情另类小说区| 日韩三级高清在线| av亚洲精华国产精华精华| 亚洲成人动漫av| 久久嫩草精品久久久久| 99re8在线精品视频免费播放| 香蕉成人啪国产精品视频综合网| 亚洲精品在线观看网站| 色婷婷综合视频在线观看| 日韩国产一二三区| 国产精品国产精品国产专区不片| 91国产福利在线| 激情文学综合网| 亚洲午夜精品久久久久久久久| 精品区一区二区| 欧美偷拍一区二区| 国产成人av电影在线| 五月激情六月综合| 亚洲人成影院在线观看| 精品奇米国产一区二区三区| 一本色道综合亚洲| 国产精品一二三四区| 午夜av一区二区| 中文文精品字幕一区二区| 91精品婷婷国产综合久久性色| 成人app在线观看| 日本在线不卡视频| 亚洲你懂的在线视频| 国产亚洲1区2区3区| 91精品在线观看入口| 在线国产电影不卡| 粉嫩av亚洲一区二区图片| 久久精品国产999大香线蕉| 伊人色综合久久天天| 国产精品国产精品国产专区不蜜 | 亚洲午夜激情网页| 国产精品久久久99| 国产亚洲一区二区三区在线观看 | 精品捆绑美女sm三区| 欧美三级欧美一级| 91麻豆国产自产在线观看| 国产成人在线观看免费网站| 男人的天堂亚洲一区| 亚洲午夜视频在线| 亚洲一区二区三区国产| 亚洲视频1区2区| 中文字幕一区二区三区蜜月| 国产欧美视频一区二区| 国产欧美一区二区三区在线看蜜臀| 日韩欧美激情四射| 欧美大片免费久久精品三p | 国模冰冰炮一区二区| 免费在线观看日韩欧美| 日韩成人精品在线| 亚洲成人1区2区| 视频一区在线播放| 亚洲国产精品视频| 亚洲成人午夜电影| 亚洲18色成人| 免费观看日韩av| 久久99精品网久久| 韩国在线一区二区| 国产99久久久久久免费看农村| 久久www免费人成看片高清| 九色porny丨国产精品| 国产乱码精品1区2区3区| 国产aⅴ综合色| 一本到三区不卡视频| 欧美日韩中文精品| 日韩欧美国产一区二区在线播放| 日韩欧美一区中文| 国产午夜精品福利| 中文字幕一区二区日韩精品绯色| 亚洲美女在线国产| 视频一区二区三区在线| 久久精品国产色蜜蜜麻豆| 风流少妇一区二区| 色久优优欧美色久优优| 91麻豆精品91久久久久久清纯 | 亚洲女与黑人做爰| 图片区小说区区亚洲影院| 麻豆精品在线播放| 懂色av中文一区二区三区| 色999日韩国产欧美一区二区| 欧美日韩免费观看一区二区三区| 欧美一级艳片视频免费观看| 日本一区二区三区国色天香 | 国产精品白丝在线| 五月天久久比比资源色| 国产成人免费视频| 欧美男人的天堂一二区| 国产午夜精品久久久久久免费视| 一区二区三区精密机械公司| 久久精品噜噜噜成人88aⅴ| 成+人+亚洲+综合天堂| 欧美丰满一区二区免费视频| 国产欧美va欧美不卡在线| 天天综合日日夜夜精品| 国产精品一区二区不卡| 欧美曰成人黄网| 欧美高清在线视频| 日本不卡一二三区黄网| av在线不卡免费看| 日韩欧美高清在线| 亚洲图片一区二区| 福利电影一区二区| 欧美一卡二卡三卡| 一区二区三区在线免费观看| 极品销魂美女一区二区三区| 91精品福利视频| 国产欧美一区二区精品忘忧草| 午夜a成v人精品| 91福利区一区二区三区| 国产拍揄自揄精品视频麻豆 | 亚洲天堂免费看| 国产精品123| 日韩午夜激情电影| 午夜精品久久久久影视| av电影在线观看完整版一区二区| 日韩免费在线观看| 亚洲gay无套男同| 欧美艳星brazzers| 一色屋精品亚洲香蕉网站| 国产99久久久国产精品潘金 | 成人午夜视频在线| 精品国产一区二区三区久久影院| 午夜久久久久久电影| 在线国产亚洲欧美| 亚洲日本va午夜在线影院| 成人免费视频视频| 国产视频在线观看一区二区三区| 久久国产三级精品| 欧美一区二区视频网站| 香蕉久久一区二区不卡无毒影院 | 精品综合免费视频观看| 91精品久久久久久久久99蜜臂| 一区二区三区四区高清精品免费观看 | 日韩精品久久久久久| 欧美日韩亚洲综合一区| 亚洲一区免费视频| 日本精品一区二区三区四区的功能| 国产精品人妖ts系列视频| 成人国产免费视频| 亚洲人成网站在线| 色综合天天综合给合国产|