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

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

?? sysln97xend.c

?? vxworks嵌入式開發vmware bsp包 其中已包括網卡的驅動 本人試過 非常好用
?? C
?? 第 1 頁 / 共 2 頁
字號:
* used to determine whether or not the driver can support the device.** The shift and mask operations used to implement this routine are based* upon the following table which documents the PCI Revison ID register* values one can expect for the devices we are supporting:** ---------------------------------------------------------------------------*      PCI Configuration Space Offset: 0x08 PCI Revision ID Register** 31               16  15                0* xxxx xxxx xxxx xxxx  xxxx xxxx RRRR RRRR* xxxx xxxx xxxx xxxx  xxxx xxxx 0000 xxxx 0x  Am79C970  PCnet-PCI* xxxx xxxx xxxx xxxx  xxxx xxxx 0001 xxxx 1x  Am79C970A PCnet-PCI II* xxxx xxxx xxxx xxxx  xxxx xxxx 0010 xxxx 2x  Am79C971  PCnet-FAST* xxxx xxxx xxxx xxxx  xxxx xxxx 0011 xxxx 3x  Am79C972  PCnet-FAST+* xxxx xxxx xxxx xxxx  xxxx xxxx 0100 xxxx 4x  Am79C973  PCnet-FAST III* xxxx xxxx xxxx xxxx  xxxx xxxx 0100 xxxx 4x  Am79C975  PCnet-FAST III* xxxx xxxx xxxx xxxx  xxxx xxxx 0101 xxxx 5x  Am79C978  PCnet-Home* ---------------------------------------------------------------------------** While the driver documentation is not specific on the matter, the* revision ID is required because the driver supports Am79C970A* (PCnet-PCI II), but not Am79C970 (PCnet-PCI).  Moreover, AMD's* documentation indicates that Am79C973 devices and Am79C975 devices* will be identified as the same revision.** RETURNS:* A board type value which will be one of** .IP* LN_TYPE_970* .IP* LN_TYPE_971* .IP* LN_TYPE_972* .IP* LN_TYPE_973* .LP** BOARD_TYPE_UNKNOWN will be returned if the Revision ID does not map to* a supported board type.** NOMANUAL*/LOCAL UINT32 sysLn97xDev2Type    (    UINT32 vendorId,    /* specifies a PCI vendor ID value */    UINT32 deviceId,    /* specifies a PCI device ID value */    UINT8  revisionId   /* specifies a PCI revision ID value */    )    {    if ((vendorId == AMD_PCI_VENDOR_ID) &&        (deviceId == LN97X_PCI_DEVICE_ID))        {        /* An AMD Am79C97x board was found.  Check the         * Revision ID and make sure we support it.         */        if ((revisionId & LN970_PCI_REV_MASK) ||            (revisionId & LN971_PCI_REV_MASK) ||            (revisionId & LN972_PCI_REV_MASK) ||            (revisionId & LN973_PCI_REV_MASK))            {            /* assume the shifted Revision ID is one of LN_TYPE_97x */            return (UINT32)(revisionId >> 4);            }        }    return (BOARD_TYPE_UNKNOWN);    }/********************************************************************************* sysLan97xPciInit - initialize a Am79C97x PCI ethernet device*** This routine performs basic PCI initialization for Am79C97x ethernet* devices supported by the ln97xEnd END driver.  If supported,  the device* memory and I/O addresses are mapped into the local CPU address space and* an internal board-specific PCI resources table is updated with* information on the board type, memory address, and IO address.** CAVEATS* This routine must be performed prior to MMU initialization, usrMmuInit().* If the number of supported Am79c97x physical device instances installed* on the PCI bus exceeds LN97X_MAX_DEV, then the extra devices will not be* initialized in this routine.** RETURNS:* OK, else ERROR when the specified device is not supported, or if* the device could not be mapped into the local CPU memory space.*/STATUS sysLan97xPciInit    (    UINT32  pciBus,           /* store a PCI bus number */    UINT32  pciDevice,        /* store a PCI device number */    UINT32  pciFunc,          /* store a PCI function number */    UINT32  vendorId,         /* store a PCI vendor ID */    UINT32  deviceId,         /* store a PCI device ID */    UINT8   revisionId        /* store a PCI revision ID */    )    {    UINT32  boardType;        /* store a BSP-specific board type constant */    UINT32  ioBase;           /* IO base address (BAR 0) */    UINT32  memIo32;          /* memory-mapped IO address (BAR 1) */    UINT8   irq;              /* interrupt line number (IRQ) for device */    /* number of physical units exceeded the number supported ? */    if (ln97XUnits >= LN97X_MAX_DEV)        {        return (ERROR);        }    if ((boardType = sysLn97xDev2Type (vendorId, deviceId, revisionId))        == BOARD_TYPE_UNKNOWN)        {        return (ERROR);        }    pciConfigInLong  (pciBus, pciDevice, pciFunc,                      PCI_CFG_BASE_ADDRESS_0, &ioBase);    pciConfigInLong  (pciBus, pciDevice, pciFunc,                      PCI_CFG_BASE_ADDRESS_1, &memIo32);    memIo32 &= PCI_MEMBASE_MASK;    ioBase  &= PCI_IOBASE_MASK;    /* map a 4Kb 32-bit non-prefetchable memory address decoder */    if (sysMmuMapAdd ((void *)(memIo32 & PCI_DEV_MMU_MSK),        PCI_DEV_ADRS_SIZE, VM_STATE_MASK_FOR_ALL, VM_STATE_FOR_PCI) == ERROR)        {        return (ERROR);        }    /* read the IRQ number and vector and save to the resource table */    pciConfigInByte (pciBus, pciDevice, pciFunc,                     PCI_CFG_DEV_INT_LINE, &irq);    /* update the board-specific resource table */    ln97xPciResources[ln97XUnits].bar[0]     = ioBase;    ln97xPciResources[ln97XUnits].bar[1]     = memIo32;    ln97xPciResources[ln97XUnits].irq        = irq;    ln97xPciResources[ln97XUnits].irqvec     = INT_NUM_GET (irq);    ln97xPciResources[ln97XUnits].vendorID   = vendorId;    ln97xPciResources[ln97XUnits].deviceID   = deviceId;    ln97xPciResources[ln97XUnits].revisionID = revisionId;    ln97xPciResources[ln97XUnits].boardType  = boardType;    /* enable mapped memory and IO decoders */    pciConfigOutWord (pciBus, pciDevice, pciFunc, PCI_CFG_COMMAND,                      PCI_CMD_MEM_ENABLE | PCI_CMD_IO_ENABLE |                      PCI_CMD_MASTER_ENABLE);    /* disable sleep mode */    pciConfigOutByte (pciBus, pciDevice, pciFunc, PCI_CFG_MODE,                      SLEEP_MODE_DIS);    ++ln97XUnits;  /* increment number of units initialized */    return (OK);    }/********************************************************************************* sysLan97xIntEnable - enable Am79C97x ethernet device interrupts** This routine enables Am79C97x interrupts.  This may involve operations on* interrupt control hardware.** RETURNS: OK or ERROR for invalid arguments.*/STATUS sysLan97xIntEnable    (    int level           /* level number */    )    {    return (sysIntEnablePIC (level));    }/********************************************************************************* sysLan97xIntDisable - disable Am79C97x ethernet device interrupts** This routine disables Am79C97x interrupts.  This may involve operations on* interrupt control hardware.** RETURNS: OK or ERROR for invalid arguments.*/STATUS sysLan97xIntDisable    (    int level           /* level number */    )    {    return (sysIntDisablePIC (level));    }/********************************************************************************* sysLan97xEnetAddrGet - get Am79C97x Ethernet (IEEE station) address** This routine provides a target-specific interface for accessing an* Am79C97x device Ethernet (IEEE station address) address in the device's* Address PROM (APROM).  A handle to the specific device control structure* is specified in the <pDrvCtrl> parameter.  The 6-byte IEEE station* address will be copied to the memory location specified by the* <enetAdrs> parameter.** INTERNAL* The 6 bytes of the IEEE station address occupy the first 6 locations of* the Address PROM space.  The driver must copy the station address from* the Address PROM space to the initialization block or to CSR12-14 in order* for the receiver to accept unicast frames directed to the device.** Bytes 14 and 15 of APROM should each be ASCII 'W' (57h).  The above* requirements must be met in order to be compatible with AMD driver* software.** The APROM is 32 bytes, and there is no need to read all of that here.* So, this routine reads half of the APROM to get the Ethernet address* and test for ASCII 'W's.** RETURNS: OK, or ERROR if could not be obtained.*/STATUS sysLan97xEnetAddrGet    (    LN_97X_DRV_CTRL *  pDrvCtrl,   /* Driver control */    char *             enetAdrs    )    {    char          aprom [LN_97X_APROM_SIZE];  /* copy of address PROM space */    int           numBytes = (LN_97X_APROM_SIZE >> 1);    register int  ix;    /* get IO address of unit */    UINT8 * const ioaddr = (UINT8 * const)(pDrvCtrl->devAdrs);    /* load APROM into an array */    if (pDrvCtrl->flags & LS_MODE_MEM_IO_MAP)        {        for (ix = 0; ix < numBytes; ++ix)            {            aprom[ix] = *(ioaddr + ix);            }        }    else        {        for (ix = 0; ix < numBytes; ++ix)            {            aprom[ix] = sysInByte ((int)(ioaddr + ix));            }        }		/* modify by frankzhou to support in VMware */#define	VXWORKS_RUN_ON_VMWARE#ifndef	VXWORKS_RUN_ON_VMWARE    /* check for ASCII 'W's at APROM bytes 14 and 15 */    if ((aprom [0xe] != 'W') || (aprom [0xf] != 'W'))        {        logMsg ("sysLn97xEnetAddrGet:  W's not stored in aprom\n",                0, 1, 2, 3, 4, 5);        return ERROR;        }#endif#ifdef	VXWORKS_RUN_ON_VMWARE	aprom[0]=0x00;	aprom[1]=0x0c;	aprom[2]=0x29;	aprom[3]=0x5a;	aprom[4]=0x23;	aprom[5]=0xaf;#endif		/* end by frankzhou */    bcopy (aprom, enetAdrs, 6);    return (OK);    }#endif /* INCLUDE_LN_97X_END */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲欧美二区三区| 成人午夜电影网站| 国产福利一区二区三区视频在线| 成人av网站在线观看免费| 精品视频一区 二区 三区| 国产日产亚洲精品系列| 首页亚洲欧美制服丝腿| fc2成人免费人成在线观看播放 | 国产91精品精华液一区二区三区 | 欧美日韩国产首页在线观看| 久久久久久99久久久精品网站| 亚洲一区二区三区在线| 国产精品99久久久久久久女警| 欧美久久免费观看| 亚洲天堂免费看| 国产成人亚洲综合色影视| 欧美一区二区视频在线观看2022| 亚洲精品视频免费看| 国产成人自拍在线| 日韩精品中文字幕一区二区三区 | 国产精品视频在线看| 免费成人结看片| 欧美日韩精品一区二区三区蜜桃| 亚洲欧美日韩国产综合在线| 国产精品亚洲第一区在线暖暖韩国| 欧美一区二区视频在线观看2022| 亚洲精品成人悠悠色影视| 成人av手机在线观看| 久久精品一区二区三区不卡| 国产自产视频一区二区三区 | 欧美性受xxxx| 一区二区三区不卡视频在线观看| 成人av综合一区| 国产精品视频线看| 成人国产视频在线观看| 国产精品嫩草久久久久| 成人自拍视频在线观看| 国产精品福利一区二区| 国产成人精品在线看| 久久婷婷国产综合精品青草| 久久99精品久久久久| 久久这里只有精品首页| 国产精品综合二区| 久久伊人蜜桃av一区二区| 国产高清在线精品| 国产精品久久久久一区二区三区| 国产91丝袜在线播放0| 国产精品久久久久久久久免费丝袜| 国产成人在线视频免费播放| 欧美国产一区二区| 91麻豆免费视频| 中文字幕日韩精品一区| 欧美日韩和欧美的一区二区| 99r国产精品| 中文字幕中文字幕在线一区| 国产成人亚洲综合a∨猫咪| 国产偷国产偷亚洲高清人白洁| 丁香亚洲综合激情啪啪综合| 国产精品国产自产拍在线| 91亚洲午夜精品久久久久久| 亚洲成人资源在线| 亚洲精品一区二区三区香蕉| 高清国产一区二区| 一区二区三区在线观看视频| 欧美一卡二卡三卡| 成人免费视频免费观看| 亚洲伊人色欲综合网| 精品久久久久香蕉网| 不卡视频在线看| 日韩av不卡在线观看| 国产视频不卡一区| 欧美日韩在线播放三区四区| 国产精品乡下勾搭老头1| 尤物在线观看一区| 精品少妇一区二区三区日产乱码| 97久久久精品综合88久久| 七七婷婷婷婷精品国产| 国产日韩精品一区二区浪潮av| 欧美色综合网站| 国产成a人无v码亚洲福利| 亚洲国产精品影院| 国产精品色婷婷| 精品日韩成人av| 欧美体内she精视频| 成人免费毛片高清视频| 日本午夜一区二区| 亚洲日本一区二区| 国产亚洲精品久| 欧美一二三区精品| 在线观看一区二区精品视频| 高清av一区二区| 免费的国产精品| 亚洲成av人片观看| 亚洲欧美韩国综合色| 久久综合久久综合九色| 制服丝袜av成人在线看| 欧美伊人久久大香线蕉综合69 | 久久奇米777| 91麻豆精品国产自产在线| 91亚洲精华国产精华精华液| 国产精品888| 久久国产欧美日韩精品| 五月天欧美精品| 亚洲一区二区在线免费看| 亚洲欧美自拍偷拍| 中文字幕欧美激情一区| 国产三级精品在线| 精品久久久久久最新网址| 日韩一区二区三区四区五区六区| 欧美日韩一区小说| 欧美性极品少妇| 欧美日韩激情在线| 欧美日韩国产在线播放网站| 欧美日韩性生活| 欧美精品v国产精品v日韩精品| 欧美日韩视频第一区| 欧美日韩久久一区二区| 欧美日韩中文国产| 欧美一区二区播放| 91精品欧美综合在线观看最新 | 91美女在线观看| 91蝌蚪porny| 日本久久一区二区| 欧美亚洲综合另类| 欧美高清视频一二三区 | 日本中文字幕不卡| 日韩精品一二三| 久久精品国产成人一区二区三区| 另类成人小视频在线| 国产一区二区精品久久99| 国产精品2024| 91年精品国产| 欧美日韩视频专区在线播放| 欧美一级夜夜爽| 久久精品亚洲麻豆av一区二区 | 精品免费视频一区二区| 2022国产精品视频| 国产精品电影院| 亚洲自拍偷拍av| 蜜臀av性久久久久蜜臀aⅴ流畅 | 久久久久久久综合| 国产精品欧美精品| 亚洲一区二区偷拍精品| 丝袜美腿亚洲一区二区图片| 精品综合久久久久久8888| 高清视频一区二区| 欧美亚洲国产怡红院影院| 欧美一区二区三区在线观看视频| 欧美岛国在线观看| 日韩美女精品在线| 青青草成人在线观看| 国产精品亚洲午夜一区二区三区 | 欧美一二三四区在线| 中文字幕av一区二区三区免费看 | 7777精品伊人久久久大香线蕉完整版| 日韩一区二区三区电影在线观看 | 日本精品免费观看高清观看| 欧美日韩国产综合一区二区| 久久综合999| 亚洲观看高清完整版在线观看 | 欧美在线免费观看视频| 精品国产三级电影在线观看| 亚洲人123区| 精品一区二区在线免费观看| 一本大道av一区二区在线播放| 精品欧美乱码久久久久久| 亚洲永久精品大片| 国产伦精品一区二区三区在线观看 | 精品剧情v国产在线观看在线| 亚洲图片欧美激情| 精品一区免费av| 欧美精品一卡两卡| 亚洲色大成网站www久久九九| 国产又黄又大久久| 91麻豆精品国产91久久久使用方法 | 91美女精品福利| 久久色.com| 男人操女人的视频在线观看欧美| 99久久久国产精品免费蜜臀| 欧美电视剧免费全集观看| 一区二区成人在线视频| 成人av午夜电影| 久久久久久亚洲综合影院红桃| 亚洲不卡一区二区三区| 色综合久久久久综合体| 久久久99精品免费观看| 久久电影网站中文字幕| 91麻豆精品国产| 亚洲图片欧美视频| 色综合av在线| 亚洲免费资源在线播放| 粉嫩高潮美女一区二区三区| 亚洲精品在线免费观看视频| 青草国产精品久久久久久| 欧美色精品在线视频| 亚洲第一激情av| 欧美精品一卡二卡| 亚洲国产一区二区三区青草影视| 色哦色哦哦色天天综合| 亚洲精品成人天堂一二三|