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

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

?? sysfei82557end.c

?? vxworks嵌入式開發vmware bsp包 其中已包括網卡的驅動 本人試過 非常好用
?? C
?? 第 1 頁 / 共 3 頁
字號:
    sys557eepromWriteBits (unit, EE_CMD_WRITE, 3);    /* (3) Write the Address field */    sys557eepromWriteBits (unit, location, EE_SIZE_BITS);    /* (4) Write the data field */    sys557eepromWriteBits (unit, data, 16);    /* (5) Deactivate the EEPROM */    sysOutWord (iobase + SCB_EEPROM, 0);    sysDelay ();    /* delay */    sysOutWord (iobase + SCB_EEPROM, FEI_EECS);    sysDelay ();    for (i = 0; i < 1000; ++i)        {        if (sysInWord (iobase + SCB_EEPROM) & FEI_EEDO)            break;        for (j = 0; j < 50; ++j)            sysDelay ();        }    sysOutWord (iobase + SCB_EEPROM, 0);    sysDelay ();    /* Disable the write access */    sysOutWord (iobase + SCB_EEPROM, FEI_EECS);    sys557eepromWriteBits (unit, 0x4, 3);    sys557eepromWriteBits (unit, 0, EE_SIZE_BITS);    sysOutWord (iobase + SCB_EEPROM, 0);    sysDelay ();    }/********************************************************************************* sys557eepromWriteBits - write bits to 82557 PCI ethernet device EEPROM** This routine writes a specified <data> item of <bitlen> length-in-bits* to the serial EEPROM of an Intel 8255x device associated with an* END driver <unit> number.** RETURNS: N/A** NOMANUAL*/LOCAL void sys557eepromWriteBits    (    int     unit,           /* END driver unit number */    UINT16  data,           /* the data to write */    int     bitlen          /* the data length in bits */    )    {    UINT16  iobase = (feiPciResources[unit].bar[1]);    UINT16  reg;    UINT16  mask;    /* write the data, MSB first */    for (mask = 1 << (bitlen - 1); mask; mask >>= 1)         {        /* if mask and data then set the EEDI bit on */        reg = ((data & mask) ? (FEI_EECS | FEI_EEDI) : (FEI_EECS));        /* (a) write the bit to the EEDI bit */        sysOutWord (iobase + SCB_EEPROM, reg);        sysDelay();        /* (b) write a '1' to the EESK bit then wait the minumum SK high time */        sysOutWord (iobase + SCB_EEPROM, reg | FEI_EESK);        sysDelay();        /* (c) write a '0' to the EESK bit then wait the minimum SK low time */        sysOutWord (iobase + SCB_EEPROM, reg);        sysDelay();        }    }/********************************************************************************* sys557eepromChecksumSet - set an Intel 825xx EEPROM checksum** This routine computes and writes the checksum for the serial EEPROM* on an Intel 82557, 82558, 82559, or 82562 device associated with the* specified END driver <unit> number.** RETURNS: N/A** NOMANUAL*/LOCAL void sys557eepromChecksumSet    (    int    unit           /* END driver unit number */    )    {    int    ix;    UINT16 sum = 0;    for (ix = 0; ix < EE_SIZE - 1; ix++)         {        sum += sys557eepromRead (unit, ix);        }      sys557eepromWrite (unit, EE_SIZE - 1, (EE_CHECKSUM - sum));    }/********************************************************************************* sys557mdioRead - read from 82557 PCI ethernet Media Data Interface (MDI)** RETURNS: The value read.** NOMANUAL*/LOCAL UINT16 sys557mdioRead    (    int    unit,           /* END driver unit number */    int    phyId,          /* PHY ID (PHY address) */    int    location        /* location to read (PHY register address) */    )    {    UINT16 iobase  = (feiPciResources[unit].bar[1]);    int    timeout = (64 * 4);  /* < 64 usec. to complete, typ 27 ticks */    int    mdi;    /* send command to MDI register and poll for completion */    sysOutLong (iobase + SCB_MDI, MDI_COMMAND_RD(phyId, location));    do  {        sysDelay ();        /* delay for one IO READ cycle */        mdi = sysInLong (iobase + SCB_MDI);        if (--timeout < 0)            printf ("sys557mdioRead() timed out with MDI = %8.8x.\n", mdi);        } while (!MDI_READY_SET(mdi));    return MDI_DATA_GET(mdi);    }/********************************************************************************* sys557mdioWrite - write to 82557 PCI ethernet Media Data Interface (MDI)** RETURNS: The value written.** NOMANUAL*/LOCAL UINT16 sys557mdioWrite    (    int    unit,            /* END driver unit number */    int    phyId,           /* PHY ID (PHY address ) */    int    location,        /* location to write (PHY registe address) */    UINT16 value            /* value to write */    )    {    UINT16 iobase  = (feiPciResources[unit].bar[1]);    int    timeout = (64 * 4);  /* < 64 usec. to complete, typ 27 ticks */    int    mdi;    /* send command to MDI register and poll for completion */    sysOutLong (iobase + SCB_MDI, MDI_COMMAND_WR(phyId, location, value));    do  {        sysDelay ();        /* delay for one IO READ cycle */        mdi = sysInLong (iobase + SCB_MDI);        if (--timeout < 0)            printf ("sys557mdioWrite() timed out with MDI = %8.8x.\n", mdi);        } while (!MDI_READY_SET(mdi));    return MDI_DATA_GET(mdi);    }/********************************************************************************* sys557Show - show 82557 PCI ethernet device configuration ** This routine shows Intel 82557 and compatible device configuration.** RETURNS: N/A*/void sys557Show    (    int        unit        /* END driver unit number */    )    {    UINT16     ioBase;    UINT32     memBase;    UINT32     flashBase = NONE;    UCHAR      etheraddr[6];    int        ix;    int        iy;    PCI_BOARD_RESOURCE const * pRsrc;    FEI_RESOURCE const *       pReso;    if (unit >= feiUnits)        {        printf ("none\n");        return;        }    pRsrc     = &feiPciResources [unit];    pReso     = (FEI_RESOURCE *)(pRsrc->pExtended);    ioBase    = (UINT16)(pRsrc->bar[1]);    memBase   = (pRsrc->bar[0]);    flashBase = (pRsrc->bar[2]);    for (ix = 0, iy = 0; ix < 3; ix++)         {        etheraddr[iy++] = pReso->eeprom[ix];        etheraddr[iy++] = pReso->eeprom[ix] >> 8;        }    printf ("i8255x(%d): Intel EtherExpress Pro 10/100 at %#3x ", 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\n",             memBase, flashBase);    printf ("PCI bus no. = %x, device no. = %x, function no. = %x, IRQ = %d\n",            pRsrc->pciBus, pRsrc->pciDevice, pRsrc->pciFunc, pRsrc->irq);    printf ("PCI Device ID = 0x%x\n\n", pRsrc->deviceID);    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",        phyNames[(pReso->eeprom[6]>>8)&15], pReso->eeprom[6] & 0x1f);    if (pReso->eeprom[7] & 0x0700)        printf ("Secondary interface chip %s.\n",                 phyNames[(pReso->eeprom[7]>>8)&7]);    /* We do not show PHY specific register info at this time. */#if  FALSE    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 i8255x.\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]);        }    }/********************************************************************************* sysFeiDevToType - convert PCI Vendor and Device IDs to a device type** Given <vendorId>, <deviceId>, and <revisionId> values read from PCI Vendor* and Device ID registers in PCI configuration space, this routine will* attempt to map the IDs to an 8255x device type value defined in this file.** RETURNS:* A board type value which will be one of** .IP* TYPE_I82557_PCI* .IP* TYPE_I82559_PCI* .IP* TYPE_I82559ER_PCI* .IP* TYPE_I82562_PCI* .IP* TYPE_I82562ET_PCI* .LP** NOTE* The TYPE_I82562ET_PCI constant is used specifically to identify the* Intel 82562ET LAN controller integrated in i82801BA (ICH2) and i82801BAM* (ICH2-M) devices.  As noted in the Specification Update for these* devices, document number 298242-015, the PCI Revsion ID values for the* integrated LAN controller are 1 and 3.** BOARD_TYPE_UNKNOWN will be returned if the Device ID does not map to* a supported board type.** NOMANUAL*/LOCAL UINT32 sysFeiDevToType    (    UINT32 vendorId,    /* specifies a PCI Vendor ID value */    UINT32 deviceId,    /* specifies a PCI Device ID value */    UINT8  revisionId   /* specifies a PCI Revision ID value */    )    {    /* At the moment, we are only supporting vendor Intel */    if (vendorId == FEI_VENDORID_INTEL)        {        switch (deviceId)            {            case FEI_DEVICEID_i82557:                return (TYPE_I82557_PCI);            case FEI_DEVICEID_i82559:            case FEI_DEVICEID_i82559_I82845:                  return (TYPE_I82559_PCI);            case FEI_DEVICEID_i82559ER:                return (TYPE_I82559ER_PCI);            case FEI_DEVICEID_i82562:                if ((revisionId == 1) || (revisionId == 3))                    {                    return (TYPE_I82562ET_PCI);                    }                return (TYPE_I82562_PCI);            default:                break;            }        }    return (BOARD_TYPE_UNKNOWN);    }#endif /* INCLUDE_FEI_END */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲自拍偷拍欧美| 日韩天堂在线观看| 色视频一区二区| 色婷婷亚洲综合| 欧美三级午夜理伦三级中视频| 91精品办公室少妇高潮对白| 欧美体内she精高潮| 91麻豆精品国产| 2019国产精品| 亚洲一区二区影院| 成人精品视频一区二区三区| 69堂精品视频| 最新中文字幕一区二区三区| 久久超碰97中文字幕| 成a人片国产精品| 久久综合色婷婷| 蜜臀av一区二区在线免费观看| 91在线免费播放| 日韩欧美亚洲国产另类| 一区二区日韩av| 国产精品一二三四区| 欧美色图在线观看| 亚洲人成电影网站色mp4| 99久久精品国产网站| 国产午夜精品福利| 国产一区二区三区免费观看| 久久一夜天堂av一区二区三区| 国产福利一区二区三区视频| 国产日韩欧美高清在线| 激情都市一区二区| 精品福利在线导航| 久久精品国产澳门| 日韩一区二区影院| 日韩一区二区三区观看| 免费在线观看日韩欧美| 亚洲国产精品99久久久久久久久| 欧美在线观看18| 一区二区三区不卡视频在线观看| 成人精品亚洲人成在线| 亚洲啪啪综合av一区二区三区| 91网站视频在线观看| 艳妇臀荡乳欲伦亚洲一区| 99久久免费精品高清特色大片| 亚洲日本va午夜在线影院| 白白色 亚洲乱淫| 亚洲精品水蜜桃| 欧美一区二区三区在线电影 | 成人免费毛片片v| 亚洲欧美怡红院| 欧美综合久久久| 久草精品在线观看| 精品国产一区二区三区av性色| 国产一区二区不卡在线| 中文字幕精品一区二区三区精品| 91亚洲男人天堂| 亚洲午夜日本在线观看| 日韩三级中文字幕| 国产精品正在播放| 亚洲男人天堂av| 欧美精品一区二区三| 91蝌蚪porny| 国产一区免费电影| 午夜一区二区三区视频| 久久久不卡网国产精品一区| 欧美精品18+| 91美女在线观看| 色婷婷亚洲婷婷| 91亚洲国产成人精品一区二三| 国产91精品精华液一区二区三区| 国内成人精品2018免费看| 亚洲手机成人高清视频| 国产欧美日本一区视频| 欧美大白屁股肥臀xxxxxx| 欧美日韩一二三区| 91啪九色porn原创视频在线观看| 国内成+人亚洲+欧美+综合在线 | av中文字幕亚洲| 成人午夜伦理影院| www.欧美色图| 91久久线看在观草草青青| 成人aaaa免费全部观看| 波多野结衣一区二区三区| 不卡一区二区在线| 色综合天天在线| 在线视频国内一区二区| 在线观看视频一区| 欧美一区二区精美| 久久久亚洲欧洲日产国码αv| 久久久久久毛片| 国产精品国产精品国产专区不片| 国产精品福利一区二区| 亚洲激情图片小说视频| 日本午夜精品视频在线观看| 国产精品996| 色综合激情久久| 日韩欧美的一区二区| 亚洲丝袜精品丝袜在线| 人妖欧美一区二区| 成人免费视频免费观看| 欧洲精品在线观看| 久久在线免费观看| 日韩高清不卡在线| 成人黄动漫网站免费app| 在线精品观看国产| 欧美激情一区在线观看| 亚洲第一精品在线| av激情亚洲男人天堂| 欧美一区二区美女| 亚洲色图欧美激情| 国产高清精品网站| 日韩一区二区在线看| 亚洲中国最大av网站| 丁香婷婷综合五月| 欧美成人r级一区二区三区| 亚洲图片欧美视频| 色综合久久88色综合天天| 国产免费成人在线视频| 免费精品视频最新在线| 欧美亚一区二区| 一区二区三区免费看视频| 成人免费毛片高清视频| 欧美经典三级视频一区二区三区| 美国一区二区三区在线播放| 91精品国产欧美日韩| 亚洲动漫第一页| 欧美日本高清视频在线观看| 一区二区免费在线| 欧美性一二三区| 天天影视网天天综合色在线播放| 欧美日韩成人一区| 成人av在线一区二区三区| 国产精品色一区二区三区| 99这里只有精品| 亚洲成人动漫一区| 久久久精品国产免费观看同学| 国产一区二区看久久| 国产精品午夜在线| 欧美视频在线不卡| 日韩经典一区二区| 国产亚洲一区字幕| 91国产福利在线| 久久精品免费观看| 国产拍欧美日韩视频二区| 色欧美片视频在线观看在线视频| 丝袜亚洲另类丝袜在线| 欧美精品一区二区精品网| 成人丝袜高跟foot| 看电视剧不卡顿的网站| 国产精品久久毛片| 欧美一区二区私人影院日本| 成人一区二区三区在线观看| 性做久久久久久久免费看| 亚洲欧洲在线观看av| 91精品久久久久久蜜臀| 成人性生交大片免费看中文| 国产91综合网| 免费av网站大全久久| 亚洲激情中文1区| 中文字幕在线观看一区二区| 日韩欧美精品在线视频| 欧美日韩精品一区二区三区| 91色.com| 91在线国产福利| a在线欧美一区| 国产69精品久久久久毛片| 另类中文字幕网| 狂野欧美性猛交blacked| 爽爽淫人综合网网站| 亚洲高清视频在线| 性欧美疯狂xxxxbbbb| 日韩不卡一区二区| 久久成人免费网站| 极品少妇一区二区三区精品视频| 亚洲图片自拍偷拍| 日韩成人av影视| 欧美aⅴ一区二区三区视频| 日韩黄色在线观看| 免费一区二区视频| 国内国产精品久久| 91在线视频官网| 欧美三级电影在线看| 日韩免费在线观看| 国产精品情趣视频| 一区二区三区四区视频精品免费| 亚洲综合小说图片| 香蕉av福利精品导航| 精品一区二区久久久| 99久久综合色| 91精品福利在线一区二区三区| 亚洲激情在线激情| 日韩av电影一区| 成人少妇影院yyyy| 欧美久久久久中文字幕| 国产清纯在线一区二区www| 亚洲综合在线第一页| 国产91在线观看丝袜| 欧美一级xxx| 亚洲人精品午夜| 国产精品一区久久久久| 欧美日韩高清不卡|