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

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

?? ravenmpic.c

?? WINDRIVER MCP750 BSP
?? C
?? 第 1 頁 / 共 2 頁
字號:
    }/********************************************************************************* getMpicVecOffset - get the vector offset value of an MPIC register ** This routine calculates the appropriate MPIC register offset based on the* specified MPIC interrupt level.** RETURNS: MPIC register offset or zero if not a supported level.*/ LOCAL int getMpicVecOffset    (    int		intLevel    )     {    int 	offset = 0;    /* check for external interrupt level */    if ((intLevel >= EXT_INTERRUPT_BASE) && (intLevel < TIMER_INTERRUPT_BASE))        {        offset = intLevel - EXT_INTERRUPT_BASE;        offset = MPIC_EXT_SRC0_VEC_PRI_REG + ( offset * REG_OFFSET * 2 );        }     /* check for a timer interrupt level */    if ((intLevel >= TIMER_INTERRUPT_BASE) && (intLevel < IPI_INTERRUPT_BASE))        {        offset = intLevel - TIMER_INTERRUPT_BASE;        offset =  MPIC_TIMER0_VEC_PRI_REG + ( offset * REG_OFFSET * 4 );        }     /* check for an IPI interrupt level */    if ((intLevel >= IPI_INTERRUPT_BASE) && (intLevel < ERR_INTERRUPT_BASE))        {        offset = intLevel - IPI_INTERRUPT_BASE;        offset =  MPIC_IPI0_VEC_PRI_REG + ( offset * REG_OFFSET );        }    /* check for the Raven internal error interrupt */    if (intLevel == ERR_INTERRUPT_BASE )        {        offset = MPIC_ERR_VEC_PRI_REG;        }    return (offset);    }/********************************************************************************* sysIbcInit - Initialize the IBC** This routine initializes the non-PCI Header configuration registers of the* IBC within the W83C553 PIB.* This is also compatible for the PBC within the VT82C586B PIPC.** RETURNS: OK always*/STATUS sysIbcInit (void)    {    UCHAR	intVec;    UCHAR	temp;    /* Initialize the Interrupt Controller #1 */    IBC_BYTE_OUT (PIC_port1 (PIC1_BASE_ADR),0x11);        /* ICW1 */    IBC_BYTE_OUT (PIC_port2 (PIC1_BASE_ADR),sysVectorIRQ0); /* ICW2 */    IBC_BYTE_OUT (PIC_port2 (PIC1_BASE_ADR),0x04);	/* ICW3 */    IBC_BYTE_OUT (PIC_port2 (PIC1_BASE_ADR),0x01);	/* ICW4 */    /*     *	Mask interrupts IRQ 0, 1, and 3-7 by writing to OCW1 register     *	IRQ 2 is the cascade input     */    IBC_BYTE_OUT (PIC_IMASK (PIC1_BASE_ADR),0xfb);#ifdef CONFIG1_ISA_INT_TYPE    /* Make IRQ 5 level sensitive */    IBC_BYTE_OUT (SL82565_INT1_ELC, 0x20);#endif#ifdef CONFIG2_ISA_INT_TYPE    /* Make IRQ 3, 4, and 5 level sensitive */    IBC_BYTE_OUT (SL82565_INT1_ELC, 0x20 | 0x10 | 0x08);#endif    /* Initialize the Interrupt Controller #2 */    IBC_BYTE_OUT (PIC_port1 (PIC2_BASE_ADR),0x11);	/* ICW1 */    IBC_BYTE_OUT (PIC_port2 (PIC2_BASE_ADR),sysVectorIRQ0+8); /* ICW2 */    IBC_BYTE_OUT (PIC_port2 (PIC2_BASE_ADR),0x02);	/* ICW3 */    IBC_BYTE_OUT (PIC_port2 (PIC2_BASE_ADR),0x01);	/* ICW4 */    /* Mask interrupts IRQ 8-15 by writing to OCW1 register */    IBC_BYTE_OUT (PIC_IMASK (PIC2_BASE_ADR),0xff);#ifdef CONFIG1_SYS_REG_BMEFR    /*     * Note: Reworked MCP750s have ISA IRQ's 14 and 15 edge sensitive      * instead of level sensitive like the other PowerPlus boards.     */    if (EXTENDED_FEATURE_PRESENT(SYS_REG_BMEFR_ISA_REWORK))	{        /* Set up for IRQ 11, 10, and 9 level sensitivity */	temp = 0x08 | 0x04 | 0x02;	}    else	{	/* Set up for IRQ 15, 14, 11, 10, and 9 level sensitivity */	temp = 0x80 | 0x40 | 0x08 | 0x04 | 0x02;	}#endif /* CONFIG1_SYS_REG_BMEFR */#ifdef CONFIG2_ISA_INT_TYPE        /* Set up for IRQ 15, 11, 10, and 9 level sensitivity */        temp = 0x80 | 0x08 | 0x04 | 0x02;#endif /* CONFIG2_ISA_INT_TYPE */    /* Program the edge/level sensitivity */    IBC_BYTE_OUT (SL82565_INT2_ELC, temp);    /* Permanently turn off ISA refresh by never completing init steps */    IBC_BYTE_OUT (SL82565_TMR1_CMOD, 0x74);    /*	Perform the PCI Interrupt Ack cycle */    IBC_BYTE_IN (RAVEN_BASE_ADRS + 0x30, &intVec);    /* Perform the end of interrupt procedure */    sysIbcEndOfInt (15);    sysIbcIntLevelSet (16);    return (OK);    }/********************************************************************************* sysIbcIntEnable - enable a IBC interrupt level** This routine enables a specified IBC interrupt level.** RETURNS: N/A*/void sysIbcIntEnable    (    int intNum        /* interrupt level to enable */    )    {    if (intNum < 8)	{	sysPicMask1 &= ~(1 << intNum);	IBC_BYTE_OUT (PIC_IMASK (PIC1_BASE_ADR), sysPicMask1 | sysPicLevel1);	}    else	{	sysPicMask2 &= ~(1 << (intNum - 8));	IBC_BYTE_OUT (PIC_IMASK (PIC2_BASE_ADR), sysPicMask2 | sysPicLevel2);	}    }/********************************************************************************* sysIbcIntDisable - disable a IBC interrupt level** This routine disables a specified IBC interrupt level.** RETURNS: N/A*/void sysIbcIntDisable    (    int intNum        /* interrupt level to disable */    )    {    if (intNum < 8)	{	sysPicMask1 |= (1 << intNum);	IBC_BYTE_OUT (PIC_IMASK (PIC1_BASE_ADR), sysPicMask1 | sysPicLevel1 );	}    else	{	sysPicMask2 |= (1 << (intNum - 8));	IBC_BYTE_OUT (PIC_IMASK (PIC2_BASE_ADR), sysPicMask2 | sysPicLevel2);	}    }/******************************************************************************** sysIbcIntHandler - handler of the sl82565 IBC interrupt.** This routine handles interrupts originating from the W83C553 PIB ISA Bus* Controller (IBC).  This device implements the functional equivalent of two* cascaded 8259 PICs.** This routine is entered with CPU external interrupts enabled.** Because the ISA bus is only accessible via the PCI bus, this driver first* initiates a PCI interrupt acknowledge cycle to read the interrupt number* (vector) coming from the IBC.** This routine then processes the interrupt by calling all interrupt service* routines chained to the vector.** Finally, this routine re-arms the interrupt at the IBC by performing a* IBC EOI.** RETURNS: N/A*/void sysIbcIntHandler (void)    {    UCHAR		intNum;    INT_HANDLER_DESC *	currHandler;    static int		lvl7Int = 0;    static int		lvl15Int = 0;    IBC_BYTE_IN (RAVEN_BASE_ADRS + 0x30, &intNum);    if ((intNum & 7) == 7)	/* Special check for phantom interrupts */	{        if (sysIbcPhantomInt (&intNum, lvl7Int, lvl15Int) == TRUE)	return;			/* It's phantom so just return. */	}    /* Check for cascade from IBC2.  If so get IBC2 interrupt.  */    /*     * If cascade from IBC2 just EIO and return. It has been seen on      * certain PCI ISA bridge devices, that it is possible to see the     * cascade IRQ2.  In particular, this has been observed on the      * Winbond W83C553F on certain revs of the chip prior to Rev G.     */    if (intNum == 0x02)         {        sysIbcEndOfInt (intNum);        return;        }    /* Keep track of level 7 and 15 nesting for phantom interrupt handling */    if (intNum == 7)        lvl7Int++;    else if (intNum == 15)	lvl15Int++;    if ((currHandler = sysIntTbl [intNum]) == NULL)	{	logMsg ("uninitialized IBC interrupt level %x\r\n", intNum, 0,0,0,0,0);	}    else	{	/* Call EACH respective chained interrupt handler */	while (currHandler != NULL)	    {	    currHandler->vec (currHandler->arg);	    currHandler = currHandler->next;	    }	}    /* Keep track of level 7 and 15 nesting for phantom interrupt handling */    if (intNum == 7)        lvl7Int--;    else if (intNum == 15)	lvl15Int--;    /* Re-arm (enable) the interrupt on the IBC */    sysIbcEndOfInt (intNum);    }/********************************************************************************* sysIbcPhantomInt - Determine if IRQ interrupt number 7 or 15 is "phantom".* * This routine determines if an IRQ number of 7 or 15 is a phantom* interrupt.  According to Intel 82C59A-2 documentation, the IR (interrupt* request) inputs must remain high until after the falling edge of the first* INTA (interrupt acknowledge).  If the IR goes low before this, a DEFAULT* (phantom) IRQ7 will occur when the CPU acknowledges the interrupt.  Note* that if an IRQ7 is generated it may really be another interrupt, IRQ4 for* example.  IRQ 7 is associated  with the master 8259, IRQ 15 is associated * with the slave 8259.  This function should only be called if the * acknowledged IRQ number is 7 or 15 but does behave sanely if called with * other IRQ numbers.** As mentioned above, IRQ 7 is supposed to be associated with the master* 8259. However, it has been observed that a phantom IRQ 7 was caused by* an interrupt on the slave 8259. Thus, the algorithm now implemented is* to scan both the master and the slave 8259 in the correct priority order* (from highest to lowest: 0 1 8 9 10 11 12 13 14 15 3 4 5 6 7).** RETURNS: TRUE if phantom IRQ, *intNum unaltered.* FALSE if no phantom interrupt, *intNum is "real" IRQ number.*/LOCAL BOOL sysIbcPhantomInt    (    UCHAR *intNum,      /* interrupt number received on acknowledge */    int	  lvl7Int,	/* interrupt 7 nesting level */    int	  lvl15Int 	/* interrupt 15 nesting level */    )    {    UCHAR irqBit;    UINT  irqNum;    /* Read the master in-service register (ISR) */    IBC_BYTE_OUT (PIC_port1 (PIC1_BASE_ADR), PIC_OCW3_SEL + PIC_ISR_READ);    IBC_BYTE_IN (PIC_port1 (PIC1_BASE_ADR), &irqBit);    if (irqBit == 0)	{        /*	 * logMsg ("sysIbcPhantomInt: no interrupt in master\n", 	 *	  0,0,0,0,0,0);	 */	return (TRUE);	/* No in-service int so it MUST be phantom */	}    for (irqNum = 0; ((irqBit & 1) == 0) ; irqNum++, irqBit >>= 1)	;    if (irqNum == 7)	if (lvl7Int > 1)	    {	    /*	     * logMsg ("sysIbcPhantomInt: nested interrupt in master\n",             *	0,0,0,0,0,0);	     */	    return (TRUE);  /* We're nested so it MUST be phantom */	    }    /* if irqNum isn't 2 we have an interrupt on the master */    if (irqNum != 2)	{	*intNum = irqNum;	/*	 * logMsg ("sysIbcPhantomInt: IRQ adjusted to %d\n", 	 *	   *intNum,0,0,0,0,0);	 */	return (FALSE);	}    /* Read the slave in-service register (ISR) */    IBC_BYTE_OUT (PIC_port1 (PIC2_BASE_ADR), PIC_OCW3_SEL + PIC_ISR_READ);    IBC_BYTE_IN (PIC_port1 (PIC2_BASE_ADR), &irqBit);    if (irqBit == 0)	/* should never happen, really */	{	/* logMsg ("sysIbcPhantomInt: no interrupt in slave\n", 0,0,0,0,0,0); */	return (TRUE);	/* No in-service int so it MUST be phantom */	}    for (irqNum = 8; ((irqBit & 1) == 0) ; irqNum++, irqBit >>= 1)	;    if (irqNum == 15)	if (lvl15Int > 1)	    {            /* 	     * logMsg ("sysIbcPhantomInt: nested interrupt in slave\n",	     *	0,0,0,0,0,0);	     */	    return (TRUE);  /* We're nested so it MUST be phantom */	    }    *intNum = irqNum;    /* logMsg ("sysIbcPhantomInt: IRQ adjusted to %d\n", *intNum,0,0,0,0,0); */    return (FALSE);    }/********************************************************************************* sysIbcEndOfInt - send EOI (end of interrupt) signal.** This routine is called at the end of the interrupt handler to* send a non-specific end of interrupt (EOI) signal.** The second PIC is acked only if the interrupt came from that PIC.* The first PIC is always acked.*/LOCAL void sysIbcEndOfInt    (    int intNum    )    {    if (intNum > 7)	{	IBC_BYTE_OUT (PIC_IACK (PIC2_BASE_ADR), 0x20);	}    IBC_BYTE_OUT (PIC_IACK (PIC1_BASE_ADR), 0x20);    }/********************************************************************************* sysIbcIntLevelSet - set the interrupt priority level** This routine masks interrupts with real priority equal to or lower than* <intNum>.  The special* value 16 indicates all interrupts are enabled. Individual interrupt* numbers have to be specifically enabled by sysIbcIntEnable() before they* are ever enabled by setting the interrupt level value.** Note because of the IBM cascade scheme, the actual priority order for* interrupt numbers is (high to low) 0, 1, 8, 9, 10, 11, 12, 13, 14, 15,* 3, 4, 5, 6, 7, 16 (all enabled)** INTERNAL: It is possible that we need to determine if we are raising* or lowering our priority level.  It may be that the order of loading the* two mask registers is dependent upon raising or lowering the priority.** RETURNS: N/A*/LOCAL void sysIbcIntLevelSet    (    int intNum	/* interrupt level to implement */    )    {    if (intNum > 16)	intNum = 16;    sysPicLevelCur = intNum;    if (sysPicLevel2 != sysPicPriMask2[intNum])	{	sysPicLevel2 = sysPicPriMask2[intNum];	IBC_BYTE_OUT (PIC_IMASK (PIC2_BASE_ADR), sysPicMask2 | sysPicLevel2);	}    if (sysPicLevel1 != sysPicPriMask1[intNum])	{	sysPicLevel1 = sysPicPriMask1[intNum];	IBC_BYTE_OUT (PIC_IMASK (PIC1_BASE_ADR), sysPicMask1 | sysPicLevel1);	}    }/********************************************************************************* sysIbcMpicConnect - routine to connect IBC interrupts to MPIC** This function is called from sysHwInit2 and sets the IBC interrupt* handler into the MPIC interrupt vector table.** RETURNS: N/A*/LOCAL void sysIbcMpicConnect (void)    {    intConnect (INUM_TO_IVEC(PIB_INT_VEC), sysIbcIntHandler, 0);     intEnable (PIB_INT_LVL);    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美妇女性影城| 在线成人高清不卡| 亚洲欧洲精品一区二区三区不卡 | 日韩欧美综合一区| 亚洲第一av色| 精品国产91乱码一区二区三区| 免播放器亚洲一区| 国产欧美日韩精品一区| 国产一区二区调教| 亚洲激情中文1区| 亚洲人成影院在线观看| 日韩亚洲欧美在线| 精品亚洲国内自在自线福利| 欧美一区二区视频在线观看2020 | 亚洲同性同志一二三专区| 色婷婷久久99综合精品jk白丝| 亚洲国产综合91精品麻豆| 91精品国产一区二区三区蜜臀| 亚洲尤物视频在线| 精品成人一区二区三区| 欧洲中文字幕精品| 成人精品在线视频观看| 欧美猛男超大videosgay| 国产嫩草影院久久久久| 久久福利资源站| 亚洲成人av一区二区三区| 一区二区三区久久久| 一区二区在线观看视频| 一区二区三区四区激情| 在线精品视频免费观看| 国产精品你懂的| 国产91在线|亚洲| 国产成人自拍网| 国产99精品视频| 91国在线观看| 3751色影院一区二区三区| 欧美成人精品高清在线播放| 精品国产第一区二区三区观看体验 | 亚洲码国产岛国毛片在线| 1区2区3区精品视频| 欧美国产1区2区| 国产精品视频看| 久久精品一区二区三区不卡| 精品欧美乱码久久久久久1区2区 | 精品国产一区久久| 欧美成人欧美edvon| 一本大道综合伊人精品热热| 99久久99久久精品免费看蜜桃| 国产精品99久| 成人av先锋影音| 高清在线不卡av| 91香蕉视频污| 欧美日韩一二区| 欧美美女黄视频| 精品国产91洋老外米糕| 亚洲国产精品ⅴa在线观看| 日本一区二区久久| 亚洲精品视频免费观看| 一级特黄大欧美久久久| 美女网站色91| 国产69精品久久777的优势| 99视频在线精品| 91麻豆精品国产91久久久久 | 欧美激情中文不卡| 日韩伦理av电影| 午夜精品国产更新| 激情图片小说一区| 成人av片在线观看| 制服丝袜亚洲播放| 亚洲欧美电影一区二区| 国产综合色在线视频区| 欧美顶级少妇做爰| 亚洲品质自拍视频| 国产精品一区二区无线| 欧美性大战久久久久久久蜜臀| 日本一区二区三区电影| 日本不卡的三区四区五区| 欧美三级一区二区| 久久久久久一级片| 天天色 色综合| 亚洲色图一区二区三区| 日韩高清不卡一区二区三区| 粉嫩av一区二区三区在线播放 | 久久精子c满五个校花| 亚洲一区中文日韩| 国产精品一区二区在线观看不卡| 色婷婷av一区二区三区软件| 日韩西西人体444www| 日韩理论片中文av| 国模大尺度一区二区三区| 日韩精品一区在线| 五月激情综合网| 91麻豆123| 中文字幕一区视频| 黑人精品欧美一区二区蜜桃| 欧美肥妇毛茸茸| 亚洲欧洲综合另类| 美女久久久精品| 欧美日韩一级二级| 一区二区三区在线免费视频| 日欧美一区二区| 91精品国产福利| 奇米色一区二区三区四区| 欧美精品vⅰdeose4hd| 午夜精品久久久久影视| 欧美日韩激情在线| 日本中文一区二区三区| 91精品欧美综合在线观看最新| 亚洲第一狼人社区| 日韩欧美精品在线| 国精品**一区二区三区在线蜜桃| 久久综合丝袜日本网| 国产成人免费在线观看不卡| 国产精品夫妻自拍| 欧美少妇一区二区| 久久精工是国产品牌吗| 中文字幕+乱码+中文字幕一区| www.av精品| 国产精品久久久久久户外露出 | 色呦呦国产精品| 亚洲精品免费播放| 日韩欧美中文字幕制服| 精品亚洲免费视频| 精品国偷自产国产一区| 成人app在线| 蜜桃一区二区三区在线| 国产精品白丝在线| 成人av在线资源网| 蜜桃视频在线一区| 亚洲精品v日韩精品| 久久人人97超碰com| 欧美日韩国产在线播放网站| 国产麻豆成人精品| 美女视频黄 久久| 美女一区二区在线观看| 日本中文字幕一区| 午夜精品免费在线| 日韩精品午夜视频| 免费在线观看不卡| 日韩国产欧美在线视频| 视频在线在亚洲| 免费高清在线一区| 奇米色一区二区| 舔着乳尖日韩一区| 日本午夜一本久久久综合| 美女被吸乳得到大胸91| 日韩成人一级片| 中文字幕在线观看一区| 日韩欧美一区二区免费| 欧美午夜精品理论片a级按摩| 91视频精品在这里| 一本久道中文字幕精品亚洲嫩| 国产成人亚洲精品青草天美| 日韩—二三区免费观看av| 亚洲国产综合91精品麻豆| 亚洲影院理伦片| 视频在线观看一区| 午夜欧美大尺度福利影院在线看| 亚洲裸体xxx| 婷婷久久综合九色国产成人| 亚洲一区二区三区国产| 亚洲精品免费视频| 喷白浆一区二区| 韩国av一区二区三区在线观看| 国产一区二区三区美女| 成人av动漫网站| 欧美体内she精高潮| 欧美一区二区视频免费观看| 久久一留热品黄| 中文字幕一区二区三区不卡在线| 亚洲精品国产成人久久av盗摄| 亚洲精品高清视频在线观看| 蜜臀av一区二区在线观看| 国产一区二区三区四区五区美女 | 精品污污网站免费看| 日韩欧美国产精品| 国产偷国产偷精品高清尤物| 亚洲精品高清在线观看| 韩国在线一区二区| 色诱亚洲精品久久久久久| 91精品免费在线观看| 国产精品美女久久久久高潮| 视频一区二区欧美| 成人丝袜18视频在线观看| 欧美日韩第一区日日骚| 18涩涩午夜精品.www| 韩国av一区二区三区在线观看| 91老师国产黑色丝袜在线| 欧美日韩中文字幕一区二区| 国产校园另类小说区| 亚洲午夜羞羞片| 91免费视频大全| 欧美r级在线观看| 婷婷久久综合九色国产成人| 成人久久18免费网站麻豆| 久久综合网色—综合色88| 免费成人在线观看| 7777精品伊人久久久大香线蕉| 欧美成人艳星乳罩| 久久精品久久久精品美女|