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

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

?? dec2155xcpci.c

?? VxWorks下 Cpv3060的BSP源代碼
?? C
?? 第 1 頁 / 共 4 頁
字號:
#ifndef DEC2155X_CFG_WR_BYTE#   define DEC2155X_CFG_WR_BYTE(offset, result) \           pciConfigOutByte (0, DEC2155X_PCI_DEV_NUMBER, 0, (offset), \                             (UINT8)(result))#endif#ifndef DEC2155X_CFG_INSERT_LONG#   define DEC2155X_CFG_INSERT_LONG(offset, mask, data) \           pciConfigModifyLong (0, DEC2155X_PCI_DEV_NUMBER, 0, (offset), \                                (mask), (data))#endif#ifndef DEC2155X_CFG_INSERT_WORD#   define DEC2155X_CFG_INSERT_WORD(offset, mask, data) \           pciConfigModifyWord (0, DEC2155X_PCI_DEV_NUMBER, 0, (offset), \                                (mask), (data))#endif#ifndef DEC2155X_CFG_INSERT_BYTE#   define DEC2155X_CFG_INSERT_BYTE(offset, mask, data) \           pciConfigModifyByte (0, DEC2155X_PCI_DEV_NUMBER, 0, (offset), \	                        (mask), (data))#endif#ifndef DEC2155X_PCI_INSERT_LONG#   define DEC2155X_PCI_INSERT_LONG(offset, mask, data) \           PCI_INSERT_LONG(DEC2155X_CSR_ADRS(offset), (mask), (data))#endif#ifndef DEC2155X_PCI_INSERT_WORD#   define DEC2155X_PCI_INSERT_WORD(offset, mask, data) \           PCI_INSERT_WORD(DEC2155X_CSR_ADRS(offset), (mask), (data))#endif#ifndef DEC2155X_PCI_INSERT_BYTE#   define DEC2155X_PCI_INSERT_BYTE(offset, mask, data) \           PCI_INSERT_BYTE(DEC2155X_CSR_ADRS(offset), (mask), (data))#endif/********************************************************************************* sysDec2155xInit - initialize registers of the Dec2155x (Drawbridge) chip** This routine initializes registers of the DEC 2155x PCI-to-PCI bridge and maps* access to the Compact PCI bus.** RETURNS: OK on success, else ERROR (Dec2155x not in correct state).*/STATUS sysDec2155xInit (void)    {    UINT16 priLockOut;    UINT16 mstrEn;    /* configure the primary and secondary SERR disables */    DEC2155X_CFG_INSERT_BYTE(DEC2155X_CFG_PRI_SERR_DISABLES,                             (UINT8)~DEC2155X_SERR_RSV_MSK,                             DEC2155X_PRI_SERR_VAL);    DEC2155X_CFG_INSERT_BYTE(DEC2155X_CFG_SEC_SERR_DISABLES,                             (UINT8)~DEC2155X_SERR_RSV_MSK,                             DEC2155X_SEC_SERR_VAL);    /* configure downstream translation base registers */    DEC2155X_CFG_INSERT_LONG(DEC2155X_CFG_DS_MEM0_TB,                             ~DEC2155X_MEM_TB_RSV_MSK,                             DEC2155X_CSR_AND_DS_MEM0_TRANS);    DEC2155X_CFG_INSERT_LONG(DEC2155X_CFG_DS_IO_OR_MEM1_TB,                             ~DEC2155X_IO_OR_MEM_TB_RSV_MSK,                             DEC2155X_DS_IO_OR_MEM1_TRANS);    DEC2155X_CFG_INSERT_LONG(DEC2155X_CFG_DS_MEM2_TB,                             ~DEC2155X_MEM_TB_RSV_MSK,                             DEC2155X_DS_MEM2_TRANS);    DEC2155X_CFG_INSERT_LONG(DEC2155X_CFG_DS_MEM3_TB,                             ~DEC2155X_MEM_TB_RSV_MSK,                             DEC2155X_DS_MEM3_TRANS);    /* configure upstream translation base values */    DEC2155X_CFG_INSERT_LONG(DEC2155X_CFG_US_IO_OR_MEM0_TB,                             ~DEC2155X_IO_OR_MEM_TB_RSV_MSK,                             DEC2155X_US_IO_OR_MEM0_TRANS);    DEC2155X_CFG_INSERT_LONG(DEC2155X_CFG_US_MEM1_TB,                             ~DEC2155X_MEM_TB_RSV_MSK,                             DEC2155X_US_MEM1_TRANS);    /* get current state of Primary Lock-out and Master Enable bits */    DEC2155X_CFG_RD_WORD(DEC2155X_CFG_CHP_CTRL0, &priLockOut);    priLockOut &= DEC2155X_CC0_PRI_ACCESS_LKOUT;    DEC2155X_CFG_RD_WORD(PCI_CFG_COMMAND, &mstrEn);    mstrEn &= PCI_CMD_MASTER_ENABLE;    /* verify ROM boot phase */    if (!mstrEn)        {        /* in ROM boot phase, OK to continue */        #ifdef DEC2155X_SETUP_FROM_SROM        /*         * primary lock-out bit should not be set if ROM contents are OK.         * if primary lock-out bit is set, indicate error.         */        if (priLockOut)            sysDec2155xInitFail = TRUE;#else /* !DEC2155X_SETUP_FROM_SROM */               /*         * primary lock-out bit should be set if ROM contents are OK.         * if primary lock-out bit is not set, indicate error.         */        if (!priLockOut)            sysDec2155xInitFail = TRUE;        else            {            /* configure primary class register */            DEC2155X_CFG_WR_BYTE((PCI_CFG_PROGRAMMING_IF +                                 DEC2155X_PRI_FROM_SEC_OFFSET),                                 DEC2155X_PRI_PRG_IF_VAL);            DEC2155X_CFG_WR_BYTE((PCI_CFG_SUBCLASS +                                 DEC2155X_PRI_FROM_SEC_OFFSET),                                 DEC2155X_PRI_SUBCLASS_VAL);            DEC2155X_CFG_WR_BYTE((PCI_CFG_CLASS +                                 DEC2155X_PRI_FROM_SEC_OFFSET),                                 DEC2155X_PRI_CLASS_VAL);            /* configure bist register (shared) */            DEC2155X_CFG_INSERT_BYTE(PCI_CFG_BIST, ~DEC2155X_BIST_RSV,                                     DEC2155X_BIST_VAL);                        /* configure the downstream windows */            DEC2155X_CFG_INSERT_LONG(DEC2155X_CFG_DS_MEM0_SETUP,                                     ~DEC2155X_MEM_SETUP_RSV_MSK,                                     DEC2155X_CSR_AND_DS_MEM0_SETUP);            DEC2155X_CFG_INSERT_LONG(DEC2155X_CFG_DS_IO_OR_MEM1_SETUP,                                     ~DEC2155X_IO_OR_MEM_SETUP_RSV_MSK,                                     DEC2155X_DS_IO_OR_MEM1_SETUP);            DEC2155X_CFG_INSERT_LONG(DEC2155X_CFG_DS_MEM2_SETUP,                                     ~DEC2155X_MEM_SETUP_RSV_MSK,                                     DEC2155X_DS_MEM2_SETUP);            DEC2155X_CFG_INSERT_LONG(DEC2155X_CFG_DS_MEM3_SETUP,                                     ~DEC2155X_MEM_SETUP_RSV_MSK,                                     DEC2155X_DS_MEM3_SETUP);	    DEC2155X_CFG_WR_LONG(DEC2155X_CFG_UPR32_BITS_DS_MEM3_SU,				 DEC2155X_UPR32_DS_MEM3_SETUP);            /* configure subsystem and vendor id (shared) */            DEC2155X_CFG_WR_WORD(PCI_CFG_SUB_VENDER_ID,                                 DEC2155X_SUB_VNDR_ID_VAL);            DEC2155X_CFG_WR_WORD(PCI_CFG_SUB_SYSTEM_ID,                                 DEC2155X_SUB_SYS_ID_VAL);            /* configure the primary max latency and minimum grant registers */            DEC2155X_CFG_WR_BYTE(PCI_CFG_MAX_LATENCY +                                  DEC2155X_PRI_FROM_SEC_OFFSET,                                 DEC2155X_MAX_LAT_VAL);            DEC2155X_CFG_WR_BYTE(PCI_CFG_MIN_GRANT +                                 DEC2155X_PRI_FROM_SEC_OFFSET,                                 DEC2155X_MIN_GNT_VAL);            /* configure chip ctrl 0 without altering primary lock-out */            DEC2155X_CFG_INSERT_WORD(DEC2155X_CFG_CHP_CTRL0,                                     ~DEC2155X_CC0_PRI_ACCESS_LKOUT,                                     DEC2155X_CHP_CTRL0_VAL);            /* configure chip control 1 */            DEC2155X_CFG_WR_WORD(DEC2155X_CFG_CHP_CTRL1,                                 DEC2155X_CHP_CTRL1_VAL);            /*             * set secondary master access enable so we're ready when the host             * sets the I/O and/or Memory access enables on the primary side             */            DEC2155X_CFG_INSERT_WORD(PCI_CFG_COMMAND, PCI_CMD_MASTER_ENABLE,                                     PCI_CMD_MASTER_ENABLE);            /* allow host access from the primary side */            DEC2155X_CFG_INSERT_WORD(DEC2155X_CFG_CHP_CTRL0,                                     DEC2155X_CC0_PRI_ACCESS_LKOUT,                                     DEC2155X_CHP_CTRL0_VAL);            /* configure secondary class register */            DEC2155X_CFG_WR_BYTE(PCI_CFG_PROGRAMMING_IF,                                  DEC2155X_SEC_PRG_IF_VAL);            DEC2155X_CFG_WR_BYTE(PCI_CFG_SUBCLASS,                                 DEC2155X_SEC_SUBCLASS_VAL);            DEC2155X_CFG_WR_BYTE(PCI_CFG_CLASS,                                 DEC2155X_SEC_CLASS_VAL);            /* configure upstream windows */            DEC2155X_CFG_INSERT_LONG(DEC2155X_CFG_US_IO_OR_MEM0_SETUP,                                     ~DEC2155X_IO_OR_MEM_SETUP_RSV_MSK,                                     DEC2155X_US_IO_OR_MEM0_SETUP);            DEC2155X_CFG_INSERT_LONG(DEC2155X_CFG_US_MEM1_SETUP,                                     ~DEC2155X_MEM_SETUP_RSV_MSK,                                     DEC2155X_US_MEM1_SETUP);            /* configure secondary max latency and minimum grant */            DEC2155X_CFG_WR_BYTE(PCI_CFG_MAX_LATENCY, DEC2155X_MAX_LAT_VAL);            DEC2155X_CFG_WR_BYTE(PCI_CFG_MIN_GRANT, DEC2155X_MIN_GNT_VAL);	    /* configure secondary (local) bus arbiter */	    DEC2155X_CFG_INSERT_WORD(DEC2155X_CFG_ARB_CTRL,                                     DEC2155X_ARB_CTRL_VAL,				     DEC2155X_ARB_CTRL_MSK);            }#endif /* DEC2155X_SETUP_FROM_SROM */        }    /* return status based on error flag */    if (sysDec2155xInitFail)        return (ERROR);    else        return (OK);    }/********************************************************************************* sysDec2155xInit2 - perform phase 2 Dec2155x initialization** This routine performs the initialization that must be performed after PCI* auto-configuration.** RETURNS: N/A*/void sysDec2155xInit2 (void)    {    UINT8  intLine;    /* read the Dec2155x CSR Memory BAR, convert to CPU view and save */    DEC2155X_CFG_RD_LONG(DEC2155X_CFG_SEC_CSR_MEM_BAR, &sysDec2155xCsrAdrs);    sysDec2155xCsrAdrs = TRANSLATE((sysDec2155xCsrAdrs & PCI_MEMBASE_MASK),                                   PCI_MSTR_MEMIO_BUS, PCI_MSTR_MEMIO_LOCAL);    /* disable and clear all in-bound doorbell interrupts. */    sysPciOutWord (DEC2155X_CSR_ADRS(DEC2155X_CSR_SEC_SET_IRQ_MSK),                   (UINT16)(0xffff));    sysPciOutWord (DEC2155X_CSR_ADRS(DEC2155X_CSR_SEC_CLR_IRQ),                   (UINT16)(0xffff));    /* disable and clear power state interrupt. */    sysPciOutWord (DEC2155X_CSR_ADRS(DEC2155X_CSR_CHP_SET_IRQ_MSK),                   DEC2155X_CHPCSR_PM_D0);    sysPciOutWord (DEC2155X_CSR_ADRS(DEC2155X_CSR_CHP_STS_CSR),                   DEC2155X_CHPCSR_PM_D0);    /* disable I2O in-bound list empty interrupt. */    DEC2155X_PCI_INSERT_LONG(DEC2155X_CSR_I2O_IBND_PST_LST_MSK,                             DEC2155X_I2O_PST_LST_MSK,                             DEC2155X_I2O_PST_LST_MSK);    /* disable and clear Upstream memory 2 page crossing interrupts. */    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));    sysPciOutLong (DEC2155X_CSR_ADRS(DEC2155X_CSR_US_PG_BND_IRQ0),                   (UINT32)(0xffffffff));    sysPciOutLong (DEC2155X_CSR_ADRS(DEC2155X_CSR_US_PG_BND_IRQ1),                   (UINT32)(0xffffffff));    /* connect the Dec2155X interrupt handler to the proper CPU interrupt */    DEC2155X_CFG_RD_BYTE(PCI_CFG_DEV_INT_LINE, &intLine);    intConnect (INUM_TO_IVEC((UINT32)intLine), sysDec2155xIntr, 0);    intEnable (intLine);    }/********************************************************************************* sysIntDisable - disable a bus interrupt level (vector)** This routine disables reception of a specified Compact PCI interrupt level.** Since Compact PCI interrupts are routed directly to the interrupt controller,* this function simply passes the caller's parameter through to the standard* intDisable function (which will eventually end up at the interrupt* controller's intDisable function).** RETURNS: The results of intDisable.** SEE ALSO: sysIntEnable()*/STATUS sysIntDisable    (    int intLevel        /* interrupt level (vector) */    )    {    return (intDisable (intLevel) );    }/********************************************************************************* sysIntEnable - enable a Compact PCI bus interrupt level (vector)** This routine enables reception of a specified Compact PCI interrupt level.** Since Compact PCI interrupts are routed directly to the interrupt controller,* this function simply passes the caller's parameter through to the standard* intEnable function (which will eventually end up at the interrupt controller's* intEnable function).** RETURNS: The results of intEnable.** SEE ALSO: sysIntDisable()*/STATUS sysIntEnable    (    int intLevel        /* interrupt level (vector) */    )    {    return (intEnable (intLevel) );    }/********************************************************************************* sysBusIntAck - acknowledge a bus interrupt** This routine acknowledges a specified Compact PCI bus interrupt level.** NOTE: This routine is included for BSP compliance only.  Since Compact* PCI bus interrupts are routed directly to the interrupt controller, interrupts* are re-enabled in the interrupt controller's handler and this routine is a* no-op.** RETURNS: NULL.** SEE ALSO: sysBusIntGen()*/int sysBusIntAck    (    int intLevel        /* interrupt level to acknowledge */    )    {    return (NULL);    }/********************************************************************************* sysBusIntGen - generate a bus interrupt** This routine generates a Compact PCI backpanel interrupt by setting one of* the 16 bits in the 2155x Primary Set IRQ register. The bit is set regardless* of the current state of the bit and whether the interrupt has been enabled by* the host processor. Because the Compact PCI bus does not have interrupt* levels or vectors, the caller's interrupt level parameter is ignored and the* caller's vector number is used to select the bit to set in the Primary Set IRQ* Register. The symbol DEC2155X_DOORBELL0_INT_VEC corresponds to bit 0 (LSB)* and the remaining bits are mapped in sequence.** RETURNS: OK, or ERROR if <vector> is out of range.** SEE ALSO: sysBusIntAck()*/STATUS sysBusIntGen    (    int level,          /* interrupt level to generate (not used) */    int vector          /* interrupt vector for interrupt */    )    {    int bit;    /* make sure the interrupt vector is valid */    if ( (vector > DEC2155X_DOORBELL15_INT_VEC) ||         (vector < DEC2155X_DOORBELL0_INT_VEC) )        return (ERROR);    /* calculate the bit in the Primary Set IRQ Register */    bit = vector - DEC2155X_DOORBELL0_INT_VEC;    /* set the correct bit in the Primary Set IRQ Register */    sysPciOutWord (DEC2155X_CSR_ADRS(DEC2155X_CSR_PRI_SET_IRQ),                   (UINT16)(1 << bit));    return (OK);

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产夜色精品一区二区av| 亚洲精品在线免费观看视频| 九色porny丨国产精品| 日韩福利电影在线| 亚洲电影激情视频网站| 亚洲国产成人高清精品| 一区二区欧美视频| 五月天精品一区二区三区| 偷拍一区二区三区| 蜜桃视频在线一区| 极品少妇xxxx偷拍精品少妇| 久久99久久99| 国产99久久久精品| av福利精品导航| 一本到不卡免费一区二区| 欧美在线色视频| 在线国产亚洲欧美| 日韩欧美一级精品久久| 精品久久久久久最新网址| 久久日韩粉嫩一区二区三区| 久久久精品人体av艺术| 国产精品美女久久久久久| 成人欧美一区二区三区视频网页 | 欧美精品三级日韩久久| 欧美日韩在线综合| 欧美成人vr18sexvr| 欧美激情一区二区在线| 一区二区三区中文免费| 奇米色一区二区| 国产成+人+日韩+欧美+亚洲| av电影一区二区| 777午夜精品视频在线播放| 久久九九久久九九| 1000精品久久久久久久久| 亚洲国产精品自拍| 国产成人精品影院| 欧美日韩五月天| 亚洲国产精品精华液2区45| 亚洲综合免费观看高清完整版| 日韩国产精品大片| 99久久精品免费精品国产| 337p亚洲精品色噜噜狠狠| 久久久久久**毛片大全| 亚洲精品大片www| 韩国精品主播一区二区在线观看| av电影在线不卡| 欧美一区二区免费视频| 成人欧美一区二区三区在线播放| 久久激五月天综合精品| 91国在线观看| 久久欧美一区二区| 日本三级韩国三级欧美三级| 91啦中文在线观看| 久久一留热品黄| 日韩精品一级中文字幕精品视频免费观看 | 91视频在线看| 久久综合中文字幕| 五月婷婷色综合| 欧美中文字幕一区二区三区亚洲 | 99久久免费精品高清特色大片| 51精品国自产在线| 亚洲综合网站在线观看| av一区二区三区四区| 久久免费美女视频| 久久国产精品99精品国产 | 蜜桃久久久久久久| 91九色最新地址| 中文字幕亚洲综合久久菠萝蜜| 久久91精品国产91久久小草| 欧美人与禽zozo性伦| 亚洲精品久久7777| 97久久精品人人做人人爽| 国产精品伦理在线| 岛国精品在线播放| 国产日韩欧美激情| 国产mv日韩mv欧美| 国产精品久久国产精麻豆99网站| 国产精品一区2区| 久久久久久久久久久电影| 国产一区二区日韩精品| 久久久久久黄色| 国内精品自线一区二区三区视频| 欧美日韩黄色一区二区| 亚洲国产一区二区三区| 欧美日韩国产美女| 午夜免费久久看| 欧美一区国产二区| 丝袜美腿亚洲色图| 欧美videos中文字幕| 国产精品一区久久久久| 国产精品毛片久久久久久久| 91视频.com| 五月天丁香久久| 欧美成人aa大片| 成人听书哪个软件好| 中文字幕一区二区不卡 | 水野朝阳av一区二区三区| 制服丝袜一区二区三区| 久久国产成人午夜av影院| 久久青草国产手机看片福利盒子 | 欧美少妇bbb| 美国毛片一区二区三区| 国产欧美综合在线观看第十页| 波多野结衣在线一区| 亚洲一区免费在线观看| 欧美一级黄色片| 国产福利一区二区| 亚洲精品网站在线观看| 欧美一卡二卡在线观看| 高清国产一区二区三区| 亚洲精品国产a久久久久久| 日韩欧美一区在线| www.亚洲激情.com| 蜜桃av一区二区在线观看| 国产人妖乱国产精品人妖| 在线精品视频免费观看| 国产一区二区三区av电影| 亚洲在线观看免费视频| 久久中文字幕电影| 欧美日韩在线电影| 成人国产精品免费网站| 午夜精品久久久久久不卡8050| 国产视频在线观看一区二区三区| 欧美色大人视频| 成人av在线网站| 精久久久久久久久久久| 亚洲第一综合色| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆 | jlzzjlzz国产精品久久| 日本aⅴ免费视频一区二区三区| 中文字幕日本不卡| 久久久久久久久久看片| 欧美一区欧美二区| 欧美三级电影在线看| 懂色av一区二区夜夜嗨| 男人的j进女人的j一区| 亚洲午夜电影在线观看| 国产精品乱码一区二区三区软件| 6080日韩午夜伦伦午夜伦| 欧洲av一区二区嗯嗯嗯啊| 丁香桃色午夜亚洲一区二区三区| 热久久免费视频| 丝袜a∨在线一区二区三区不卡| 亚洲精品一二三| 亚洲男人电影天堂| 亚洲国产成人午夜在线一区| 久久影院午夜片一区| 欧美一区二区三区爱爱| 欧美在线观看视频在线| 97久久精品人人做人人爽 | 一区二区三区精品在线| 国产精品久久毛片| 欧美激情一区不卡| 欧美国产综合色视频| 久久免费电影网| 欧美精品一区二区三区高清aⅴ| 日韩美女在线视频 | 97se狠狠狠综合亚洲狠狠| 国产成人av资源| 成人网在线播放| 一本到三区不卡视频| 91福利视频在线| 欧美日韩综合在线| 在线成人午夜影院| 91精品国产综合久久久久久久久久| 欧美日韩国产成人在线免费| 欧美视频自拍偷拍| 欧美日韩亚洲综合在线 | 在线免费观看日本欧美| 欧美亚洲动漫制服丝袜| 欧美日韩国产首页| 91精品国产一区二区三区香蕉| 日韩三级视频在线看| 亚洲精品在线免费播放| 国产精品热久久久久夜色精品三区| 一区二区高清在线| 日韩福利电影在线| 中文字幕欧美三区| 久久你懂得1024| 亚洲视频香蕉人妖| 三级不卡在线观看| 国产成人精品免费一区二区| 色狠狠综合天天综合综合| 欧美另类一区二区三区| 久久久久久久综合狠狠综合| 亚洲人吸女人奶水| 日本亚洲欧美天堂免费| 国产成人免费视频| 欧美午夜精品一区二区蜜桃| 日韩精品一区二区三区swag| 国产精品免费看片| 日韩国产欧美视频| 不卡av在线网| 精品国产免费一区二区三区香蕉| 国产精品麻豆视频| 九一九一国产精品| 91国偷自产一区二区三区观看| 欧美成人aa大片| 亚洲成av人片在www色猫咪| 国产99久久久国产精品潘金|