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

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

?? sysend.c

?? vxworks for Sam2410 bsp NoNet
?? C
?? 第 1 頁 / 共 3 頁
字號:
    if (pReso->boardType == PRO100B)		/* only setup once */	{	}    else	{	/* read the configuration in EEPROM */	for (ix = 0; ix < EE_SIZE; ix++)	    {	    value = sys557eepromRead (unit, ix);	    pReso->eeprom[ix] = value;	    sum += value;	    }	if (sum != EE_CHECKSUM)	    printf ("fei%d: Invalid EEPROM checksum %#4.4x\n", unit, sum);	/* DP83840 specific setup */	if (((pReso->eeprom[6]>>8) & 0x3f) == DP83840)	    {	    int reg23 = sys557mdioRead (unit, pReso->eeprom[6] & 0x1f, 23);	    sys557mdioWrite (unit, pReso->eeprom[6] & 0x1f, 23, reg23 | 0x0420);	    }	/* perform a system self-test. */        pReso->timeout = 16000;		/* Timeout for self-test. */	/*	 * We require either a cache-line sized buffer in order to be	 * able to flush the cache, or use a buffer that is marked as	 * non-cacheable. If the driver is configured to use a defined	 * area of memory, we assume that it will be marked as	 * non-cacheable. We will use that (temporarily).	 */#ifdef INTEGRATOR_ENET_FIXED_BUF_ADRS	pReso->pResults = (volatile INT32 *)sysEnetBufAdrs [unit];#else	/*	 * No specific area specified, so we assume that cacheDmaMalloc() will	 * return a pointer to a suitable area. If the data cache is on,	 * this will be page-aligned, but if the data cache is off, then we	 * will just get whatever malloc returns.	 */	if (testbuf = cacheDmaMalloc (32), testbuf == 0)	    {	    printf("fei%d cacheDmaMalloc failed\n", unit);	    return ERROR;	    }	pReso->pResults = (volatile INT32 *)testbuf;#ifdef INTEGRATOR_ENET_CHECK_BUFFERS	if (((UINT32)pReso->pResults) < INTEGRATOR_HDR_SSRAM_SIZE)	    {	    printf("fei%d: cacheDmaMalloc() returned address in \		    header card SSRAM\n", unit);	    return ERROR;	    }#endif /* INTEGRATOR_ENET_CHECK_BUFFERS */#endif /* INTEGRATOR_ENET_FIXED_BUF_ADRS */	/* The chip requires the results buffer to be 16-byte aligned. */        pReso->pResults    = (volatile INT32 *)			     ((((int) pReso->pResults) + 0xf) & ~0xf);	/* initialise results buffer */	pReso->pResults[0] = 0;	pReso->pResults[1] = -1;	/* Issue the self-test command */#ifdef INTEGRATOR_ENET_FIXED_BUF_ADRS	/* If fixed address specified, no address conversion will be required */	sysOutLong (pReso->iobaseCsr + SCB_PORT, (int)pReso->pResults | 1);#else /* INTEGRATOR_ENET_FIXED_BUF_ADRS */	/*	 * If using cacheDmaMalloc() it will return a "low-alias" address in	 * SDRAM, and this will need converting to a "high-alias"	 * address, so it can be accessed from the PCI bus.	 */	sysOutLong (pReso->iobaseCsr + SCB_PORT,		    sys557CpuToPci(unit, (int)pReso->pResults) | 1);#endif /* INTEGRATOR_ENET_FIXED_BUF_ADRS */	/* wait for results */	do	    {	    sysDelay();		/* cause a delay of at least an I/O cycle */	    }	while ((pReso->pResults[1] == -1) && (--pReso->timeout >= 0));        pReso->boardType = PRO100B;	/* note that it is now initialised */        /* Save results so we can refer to them again later */        pReso->str[0] = pReso->pResults[0];        pReso->str[1] = pReso->pResults[1];#ifndef INTEGRATOR_ENET_FIXED_BUF_ADRS        cacheDmaFree (testbuf);#endif        pReso->pResults = pReso->str;	}    /* initialise the board information structure */    pBoard->vector	  = IVEC_TO_INUM(pReso->irq);    pBoard->baseAddr	  = pReso->iobaseCsr;    for (ix = 0, iy = 0; ix < 3; ix++)	{	pBoard->enetAddr[iy++] = pReso->eeprom[ix] & 0xff;	pBoard->enetAddr[iy++] = (pReso->eeprom[ix] >> 8) & 0xff;	}    pBoard->intEnable	  = sys557IntEnable;    pBoard->intDisable	  = sys557IntDisable;    pBoard->intAck	  = sys557IntAck;    /* install address conversion routines for driver, if appropriate */#ifndef INTEGRATOR_ENET_FIXED_BUF_ADRS    pBoard->sysLocalToBus = sys557CpuToPci;    pBoard->sysBusToLocal = sys557PciToCpu;#else    pBoard->sysLocalToBus = NULL;    pBoard->sysBusToLocal = NULL;#endif#ifdef FEI_10MB    pBoard->phySpeed	  = NULL;    pBoard->phyDpx	  = NULL;#endif    return (OK);    }/********************************************************************************* sys557IntAck - acknowledge an 82557 interrupt** This routine performs any 82557 interrupt acknowledge that may be* required.  This typically involves an operation to some interrupt* control hardware.** This routine gets called from the 82557 driver's interrupt handler.** This routine assumes that the PCI configuration information has already* been setup.** RETURNS: OK, or ERROR if the interrupt could not be acknowledged.*/LOCAL STATUS sys557IntAck    (    int	unit		/* unit number */    )    {    FEI_RESOURCE * pReso = &feiResources [unit];    switch (pReso->boardType)	{	case PRO100B:		/* handle PRO100B LAN Adapter */	    /* no addition work necessary for the PRO100B */	    break;	default:	    return (ERROR);	}    return (OK);    }/********************************************************************************* sys557IntEnable - enable 82557 interrupts** This routine enables 82557 interrupts.  This may involve operations on* interrupt control hardware.** The 82557 driver calls this routine throughout normal operation to terminate* critical sections of code.** This routine assumes that the PCI configuration information has already* been setup.** RETURNS: OK, or ERROR if interrupts could not be enabled.*/LOCAL STATUS sys557IntEnable    (    int	unit		/* unit number */    )    {    FEI_RESOURCE * pReso = &feiResources [unit];    switch (pReso->boardType)	{	case PRO100B:		/* handle PRO100B LAN Adapter */	    intEnable (pReso->irq);	    break;	default:	    return (ERROR);	}    return (OK);    }/********************************************************************************* sys557IntDisable - disable 82557 interrupts** This routine disables 82557 interrupts.  This may involve operations on* interrupt control hardware.** The 82557 driver calls this routine throughout normal operation to enter* critical sections of code.** This routine assumes that the PCI configuration information has already* been setup.** RETURNS: OK, or ERROR if interrupts could not be disabled.*/LOCAL STATUS sys557IntDisable    (    int	unit		/* unit number */    )    {    FEI_RESOURCE * pReso = &feiResources [unit];    switch (pReso->boardType)	{	case PRO100B:		/* handle PRO100B LAN Adapter */	    intDisable (pReso->irq);	    break;	default:	    return (ERROR);	}    return (OK);    }/********************************************************************************* sys557eepromRead - read a word from the 82557 EEPROM** RETURNS: the EEPROM data word read in.*/LOCAL UINT16 sys557eepromRead    (    int	unit,		/* unit number */    int	location	/* address of word to be read */    )    {    UINT32 iobase = feiResources[unit].iobaseCsr;    UINT16 retval = 0;    UINT16 dataval;    volatile UINT16 dummy;    int ix;    sysOutWord (iobase + SCB_EEPROM, EE_CS);	/* enable EEPROM */    /* write the READ opcode */    for (ix = EE_CMD_BITS - 1; ix >= 0; ix--)	{        dataval = (EE_CMD_READ & (1 << ix)) ? EE_DI : 0;        sysOutWord (iobase + SCB_EEPROM, EE_CS | dataval);        sysDelay ();	/* delay for one I/O READ cycle */        sysOutWord (iobase + SCB_EEPROM, EE_CS | dataval | EE_SK);        sysDelay ();	/* delay for one I/O READ cycle */        sysOutWord (iobase + SCB_EEPROM, EE_CS | dataval);        sysDelay ();	/* delay for one I/O READ cycle */        }    /* write the location */    for (ix = EE_ADDR_BITS - 1; ix >= 0; ix--)	{        dataval = (location & (1 << ix)) ? EE_DI : 0;        sysOutWord (iobase + SCB_EEPROM, EE_CS | dataval);        sysDelay ();	/* delay for one I/O READ cycle */        sysOutWord (iobase + SCB_EEPROM, EE_CS | dataval | EE_SK);        sysDelay ();	/* delay for one I/O READ cycle */        sysOutWord (iobase + SCB_EEPROM, EE_CS | dataval);        sysDelay ();	/* delay for one I/O READ cycle */	dummy = sysInWord (iobase + SCB_EEPROM);        }    if ((dummy & EE_DO) == 0)		/* dummy read */	;    /* read the data */    for (ix = EE_DATA_BITS - 1; ix >= 0; ix--)	{        sysOutWord (iobase + SCB_EEPROM, EE_CS | EE_SK);        sysDelay ();	/* delay for one I/O READ cycle */        retval = (retval << 1) |	         ((sysInWord (iobase + SCB_EEPROM) & EE_DO) ? 1 : 0);        sysOutWord (iobase + SCB_EEPROM, EE_CS);        sysDelay ();	/* delay for one I/O READ cycle */        }    sysOutWord (iobase + SCB_EEPROM, 0x00);	/* disable EEPROM */    return (retval);    }/********************************************************************************* sys557mdioRead - read MDIO** RETURNS: read value*/LOCAL UINT32 sys557mdioRead    (    int	unit,		/* unit number */    int phyId,		/* PHY ID */    int location	/* location to read */    )    {    UINT32 iobase = feiResources[unit].iobaseCsr;    int timeout   = 64*4;	/* <64 usec. to complete, typ 27 ticks */    int val;    sysOutLong (iobase + SCB_MDI, 0x08000000 | (location<<16) | (phyId<<21));    do {    	sysDelay ();	/* delay for one I/O READ cycle */    	val = sysInLong (iobase + SCB_MDI);    	if (--timeout < 0)    	    printf ("sys557mdioRead() timed out with val = %8.8x.\n", val);        } while (! (val & 0x10000000));    return (val & 0xffff);    }/********************************************************************************* sys557mdioWrite - write MDIO** RETURNS: write value*/LOCAL UINT32 sys557mdioWrite    (    int unit,		/* unit number */    int phyId,		/* PHY ID */    int location,	/* location to write */    int value		/* value to write */    )    {    UINT32 iobase = feiResources[unit].iobaseCsr;    int timeout   = 64*4;	/* <64 usec. to complete, typ 27 ticks */    int val;    sysOutLong (iobase + SCB_MDI,		0x04000000 | (location<<16) | (phyId<<21) | value);    do {    	sysDelay ();	/* delay for one I/O READ cycle */    	val = sysInLong (iobase + SCB_MDI);    	if (--timeout < 0)    	    printf ("sys557mdioWrite() timed out with val = %8.8x.\n", val);        } while (! (val & 0x10000000));    return (val & 0xffff);    }/********************************************************************************* sys557Show - shows 82557 configuration** This routine shows the (Intel Pro Express 100) configuration** RETURNS: N/A*/void sys557Show    (    int	unit		/* unit number */    )    {    FEI_RESOURCE * pReso = &feiResources [unit];    UINT32 iobase       = pReso->iobaseCsr;    UCHAR etheraddr[6];    int ix;    int iy;    if (unit > INTEGRATOR_MAX_END_DEVS)	{	printf ("Illegal unit number %d\n", unit);	return;	}    if (pReso->boardType != PRO100B)	{	printf ("Unit %d not an FEI device\n", unit);	return;	}    for (ix = 0, iy = 0; ix < 3; ix++)	{        etheraddr[iy++] = pReso->eeprom[ix];        etheraddr[iy++] = pReso->eeprom[ix] >> 8;        }    printf ("fei%d: Intel EtherExpress Pro 10/100 at %#8x ", unit, iobase);    for (ix = 0; ix < 5; ix++)    	printf ("%2.2X:", etheraddr[ix]);    printf ("%2.2X\n", etheraddr[ix]);    printf ("CSR mem base address = %x, Flash mem base address = %x\n",	    pReso->membaseCsr, pReso->membaseFlash);    if (pReso->eeprom[3] & 0x03)        printf ("Receiver lock-up bug exists -- enabling work-around.\n");    printf ("Board assembly %4.4x%2.2x-%3.3d, Physical connectors present:",	pReso->eeprom[8], pReso->eeprom[9]>>8, pReso->eeprom[9] & 0xff);    for (ix = 0; ix < 4; ix++)	if (pReso->eeprom[5] & (1 << ix))	    printf ("%s", connectors [ix]);    printf ("\nPrimary interface chip %s PHY #%d.\n",	phys[(pReso->eeprom[6]>>8)&15], pReso->eeprom[6] & 0x1f);    if (pReso->eeprom[7] & 0x0700)	printf ("Secondary interface chip %s.\n",		phys[(pReso->eeprom[7]>>8)&7]);#if	FALSE  /* we don't show PHY specific info at this time */    /* ToDo: Read and set PHY registers through MDIO port. */    for (ix = 0; ix < 2; ix++)	printf ("MDIO register %d is %4.4x.\n",		ix, sys557mdioRead (unit, pReso->eeprom[6] & 0x1f, ix));    for (ix = 5; ix < 7; ix++)	printf ("MDIO register %d is %4.4x.\n",		ix, sys557mdioRead (unit, pReso->eeprom[6] & 0x1f, ix));    printf ("MDIO register %d is %4.4x.\n",	    25, sys557mdioRead (unit, pReso->eeprom[6] & 0x1f, 25));#endif	/* FALSE */    if (pReso->timeout < 0)        {		/* Test optimized out. */	printf ("Self test failed, status %8.8x:\n"	        " Failure to initialize the 82557.\n"	        " Verify that the card is a bus-master capable slot.\n",	        pReso->pResults[1]);	}    else        {	printf ("General self-test: %s.\n"	        " Serial sub-system self-test: %s.\n"	        " Internal registers self-test: %s.\n"	        " ROM checksum self-test: %s (%#8.8x).\n",	        pReso->pResults[1] & 0x1000 ? "failed" : "passed",	        pReso->pResults[1] & 0x0020 ? "failed" : "passed",	        pReso->pResults[1] & 0x0008 ? "failed" : "passed",	        pReso->pResults[1] & 0x0004 ? "failed" : "passed",	        pReso->pResults[0]);        }    }#endif /* INCLUDE_FEI82557END */#endif /* INCLUDE_END */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
粗大黑人巨茎大战欧美成人| 男人操女人的视频在线观看欧美| 成人免费观看视频| 国产欧美一区二区精品性色| 床上的激情91.| 亚洲日本一区二区| 欧美在线观看一二区| 午夜精品久久久久影视| 日韩三级视频中文字幕| 国内欧美视频一区二区 | 六月丁香婷婷色狠狠久久| 日韩亚洲国产中文字幕欧美| 国产一区高清在线| 国产精品久久国产精麻豆99网站| 色噜噜狠狠成人网p站| 亚洲成年人影院| 欧美mv日韩mv国产| voyeur盗摄精品| 手机精品视频在线观看| 精品国产91亚洲一区二区三区婷婷| 国产自产2019最新不卡| 一区二区三区在线影院| 精品国产一区二区三区四区四| 成人黄色电影在线| 日韩福利视频网| 久久一日本道色综合| 国产91精品久久久久久久网曝门| 亚洲一二三区在线观看| 久久综合九色综合97婷婷女人 | 亚洲欧洲日本在线| 69堂成人精品免费视频| 国产成人精品一区二区三区四区| 亚洲国产视频直播| 久久青草国产手机看片福利盒子 | 成人黄色片在线观看| 无码av免费一区二区三区试看| 2019国产精品| 欧美日韩成人综合| 91在线观看美女| 国产综合久久久久久久久久久久| 一区二区三国产精华液| 中文字幕欧美激情一区| 91精品国产全国免费观看| 97精品电影院| 国产精品白丝av| 日韩和的一区二区| 一区二区三区欧美久久| 国产精品色一区二区三区| 精品国内二区三区| 欧美视频一区二区三区在线观看| 国产福利一区在线| 奇米888四色在线精品| 亚洲影视在线观看| 亚洲乱码一区二区三区在线观看| 久久久天堂av| 精品理论电影在线观看| 9191成人精品久久| 在线观看日产精品| 91美女在线视频| 成人免费毛片嘿嘿连载视频| 韩国av一区二区| 蜜桃精品视频在线| 日韩精品国产精品| 视频一区在线视频| 亚洲v中文字幕| 午夜亚洲国产au精品一区二区| 亚洲视频小说图片| 亚洲欧美一区二区三区国产精品 | 在线免费精品视频| 92精品国产成人观看免费 | 色综合欧美在线视频区| eeuss鲁一区二区三区| 成人污视频在线观看| 高清在线成人网| 高清不卡一区二区在线| 成人av网址在线| av在线免费不卡| www.亚洲色图.com| a在线欧美一区| 91麻豆国产在线观看| 一本到三区不卡视频| 一本到高清视频免费精品| 91国偷自产一区二区开放时间 | 国内精品久久久久影院薰衣草| 久久av中文字幕片| 国产一区二区久久| 粉嫩一区二区三区在线看| 成av人片一区二区| 色av成人天堂桃色av| 欧美三日本三级三级在线播放| 欧美久久免费观看| 亚洲精品在线观看网站| 国产精品网站一区| 亚洲一区二区视频在线观看| 午夜精品一区在线观看| 紧缚奴在线一区二区三区| 国产成人免费视| 色悠悠亚洲一区二区| 欧美浪妇xxxx高跟鞋交| 精品国产一区二区三区忘忧草| 中文字幕二三区不卡| 亚洲一二三专区| 免费精品99久久国产综合精品| 国产综合色在线视频区| 97se亚洲国产综合自在线| 欧美精品日韩一区| 久久综合999| 一区二区三区欧美久久| 老司机精品视频线观看86| 成人午夜精品一区二区三区| 在线视频你懂得一区| 日韩欧美成人一区二区| 日韩理论片在线| 久久激情五月激情| 91污片在线观看| 日韩美一区二区三区| 亚洲欧美在线视频| 视频一区二区三区在线| 成人综合婷婷国产精品久久 | 成人晚上爱看视频| 欧美三片在线视频观看| 国产日韩成人精品| 亚洲超丰满肉感bbw| 成人一级片网址| 欧美精品v日韩精品v韩国精品v| 国产欧美一区二区精品秋霞影院| 亚洲国产一区在线观看| 国产成人av自拍| 日韩一区二区免费高清| 怡红院av一区二区三区| 国产成人综合在线| 91精品福利在线一区二区三区| 中文字幕一区二区在线播放| 人禽交欧美网站| 91黄色免费版| 中文字幕一区二区三区四区| 韩日精品视频一区| 欧美情侣在线播放| 亚洲精品日日夜夜| 国产成人a级片| 欧美精品一区二区三区高清aⅴ| 亚洲一卡二卡三卡四卡| 国产91色综合久久免费分享| 日韩免费视频一区| 视频一区免费在线观看| 在线视频你懂得一区| 亚洲欧美电影一区二区| 成人黄色大片在线观看| 国产婷婷一区二区| 国内精品免费**视频| 日韩精品中文字幕一区二区三区| 亚洲国产成人高清精品| 欧美性猛交一区二区三区精品| 国产精品欧美经典| 成人免费看的视频| 国产视频一区二区在线| 国产在线观看免费一区| 欧美成人性战久久| 麻豆专区一区二区三区四区五区| 欧美日韩精品欧美日韩精品一综合| 成人免费在线视频| 91香蕉视频黄| 一区二区三区日韩欧美精品| 在线欧美日韩精品| 亚洲国产综合在线| 欧美久久婷婷综合色| 爽好久久久欧美精品| 欧美一级黄色录像| 久久成人免费电影| 久久久另类综合| 成人丝袜18视频在线观看| 中文字幕一区二区三区不卡| 色综合色综合色综合| 亚洲综合免费观看高清在线观看| 91高清视频在线| 亚洲成人动漫精品| 制服丝袜日韩国产| 蜜臀a∨国产成人精品| 亚洲精品在线免费观看视频| 国产99一区视频免费| 亚洲日本va在线观看| 精品视频免费在线| 另类专区欧美蜜桃臀第一页| 国产午夜一区二区三区| 99视频在线精品| 午夜精品视频一区| 久久人人超碰精品| av成人免费在线观看| 亚洲国产人成综合网站| 日韩一区二区免费视频| 成人午夜激情在线| 亚洲国产精品久久久久秋霞影院 | 亚洲国产精品成人综合| 一本一本久久a久久精品综合麻豆| 亚洲午夜日本在线观看| 日韩欧美成人一区| 一本大道久久a久久综合| 美女免费视频一区| 国产日韩成人精品| 欧美日韩色一区|