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

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

?? sysel3c90xend.c

?? pentium4 pc的vxworks bsp源代碼
?? 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一区二区三区免费野_久草精品视频
国产福利一区二区三区| 欧美一级免费大片| 日韩一区二区三区视频在线观看| 欧美精品一区二区精品网| 最新国产の精品合集bt伙计| 美女视频一区在线观看| 成人短视频下载| wwww国产精品欧美| 日韩国产欧美三级| 在线这里只有精品| 国产精品久久一卡二卡| 国产福利精品一区二区| 日韩网站在线看片你懂的| 一区二区三区.www| 色综合天天综合在线视频| 国产精品不卡视频| 激情久久五月天| 欧美日韩成人在线| 亚洲综合色区另类av| 成人精品免费看| 国产校园另类小说区| 精品中文av资源站在线观看| 欧美精品日韩一本| 亚洲国产裸拍裸体视频在线观看乱了| 成人国产电影网| 国产色产综合产在线视频| 国产在线播放一区二区三区| 日韩欧美激情在线| 麻豆成人久久精品二区三区小说| 91精品欧美一区二区三区综合在| 亚洲在线观看免费视频| 色网站国产精品| 一区二区三区在线影院| 91久久国产综合久久| 一级中文字幕一区二区| 欧洲亚洲国产日韩| 天堂影院一区二区| 91精品在线一区二区| 三级精品在线观看| 精品乱人伦小说| 国产成人亚洲综合a∨婷婷| 国产日韩精品一区二区三区| 成人精品小蝌蚪| 亚洲免费在线播放| 欧美午夜电影网| 奇米影视一区二区三区小说| 欧美mv日韩mv亚洲| 国产91精品一区二区麻豆网站| 久久久久久久综合日本| 99精品视频一区二区三区| 亚洲免费在线播放| 制服丝袜在线91| 精品一区二区免费在线观看| 中文字幕av一区二区三区免费看| 91无套直看片红桃| 婷婷久久综合九色综合伊人色| 欧美sm极限捆绑bd| 91影视在线播放| 日韩在线a电影| 国产欧美1区2区3区| 在线欧美小视频| 麻豆精品在线播放| 一区在线观看视频| 欧美一区在线视频| 不卡的电影网站| 日韩 欧美一区二区三区| 欧美激情一区二区三区蜜桃视频| 色一情一伦一子一伦一区| 日韩1区2区日韩1区2区| 欧美激情一区二区三区四区| 欧美日韩亚洲综合在线| 成人国产精品免费观看| 日韩av不卡一区二区| 国产精品传媒在线| 欧美不卡一二三| 色哟哟一区二区| 国产伦理精品不卡| 亚洲成人自拍网| 成人欧美一区二区三区1314 | 成人性生交大片| 一区二区三区不卡视频在线观看| 日韩精品一区二区三区在线| 色婷婷精品大视频在线蜜桃视频 | 亚洲自拍偷拍综合| 久久综合成人精品亚洲另类欧美| 色久优优欧美色久优优| 国产乱码精品1区2区3区| 午夜成人在线视频| 国产精品国产成人国产三级| 精品国免费一区二区三区| 欧美系列一区二区| 91亚洲国产成人精品一区二三| 免费观看日韩电影| 亚洲1区2区3区4区| 亚洲免费观看高清在线观看| 久久女同精品一区二区| 91精品国产福利在线观看 | 福利一区二区在线| 精品亚洲porn| 麻豆freexxxx性91精品| 午夜天堂影视香蕉久久| 亚洲资源中文字幕| 亚洲一区二区欧美激情| 国产精品国产自产拍高清av王其 | 国产精品久久二区二区| 国产欧美精品一区二区色综合 | 一本色道久久综合亚洲aⅴ蜜桃 | 日韩欧美在线影院| 777午夜精品免费视频| 欧美美女激情18p| 欧美日韩免费电影| 欧美少妇性性性| 欧美精品在线观看播放| 3d成人动漫网站| 91麻豆精品国产91久久久久| 欧美日韩不卡视频| 制服丝袜亚洲色图| 日韩精品在线网站| 久久久久国产一区二区三区四区| 亚洲精品一线二线三线| 久久老女人爱爱| 国产精品久久久久一区| 亚洲另类在线一区| 一片黄亚洲嫩模| 日韩在线a电影| 国产在线国偷精品免费看| 国内成人精品2018免费看| 国产乱妇无码大片在线观看| 国产一区二区不卡在线| 国产白丝网站精品污在线入口| 成人深夜视频在线观看| 91成人网在线| 日韩欧美色电影| 欧美激情一区二区三区四区 | 精品一区二区三区日韩| 国产精品亚洲а∨天堂免在线| 成人av资源在线| 欧美日韩国产综合视频在线观看| 欧美一级欧美一级在线播放| 久久久天堂av| 亚洲精品日韩专区silk| 日韩黄色小视频| 国产激情一区二区三区四区| 色综合久久九月婷婷色综合| 91麻豆精品国产91久久久使用方法| 久久一区二区视频| 一区二区视频在线看| 奇米色一区二区| 99riav一区二区三区| 日韩一区二区三区免费看| 日本一区二区久久| 日韩电影在线看| 成人免费视频一区| 在线综合亚洲欧美在线视频| 国产日本欧洲亚洲| 日韩va欧美va亚洲va久久| proumb性欧美在线观看| 欧美一区二区福利视频| 亚洲欧洲www| 韩国成人精品a∨在线观看| 欧美主播一区二区三区| 久久久久久99精品| 日韩高清不卡一区二区三区| 国产成人精品一区二| 91精品国产入口| 亚洲最新视频在线播放| 国产成人免费在线观看| 欧美一区二区三区在| 亚洲欧美一区二区久久| 国产福利一区二区三区视频| 91精品中文字幕一区二区三区| 亚洲蜜臀av乱码久久精品蜜桃| 韩国成人福利片在线播放| 91精品国产91热久久久做人人| 亚洲欧美福利一区二区| 成人午夜视频福利| 精品国产乱码久久久久久1区2区| 亚洲午夜一区二区| 96av麻豆蜜桃一区二区| 久久久欧美精品sm网站 | 亚洲成人av免费| 99久久99久久综合| 国产亚洲欧美日韩俺去了| 麻豆国产欧美一区二区三区| 在线视频一区二区三区| 国产精品久久久久久亚洲毛片| 精品写真视频在线观看| 日韩欧美国产综合一区| 天涯成人国产亚洲精品一区av| 99re视频精品| 国产精品久久久久久久岛一牛影视 | 精品视频1区2区3区| 亚洲精品日日夜夜| 色猫猫国产区一区二在线视频| 国产精品天美传媒| 成人的网站免费观看| 国产精品麻豆一区二区| 9久草视频在线视频精品| 中文字幕成人在线观看| 成人av电影在线|