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

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

?? sysln97xend.c

?? Kontron的ETX-P3T的BSP的源代碼
?? C
?? 第 1 頁 / 共 2 頁
字號:
* type value defined in this file.** INTERNAL* The PCI Vendor and Device IDs are the same for all driver supported* Am79c97x devices.  When an instance is located, the PCI Revision ID is* 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));            }        }    /* 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;        }    bcopy (aprom, enetAdrs, 6);    return (OK);    }#endif /* INCLUDE_LN_97X_END */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线免费观看视频一区| 国产亚洲欧美一区在线观看| 91麻豆精品国产91久久久久久 | 91精品国产一区二区三区香蕉| 久久麻豆一区二区| 日韩不卡一区二区| av激情亚洲男人天堂| 欧美videos大乳护士334| 亚洲福利一区二区| 99re这里只有精品视频首页| 精品久久国产老人久久综合| 亚洲国产精品麻豆| 色婷婷一区二区三区四区| xf在线a精品一区二区视频网站| 日韩精品成人一区二区三区| 色狠狠桃花综合| ...av二区三区久久精品| 韩国精品一区二区| 日韩免费视频一区二区| 午夜国产不卡在线观看视频| 色乱码一区二区三区88| 亚洲欧美电影院| 91原创在线视频| 亚洲欧洲一区二区在线播放| 波多野洁衣一区| 国产精品高潮呻吟| 粉嫩av亚洲一区二区图片| 精品剧情在线观看| 国产自产高清不卡| 久久综合九色综合97婷婷女人| 蜜臀久久久久久久| 日韩一区二区三| 美脚の诱脚舐め脚责91| 日韩欧美国产高清| 寂寞少妇一区二区三区| 久久综合色8888| 国产成人av电影在线观看| 国产亚洲美州欧州综合国| 成人免费高清在线| 综合在线观看色| 欧美在线视频全部完| 性感美女久久精品| 欧美电影在线免费观看| 蜜桃一区二区三区在线观看| 欧美tickling网站挠脚心| 捆绑调教一区二区三区| 国产日产欧美一区| 99久久99久久免费精品蜜臀| 亚洲一级电影视频| 欧美一级国产精品| 成人自拍视频在线观看| 亚洲免费av高清| 日韩一区二区视频| 成人高清视频免费观看| 依依成人综合视频| 日韩一级视频免费观看在线| 国产精品18久久久久久vr| 中文字幕五月欧美| 欧美一区三区二区| 成人免费视频网站在线观看| 一区二区三区免费| 精品国产乱码久久久久久闺蜜| 国产iv一区二区三区| 一区二区久久久久久| 欧美videofree性高清杂交| 成人动漫一区二区三区| 亚洲成人三级小说| 国产丝袜在线精品| 欧美理论在线播放| 成人激情免费电影网址| 亚洲www啪成人一区二区麻豆| 久久中文字幕电影| 欧美人与禽zozo性伦| 高清在线不卡av| 免费看日韩精品| 亚洲男人天堂一区| 久久婷婷国产综合国色天香| 欧美日韩一区二区三区免费看 | 精品三级av在线| 色婷婷av一区二区| 福利电影一区二区三区| 久久97超碰国产精品超碰| 欧美国产1区2区| 日韩欧美一级片| 欧美最猛性xxxxx直播| 成人av网站在线| 国产一区在线不卡| 日本中文在线一区| 亚洲一卡二卡三卡四卡五卡| 国产精品福利影院| 久久精品水蜜桃av综合天堂| 日韩欧美综合在线| 欧美天天综合网| 99久久99久久精品免费观看| 国产成人精品免费在线| 久久99精品国产麻豆婷婷 | 亚洲手机成人高清视频| 精品久久久久久久久久久院品网 | 在线观看三级视频欧美| 成人午夜又粗又硬又大| 国产盗摄精品一区二区三区在线 | 国产精品丝袜在线| 精品国产乱码久久久久久闺蜜| 欧美日本韩国一区二区三区视频| 一本大道av一区二区在线播放| 国产99精品视频| 国产专区综合网| 国产一区欧美一区| 国产一区二区调教| 国产综合色精品一区二区三区| 久久精品国产**网站演员| 天天操天天色综合| 午夜久久福利影院| 日韩精品欧美成人高清一区二区| 一区二区成人在线观看| 亚洲一区二区在线免费看| 伊人色综合久久天天| 亚洲一区成人在线| 肉色丝袜一区二区| 免费一级欧美片在线观看| 麻豆精品一区二区综合av| 免费av网站大全久久| 狠狠色丁香久久婷婷综| 国产高清不卡二三区| 播五月开心婷婷综合| 99综合电影在线视频| 91捆绑美女网站| 欧美色精品在线视频| 欧美高清视频www夜色资源网| 91精品一区二区三区久久久久久| 日韩一级片在线播放| 久久综合五月天婷婷伊人| 欧美国产国产综合| 亚洲综合在线视频| 免费久久99精品国产| 国产成人精品免费在线| 色嗨嗨av一区二区三区| 欧美美女一区二区| 久久久精品免费网站| 亚洲视频 欧洲视频| 日韩av一级片| 91猫先生在线| 日韩一区二区影院| 中文字幕精品在线不卡| 亚洲综合免费观看高清完整版在线| 香蕉久久一区二区不卡无毒影院| 韩国女主播一区二区三区| heyzo一本久久综合| 欧美精品乱码久久久久久按摩| 久久久久97国产精华液好用吗| 亚洲精品成人在线| 激情六月婷婷久久| 在线亚洲一区二区| 精品日本一线二线三线不卡| 亚洲欧美日韩中文字幕一区二区三区 | 中文字幕欧美三区| 亚洲va欧美va天堂v国产综合| 国模娜娜一区二区三区| 日本精品一区二区三区四区的功能| 91精品国产综合久久精品app | 成人看片黄a免费看在线| 欧美日韩二区三区| 国产精品久久久久久久久免费樱桃| 午夜精品影院在线观看| 成人免费毛片嘿嘿连载视频| 91精品中文字幕一区二区三区| 国产精品国产自产拍高清av| 蜜臀91精品一区二区三区| 一本大道av伊人久久综合| 久久综合色鬼综合色| 日韩成人dvd| 欧美性猛交xxxx乱大交退制版 | 久久久国产一区二区三区四区小说 | 亚洲狠狠丁香婷婷综合久久久| 国内精品免费**视频| 91猫先生在线| 国产精品成人午夜| 国产乱色国产精品免费视频| 91麻豆精品国产自产在线| 一区二区免费在线| 91麻豆国产自产在线观看| 国产欧美日韩麻豆91| 极品少妇一区二区| 日韩一二三四区| 肉色丝袜一区二区| 在线不卡中文字幕播放| 一区二区三区四区亚洲| 91免费在线播放| 最新国产成人在线观看| 99国产一区二区三精品乱码| 久久久久久久久久电影| 久久精品国产免费| 欧美一二三四区在线| 日韩国产精品久久| 5858s免费视频成人| 天天综合色天天综合| 在线综合视频播放| 日本不卡视频在线观看| 91麻豆精品国产91久久久久| 天天色综合成人网|