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

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

?? sysel3c90xend.c

?? Vxworks For PC Pentium 的BSP,已在Vmware上調試通過,可以在pentium/pentiumII/pentium/PentiumIV 上運行,以太網口工作正常. 調試環境,
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* sysEl3c90xEnd.c - system configuration module for el3c90xEnd driver *//* Copyright 1984-2001 Wind River Systems, Inc. *//*modification history--------------------01h,07mar02,pai  Specify pciIntConnect() as the default driver interrupt                 connect routine (SPR# 73501).01g,28nov01,pai  Added code to determine whether 32-bit NPF memory decoder is                 implemented.01f,18oct01,pai  Updated documentation and routines for new device discovery                 algorithm (SPR# 35716).01e,11oct01,bur  Added more device ids to el3c90xBrds[] for different 		 versions of 3COM 3c90x network cards.01d,01oct01,pai  Removed INCLUDE_MMU_BASIC conditional-compilation block.                 Fixed function comment-headers.01c,11sep01,hdn  replaced "irq + EXT_INTERRUPT_BASE" with INT_NUM_GET(irq)01b,12mar99, jkf renamed boardResource and pciResources to dev specific.01a,12mar99, cn  created.*//*DESCRIPTIONThis is the WRS-supplied configuration module for the VxWorksel3c90xEnd (elPci) END driver.  It has routines for initializingdevice resources and provides BSP-specific el3c90xEnd driver routinesfor 3Com EtherLink and Fast EtherLink PCI network interface cards. The number of supported devices that can be configured for a particularsystem is finite and is specified by the EL_3C90X_MAX_DEV configurationconstant found is this file.  This configuration constant, and the datastructures using it, can be modified in this file for specificimplementations.*/#if defined(INCLUDE_EL_3C90X_END)/* includes */#include "end.h"#include "drv/end/el3c90xEnd.h"/* defines *//* specify the maximum number of physical devices to configure */#define EL_3C90X_MAX_DEV        (8)#define THREECOM_PCI_VENDOR_ID   (0x10b7)   /* 3COM PCI vendor ID *//* BSP specific 3Com ethernet device type constants */#define TYPE_BOOMERANG_10BT           (1)   /* 3COM 3c900-TPO */#define TYPE_BOOMERANG_10BT_COMBO     (2)   /* 3COM 3c900-COMBO */#define TYPE_BOOMERANG_10_100BT       (3)   /* 3COM 3c905-TX */#define TYPE_BOOMERANG_100BT4         (4)   /* 3COM 3c905-T4 */#define TYPE_CYCLONE_10BT             (5)   /* 3COM 3c900B-TPO */#define TYPE_CYCLONE_10BT_COMBO       (6)   /* 3COM 3c900B-COMBO */#define TYPE_CYCLONE_10_100BT         (7)   /* 3COM 3c905B-TX */#define TYPE_CYCLONE_10_100BT4        (8)   /* 3COM 3c905B-T4 */#define TYPE_CYCLONE_10_100FX         (9)   /* 3COM 3c980-TX */#define TYPE_CYCLONE_10_100BT_SERV   (10)   /* 3COM 3c980-TX */#define TYPE_CYCLONE_10FL            (11)   /* 3COM 3c900B-FL */#define TYPE_CYCLONE_10_100_COMBO    (12)   /* 3COM 3c905B-COMBO */#define TYPE_KRAKATOA_10BT_TPC       (13)   /* 3COM 3c900B-TPC */#define TYPE_TORNADO_10_100BT        (14)   /* 3COM 3c920-TX */#define TYPE_TORNADO_10_100BT_SERV   (15)   /* 3COM 3c980-TX */#define TYPE_TORNADO_HOMECONNECT     (16)   /* 3COM Home Connect */#define TYPE_HURRICANE_SOHO100TX     (17)   /* 3COM Soho */#define EL_3C90X_END_FLAGS      (0)#define EL_3C90X_BUFF_MTPLR     (NONE)/* imports */IMPORT STATUS     sysMmuMapAdd (void * address, UINT len,                                UINT initialStateMask,                                UINT initialState);IMPORT END_OBJ *  el3c90xEndLoad (char *);IMPORT FUNCPTR    el3c90xIntConnectRtn;/* locals */LOCAL UINT32 etherLinkUnits = 0;     /* the number of physical units found *//* This string table stores English descriptions of supported devices. * TYPE_XXX device type constants index the table to get descriptions. */LOCAL const char * elDescription [] =    {    "3COM 3c90X Fast Etherlink Endhanced Network Driver."    "3COM 3c900-TPO Etherlink Endhanced Network Driver."    "3COM 3c900-COMBO Etherlink Endhanced Network Driver."    "3COM 3c905-TX Etherlink Endhanced Network Driver."    "3COM 3c905-T4 Etherlink Endhanced Network Driver."    "3COM 3c900B-TPO Etherlink Endhanced Network Driver."    "3COM 3c900B-COMBO Etherlink Endhanced Network Driver."    "3COM 3c905B-TX Etherlink Endhanced Network Driver."    "3COM 3c905B-T4 Etherlink Endhanced Network Driver."    "3COM 3c980-TX Etherlink Endhanced Network Driver."    "3COM 3c980-TX Etherlink Endhanced Network Driver."    "3COM 3c900B-FL Etherlink Endhanced Network Driver."    "3COM 3c905B-COMBO Etherlink Endhanced Network Driver."    "3COM 3c900B-TPC Etherlink Endhanced Network Driver."    "3COM 3c920-TX Etherlink Endhanced Network Driver."    "3COM 3c980-TX Etherlink Endhanced Network Driver."    "3COM 3c90X Home Connect Etherlink Endhanced Network Driver."    "3COM 3c90X Soho Etherlink Endhanced Network Driver."    };/* * This array defines the board-specific PCI resources.  Each table entry * stores this information for specific physical devices found on the system * bus.  There is a unique END unit associated with each unique physical * device recorded in this table.  The END unit number is equivalent to an * index into this table. */LOCAL PCI_BOARD_RESOURCE elPciResources [EL_3C90X_MAX_DEV] =    {    {NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE,    {NONE, NONE, NONE, NONE, NONE, NONE}, NULL    },    {NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE,    {NONE, NONE, NONE, NONE, NONE, NONE}, NULL    },    {NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE,    {NONE, NONE, NONE, NONE, NONE, NONE}, NULL    },    {NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE,    {NONE, NONE, NONE, NONE, NONE, NONE}, NULL    },    {NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE,    {NONE, NONE, NONE, NONE, NONE, NONE}, NULL    },    {NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE,    {NONE, NONE, NONE, NONE, NONE, NONE}, NULL    },    {NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE,    {NONE, NONE, NONE, NONE, NONE, NONE}, NULL    },    {NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE, NONE,    {NONE, NONE, NONE, NONE, NONE, NONE}, NULL    }    };/* forward declarations */LOCAL UINT32 sys3comDevToType (UINT32, UINT32, UINT8);LOCAL UINT32 sys3comMmioGet (UINT32, UINT32, UINT32);/********************************************************************************* sysEl3c90xPciInit - initialize a 3c90x PCI ethernet device** This routine performs basic PCI initialization for 3c90x PCI ethernet* devices supported by the el3c90xEnd END driver.  Parameters to this* routine specify a PCI function, including PCI ID registers, to* initialize.  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 3c90x physical device instances installed* on the PCI bus exceeds EL_3C90X_MAX_DEV, then the extra devices will not be* initialized in this routine.** RETURNS:* OK, or ERROR if the specified device is not supported, or if* the device could not be mapped into the local CPU memory space.*/STATUS sysEl3c90xPciInit    (    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 (etherLinkUnits >= EL_3C90X_MAX_DEV)        {        return (ERROR);        }    if ((boardType = sys3comDevToType (vendorId, deviceId, revisionId))        == BOARD_TYPE_UNKNOWN)        {        return (ERROR);        }    pciConfigInLong  (pciBus, pciDevice, pciFunc,                      PCI_CFG_BASE_ADDRESS_0, &ioBase);    ioBase &= PCI_IOBASE_MASK;    /* supported 3Com devices may or may not implement memory mapped IO */    if ((memIo32 = sys3comMmioGet (pciBus, pciDevice, pciFunc)) != NONE)        {        memIo32 &= PCI_MEMBASE_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);            }        }    /* get the interrupt line number (IRQ) for the device */    pciConfigInByte (pciBus, pciDevice, pciFunc,                     PCI_CFG_DEV_INT_LINE, &irq);    /* update the board-specific resource table */    elPciResources[etherLinkUnits].bar[0]     = ioBase;    elPciResources[etherLinkUnits].bar[1]     = memIo32;    elPciResources[etherLinkUnits].irq        = irq;    elPciResources[etherLinkUnits].irqvec     = INT_NUM_GET (irq);    elPciResources[etherLinkUnits].vendorID   = vendorId;    elPciResources[etherLinkUnits].deviceID   = deviceId;    elPciResources[etherLinkUnits].revisionID = revisionId;    elPciResources[etherLinkUnits].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);    ++etherLinkUnits;  /* increment number of units initialized */    /* Bind the driver-specific PCI interrupt connection routine. */    el3c90xIntConnectRtn = (FUNCPTR) pciIntConnect;    return (OK);    }/********************************************************************************* sysEl3c90xIntEnable - enable 3c90x ethernet device interrupts** This routine enables el3c90x interrupts.  This may involve operations on* interrupt control hardware.** RETURNS: OK or ERROR for invalid arguments.*/STATUS sysEl3c90xIntEnable    (    int    level        /* level number */    )    {    return (sysIntEnablePIC (level));    }/********************************************************************************* sysEl3c90xIntDisable - disable 3c90x ethernet device interrupts** This routine disables el3c90x interrupts.  This may involve operations on* interrupt control hardware.** RETURNS: OK or ERROR for invalid arguments.*/STATUS sysEl3c90xIntDisable    (    int    level        /* level number */    )    {    return (sysIntDisablePIC (level));    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品国产精品网麻豆系列| 91精品国产日韩91久久久久久| 日韩va亚洲va欧美va久久| 亚洲视频一二三| 国产精品久久久久久久久久免费看| 久久久久久久久久久久电影| 日韩一区二区高清| 日韩亚洲电影在线| 国产亚洲欧美一区在线观看| 日韩欧美一区中文| 久久免费电影网| 中文av一区二区| 最新日韩在线视频| 亚洲亚洲人成综合网络| 日韩激情在线观看| 蜜桃视频在线观看一区二区| 加勒比av一区二区| 岛国精品在线观看| 色哟哟国产精品免费观看| 欧美日韩一区二区不卡| 日韩三级精品电影久久久| 亚洲精品一区二区三区四区高清 | proumb性欧美在线观看| 一本大道久久a久久综合| 欧美日韩一区成人| 久久一日本道色综合| 亚洲视频在线一区观看| 午夜天堂影视香蕉久久| 国产精品资源在线看| 91一区二区三区在线观看| 欧美日韩高清一区| 国产亚洲欧美日韩俺去了| 亚洲欧美成人一区二区三区| 日本一不卡视频| 成人va在线观看| 欧美一区二区三区喷汁尤物| 国产精品久久久久久久久快鸭| 美女视频黄频大全不卡视频在线播放| 精品一区二区成人精品| 色综合 综合色| 欧美精品一区二| 亚洲高清免费在线| 国产成人精品免费网站| 欧美高清一级片在线| 中文字幕av免费专区久久| 日韩不卡在线观看日韩不卡视频| 国产一区91精品张津瑜| 欧美精品一级二级| 亚洲欧美综合色| 国模大尺度一区二区三区| 欧美私模裸体表演在线观看| 欧美韩国日本一区| 国内精品写真在线观看| 欧美久久久一区| 亚洲精品国产精华液| 国产精品一区二区三区乱码| 日韩一区二区高清| 亚洲bt欧美bt精品| 在线一区二区三区四区| 亚洲国产成人一区二区三区| 男男成人高潮片免费网站| 在线观看中文字幕不卡| 亚洲欧美一区二区视频| 国产精品亚洲专一区二区三区 | 国产原创一区二区| 中文字幕欧美三区| 蜜臀久久99精品久久久久宅男| 一本到不卡免费一区二区| 中文字幕一区二区三区四区不卡| 国产精品亚洲专一区二区三区| 精品久久久久久久人人人人传媒| 五月综合激情网| 欧美午夜免费电影| 亚洲伊人色欲综合网| 在线影院国内精品| 亚洲最新视频在线观看| 色噜噜夜夜夜综合网| 亚洲免费大片在线观看| 日本高清不卡一区| 亚洲午夜久久久久久久久久久 | 欧美唯美清纯偷拍| 亚洲国产精品欧美一二99| 欧美亚洲尤物久久| 午夜免费久久看| 日韩一区二区在线免费观看| 蜜臀久久99精品久久久画质超高清| 欧美精品色综合| 麻豆精品精品国产自在97香蕉| 日韩视频一区在线观看| 国产乱码精品一区二区三区忘忧草| 26uuu精品一区二区三区四区在线| 国产麻豆欧美日韩一区| 国产精品看片你懂得| 99久久婷婷国产精品综合| 夜夜嗨av一区二区三区网页 | 国产日韩欧美激情| 欧美系列日韩一区| 极品少妇一区二区三区精品视频| 久久亚洲私人国产精品va媚药| 成人激情小说乱人伦| 亚洲在线一区二区三区| 欧美日韩一区二区欧美激情| 精品一区二区成人精品| 亚洲日本在线a| 欧美老女人第四色| 国产成人综合网| 亚洲综合色视频| 精品人在线二区三区| 大胆欧美人体老妇| 婷婷丁香久久五月婷婷| 国产日本欧美一区二区| 欧美日韩成人在线| 国产成人啪免费观看软件| 一区二区三区中文字幕| 精品国产乱码久久久久久闺蜜 | 欧美精品自拍偷拍| 国产成人精品免费视频网站| 午夜精品福利一区二区蜜股av| 久久色中文字幕| 欧美视频三区在线播放| 国产成人综合视频| 亚洲国产欧美在线| 国产精品网站在线观看| 欧美一级高清片| 91丝袜高跟美女视频| 国产米奇在线777精品观看| 亚洲午夜一区二区三区| 中文一区在线播放| 精品欧美一区二区三区精品久久| 在线精品视频免费观看| 欧美日韩一区中文字幕| 国产.欧美.日韩| 久久精品99国产精品| 亚洲激情图片小说视频| 国产精品拍天天在线| 久久精品日韩一区二区三区| 91精品一区二区三区在线观看| 日本韩国欧美国产| 99国产精品久久久久久久久久久 | 国产精品网站在线播放| 日韩精品中文字幕一区二区三区| 欧美少妇一区二区| 色婷婷久久99综合精品jk白丝| 国产激情视频一区二区三区欧美 | 中文无字幕一区二区三区| 欧美电视剧在线观看完整版| 欧美日韩在线三级| 欧美色图片你懂的| 91久久精品网| 欧美在线影院一区二区| 色哟哟一区二区在线观看| 99久久伊人久久99| 色综合视频一区二区三区高清| av综合在线播放| 97久久精品人人爽人人爽蜜臀| 北条麻妃国产九九精品视频| 懂色av一区二区三区免费看| 国产精品一二三四五| 色久综合一二码| 在线观看免费成人| 欧美美女一区二区在线观看| 欧美精品色综合| 欧美成人video| 久久精品一区八戒影视| 国产精品无人区| 亚洲免费资源在线播放| 一区二区三区国产| 五月开心婷婷久久| 久久福利视频一区二区| 风流少妇一区二区| 99精品黄色片免费大全| 欧美日本韩国一区二区三区视频| 欧美精品tushy高清| 久久久久久久综合日本| 国产精品成人免费在线| 亚洲风情在线资源站| 激情文学综合网| 91在线码无精品| 91超碰这里只有精品国产| 精品国产不卡一区二区三区| 欧美高清在线精品一区| 亚洲自拍偷拍九九九| 久久99国产精品尤物| voyeur盗摄精品| 91精品国产黑色紧身裤美女| 亚洲国产成人私人影院tom| 亚洲一区免费在线观看| 国产伦精一区二区三区| 一本大道久久a久久精品综合| 91麻豆精品国产91久久久更新时间| 精品国产免费人成电影在线观看四季| 国产精品美女久久久久aⅴ国产馆 国产精品美女久久久久av爽李琼 国产精品美女久久久久高潮 | 中文字幕一区二区三| 国产一区二区0| 欧美日韩精品高清| 国产精品免费久久| 强制捆绑调教一区二区| 不卡av免费在线观看| 日韩区在线观看| 一区二区三区四区激情|