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

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

?? sysel3c90xend.c

?? Kontron的ETX-P3T的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一区二区三区免费野_久草精品视频
国产午夜精品久久久久久免费视 | 亚洲欧洲av另类| 777a∨成人精品桃花网| 欧美四级电影网| 欧美视频在线观看一区二区| 91蜜桃网址入口| 色综合天天综合| 欧美日韩一区在线观看| 欧美男同性恋视频网站| 制服丝袜成人动漫| 日韩精品一区二区三区在线观看| 这里只有精品电影| 欧美成人艳星乳罩| 国产精品久久久久久久久图文区| 亚洲欧美日韩国产另类专区 | 在线播放91灌醉迷j高跟美女| 欧美探花视频资源| 精品久久一二三区| 国产精品国产馆在线真实露脸| 一区二区三区中文字幕在线观看| 午夜欧美视频在线观看| 九一九一国产精品| 91丨porny丨中文| 欧美电影一区二区| 久久九九久久九九| 亚洲一区二区三区四区在线免费观看| 青娱乐精品视频在线| 国产丶欧美丶日本不卡视频| 色综合一个色综合| 欧美sm极限捆绑bd| 国产精品免费aⅴ片在线观看| 樱花草国产18久久久久| 美女网站一区二区| 一本大道av伊人久久综合| 制服视频三区第一页精品| 亚洲国产精品高清| 三级欧美韩日大片在线看| 粉嫩av一区二区三区| 91精品欧美福利在线观看| 日韩毛片一二三区| 激情伊人五月天久久综合| 91久久精品国产91性色tv| 久久天天做天天爱综合色| 亚洲成人av免费| av一区二区不卡| 欧美一区二区在线免费观看| 国产精品久线在线观看| 久久国产精品第一页| 欧美午夜精品电影| 亚洲女同女同女同女同女同69| 久久疯狂做爰流白浆xx| 欧美亚州韩日在线看免费版国语版| 久久久蜜臀国产一区二区| 日韩精品久久久久久| www.爱久久.com| 久久久亚洲精华液精华液精华液| 午夜激情一区二区| 91小视频免费看| 1区2区3区欧美| 成人免费毛片片v| 久久免费国产精品| 国内外成人在线| 精品国产伦一区二区三区观看方式| 亚洲成人自拍偷拍| 91国偷自产一区二区开放时间| 中文在线资源观看网站视频免费不卡| 六月丁香婷婷久久| 91麻豆精品国产| 日韩1区2区3区| 欧美一区二区视频网站| 石原莉奈一区二区三区在线观看| 欧美最猛性xxxxx直播| 伊人开心综合网| 欧洲精品一区二区三区在线观看| 国产精品视频线看| av成人老司机| 一区二区三区成人在线视频| 在线观看免费亚洲| 亚洲成人免费电影| 欧美一级免费观看| 久久se精品一区精品二区| 欧美mv日韩mv国产网站app| 麻豆91免费看| 久久久久久久av麻豆果冻| 国产精品一品二品| 综合久久久久久久| 欧美在线观看一二区| 午夜精品免费在线| 欧美va在线播放| 成人av网站在线| 亚洲电影一级片| 日韩一级大片在线观看| 国产精品一区久久久久| 中文字幕不卡在线观看| 在线观看日韩高清av| 蜜乳av一区二区| 国产精品视频麻豆| 欧美精品久久久久久久多人混战 | 色94色欧美sute亚洲线路二| 一区二区三区中文字幕电影| 欧美精品久久久久久久久老牛影院| 麻豆国产精品视频| 国产精品你懂的在线欣赏| 欧美午夜在线观看| 精品一区二区三区的国产在线播放| 国产免费观看久久| 欧美喷潮久久久xxxxx| 国产福利91精品一区二区三区| 亚洲男人的天堂一区二区| 91精品国产高清一区二区三区| 国产精品亚洲人在线观看| 亚洲永久免费视频| 久久久精品中文字幕麻豆发布| 91丨九色porny丨蝌蚪| 黄色成人免费在线| 亚洲精品少妇30p| 国产欧美综合色| 日韩一区二区高清| 色狠狠av一区二区三区| 国模大尺度一区二区三区| 亚洲永久精品国产| 国产精品国产三级国产普通话99 | 欧美精品一区二区高清在线观看| 一本一道久久a久久精品| 狠狠色综合日日| 亚洲成人中文在线| 亚洲欧美激情小说另类| 国产日韩一级二级三级| 欧美福利视频一区| 在线视频观看一区| 97久久超碰国产精品电影| 国产一区二区三区不卡在线观看 | 久久噜噜亚洲综合| 制服丝袜成人动漫| 欧美午夜精品久久久久久超碰| 波多野结衣一区二区三区 | 亚洲精品综合在线| 国产精品久久久久aaaa| 久久久久亚洲蜜桃| 精品精品国产高清a毛片牛牛| 宅男噜噜噜66一区二区66| 欧美视频一区二区| 色www精品视频在线观看| av一区二区三区四区| 成人黄色大片在线观看| 懂色av一区二区三区蜜臀| 激情图区综合网| 国内精品写真在线观看| 狠狠久久亚洲欧美| 韩国精品主播一区二区在线观看 | 日日摸夜夜添夜夜添亚洲女人| 一区二区三区日韩| 亚洲午夜免费视频| 亚洲午夜在线视频| 蜜桃精品视频在线| 蜜桃av一区二区在线观看| 亚洲国产精品成人综合| 久久网这里都是精品| 精品少妇一区二区三区在线视频| 欧美精品在线观看一区二区| 欧美性感一区二区三区| 欧美精品九九99久久| 日韩欧美的一区| 久久久久久黄色| 国产精品伦理在线| 18欧美亚洲精品| 亚洲自拍都市欧美小说| 天天综合网天天综合色| 免费视频最近日韩| 国产精品白丝av| 色噜噜久久综合| 日韩亚洲欧美在线| 国产精品天天看| 亚洲国产视频在线| 韩日精品视频一区| aaa亚洲精品| 欧美一区三区二区| 国产精品美女视频| 天天综合网 天天综合色| 国产一区二区三区综合| 91国在线观看| 欧美一区二区日韩一区二区| 国产亚洲一区二区三区四区| 国产精品久久久久四虎| 日韩精品三区四区| 99久久久久久| 日韩精品一区二区三区在线观看 | 免费观看在线综合色| 国产99一区视频免费| 欧美日韩一区二区三区不卡| 精品剧情v国产在线观看在线| 亚洲私人黄色宅男| 精品一区二区在线播放| 色久优优欧美色久优优| 日韩久久久久久| 亚洲自拍偷拍麻豆| 夫妻av一区二区| 日韩一区二区三区免费看| 亚洲男女毛片无遮挡| 狠狠狠色丁香婷婷综合久久五月|