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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? sysln97xend.c

?? pentium4 pc的vxworks bsp源代碼
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* sysLn97xEnd.c - system configuration module for AMD 79C97x END driver */ /* Copyright 1984-2001 Wind River Systems, Inc. *//*modification history--------------------01d,11oct01,pai  Now using VM_STATE_MASK_FOR_ALL and VM_STATE_FOR_PCI in                 sysMmuMapAdd call.  Updated documentation and routines                 for new device discovery algorithm (SPR# 35716).01c,09oct01,pai  Corrected variable usage in sysLn97xEndLoad and                 sysLan97xPciInit.  Conditionally compile PCI_DEV_MMU_MSK                 and PCI_DEV_ADRS_SIZE.01b,05oct01,pai  Removed inaccurate commentary in sysLan97xPciInit().01a,02oct01,pai  Written from sysNetif.  Implemented a new BSP driver load                 routine that processes multiple physical devices and END                 units.  This replaces sysLan97xInitStrCook (SPR #35716).*//*DESCRIPTIONThis is the WRS-supplied configuration module for the VxWorksln97xEnd (lnPci) END driver.  It initializes device resources andprovides BSP-specific ln97xEnd driver routines for any Am79C970A,Am79C971, Am79C972, and Am79C973 PCnet-PCI ethernet devices found onthe system.The number of supported devices that can be configured for a particularsystem is finite and is specified by the LN97X_MAX_DEV configurationconstant in this file.  This value, and the internal data structuresusing it, can be modified in this file for specific implementations.*/#if defined(INCLUDE_LN_97X_END)/* namespace collisions */#undef CSR  /* redefined in ln97xEnd.h (temporary fix) *//* includes */#include "end.h"#include "drv/end/ln97xEnd.h"/* defines *//* specify the maximum number of physical devices to configure */#define LN97X_MAX_DEV           (8)/* AMD 79C97x 10/100Base-TX PCI Ethernet Board Types */#define AMD_PCI_VENDOR_ID       (0x1022)  /* AMD PCI vendor ID */#define LN97X_PCI_VENDOR_ID     (0x1022)  /* AMD PCI vendor ID */#define LN97X_PCI_DEVICE_ID     (0x2000)  /* Am79c97x device ID */#define LN970_PCI_REV_MASK      (0x10)    /* Am79c970A PCI rev mask */#define LN971_PCI_REV_MASK      (0x20)    /* Am79c971  PCI rev mask */#define LN972_PCI_REV_MASK      (0x30)    /* Am79c972  PCI rev mask */#define LN973_PCI_REV_MASK      (0x40)    /* Am79c973  PCI rev mask *//* LN_TYPE_97x values are equivalent to (LN97x_PCI_REV_MASK >> 4) */#define LN_TYPE_970             (1)       /* Am97c970A PCNet-PCI II */#define LN_TYPE_971             (2)       /* Am97c971  PCNet-Fast   */#define LN_TYPE_972             (3)       /* Am97c972  PCNet-Fast+  */#define LN_TYPE_973             (4)       /* Am97c973  PCNet-Fast III *//* driver configuration flags *//* The <offset> parameter specifies the offset from which a packet has * to be loaded from the beginning of a device buffer.  Normally, this * parameter is zero except for architectures which access long words * only on aligned addresses.  For these architectures, the value of * this <offset> should be 2. */#define LN97X_OFFS_VALUE        (0)       /* driver <offset> value */#define LN97X_CSR3_VALUE        (0)       /* CSR3 register value */#define LN97X_RSVD_FLAGS        (0)       /* driver <flags> value *//* imports */IMPORT STATUS    sysMmuMapAdd (void * address, UINT len,                               UINT initialStateMask,                               UINT initialState);IMPORT END_OBJ * ln97xEndLoad (char *);/* locals */ LOCAL int ln97XUnits = 0;  /* the number of physical units found *//* This string table stores English descriptions of supported devices. * LN_TYPE_97x values index the table to obtain board descriptions. */LOCAL const char * ln97xStrDesc [] =    {    "AMD 79C97x PCI Enhanced Network Driver",    "AMD Am79C970A PCnet-PCI II Enhanced Network Driver",    "AMD Am79C971 PCnet-FAST Enhanced Network Driver",    "AMD Am79C972 PCnet-FAST+ Enhanced Network Driver",    "AMD Am79C973 PCnet-FAST III Enhanced Network Driver"    };/* * This array defines the board-specific PCI resources.  There is one * unique END unit associated with one unique physical device recorded * in this table.  The END unit number is equivalent to an index into * this table. */ LOCAL PCI_BOARD_RESOURCE ln97xPciResources [LN97X_MAX_DEV] =    {    {NONE, NONE, NONE, AMD_PCI_VENDOR_ID, LN97X_PCI_DEVICE_ID,     LN970_PCI_REV_MASK, LN_TYPE_970, NONE, NONE,    {NONE, NONE, NONE, NONE, NONE, NONE}, NULL    },    {NONE, NONE, NONE, AMD_PCI_VENDOR_ID, LN97X_PCI_DEVICE_ID,     LN970_PCI_REV_MASK, LN_TYPE_970, NONE, NONE,    {NONE, NONE, NONE, NONE, NONE, NONE}, NULL    },    {NONE, NONE, NONE, AMD_PCI_VENDOR_ID, LN97X_PCI_DEVICE_ID,     LN970_PCI_REV_MASK, LN_TYPE_970, NONE, NONE,    {NONE, NONE, NONE, NONE, NONE, NONE}, NULL    },    {NONE, NONE, NONE, AMD_PCI_VENDOR_ID, LN97X_PCI_DEVICE_ID,     LN970_PCI_REV_MASK, LN_TYPE_970, NONE, NONE,    {NONE, NONE, NONE, NONE, NONE, NONE}, NULL    },    {NONE, NONE, NONE, AMD_PCI_VENDOR_ID, LN97X_PCI_DEVICE_ID,     LN970_PCI_REV_MASK, LN_TYPE_970, NONE, NONE,    {NONE, NONE, NONE, NONE, NONE, NONE}, NULL    },    {NONE, NONE, NONE, AMD_PCI_VENDOR_ID, LN97X_PCI_DEVICE_ID,     LN970_PCI_REV_MASK, LN_TYPE_970, NONE, NONE,    {NONE, NONE, NONE, NONE, NONE, NONE}, NULL    },    {NONE, NONE, NONE, AMD_PCI_VENDOR_ID, LN97X_PCI_DEVICE_ID,     LN970_PCI_REV_MASK, LN_TYPE_970, NONE, NONE,    {NONE, NONE, NONE, NONE, NONE, NONE}, NULL    },    {NONE, NONE, NONE, AMD_PCI_VENDOR_ID, LN97X_PCI_DEVICE_ID,     LN970_PCI_REV_MASK, LN_TYPE_970, NONE, NONE,    {NONE, NONE, NONE, NONE, NONE, NONE}, NULL    }    };/* forward declarations */LOCAL UINT32 sysLn97xDev2Type (UINT32, UINT32, UINT8);/******************************************************************************** sysLn97xEndLoad - construct a load string and load an Am79C97x device** This routine will be invoked by the MUX for the purpose of loading* an Am79C97x (lnPci) device with initial parameters.  This routine is* constructed as an interface wrapper for the driver load routine.* Thus, the arguments and return values are consistent with any* xxxEndLoad() routine defined for an END driver and the MUX API.** INTERNAL* The muxDevLoad() operation calls this routine twice.  A zero length* <pParamStr> parameter string indicates that this is the first time* through this routine.  The driver load routine should return the* driver name in <pParamStr>.** On the second pass though this routine, the initialization parameter* string is constructed.  Note that on the second pass, the <pParamStr>* consists of a colon-delimeted END device unit number and rudimentary* initialization string (often empty) constructed from entries in the* BSP END Device Table such that:**     <pParamStr> = "<unit>:<default initialization string>"** In the process of building the rest of <pParamStr>, the prepended unit* number must be preserved and passed to the driver load routine.  The* <default initialization string> portion mentioned above is discarded,* but future versions of this routine may use it.** The complete ln97xEnd driver load string has format:**     <unit>:<devMemAddr>:<devIoAddr>:<pciMemBase:<vecNum>:<intLvl>:*     <memAdrs>:<memSize>:<memWidth>:<csr3b>:<offset>:<flags>** RETURNS: An END object pointer, or NULL on error, or 0 and the name of the* device if the <pParamStr> was NULL.** SEE ALSO: ln97xEndLoad()*/END_OBJ * sysLn97xEndLoad    (    char *      pParamStr,   /* pointer to initialization parameter string */    void *      unused       /* unused optional argument */    )    {    END_OBJ *   pEnd;    char        paramStr [END_INIT_STR_MAX];    static const char * const paramTemplate =         "%d:0x%x:0x%x:0x%x:%d:%d:-1:-1:-1:0x%x:%d:0x%x:%p";    /* alias local PCI and board resource table addresses */    PCI_BOARD_RESOURCE * const pciRsrc = ln97xPciResources;    if (strlen (pParamStr) == 0)        {        /* PASS (1)         * The driver load routine returns the driver name in <pParamStr>.         */        pEnd = ln97xEndLoad (pParamStr);        }    else        {        /* PASS (2)         * The END <unit> number is prepended to <pParamStr>.  Construct         * the rest of the driver load string based on physical devices         * discovered in sysLan97xPciInit().  When this routine is called         * to process a particular END <unit> number, use the END <unit>         * as an index into the PCI "resources" table to build the driver         * parameter string.         */        int    typeIdx;   /* index to the string resource table */        char * holder  = NULL;        int    endUnit = atoi (strtok_r (pParamStr, ":", &holder));        /* is there a PCI resource associated with this END unit ? */        if (endUnit >= ln97XUnits)            {            /* This is an error - no physical devs available to this unit */            return NULL;            }        /* construct an index into the string resource table */        typeIdx = (pciRsrc[endUnit].boardType);        /* construct the initialization parameter string */        sprintf (paramStr, paramTemplate,                 endUnit,                     /* END unit number */                 pciRsrc[endUnit].bar[1],     /* memory-mapped IO base */                 pciRsrc[endUnit].bar[0],     /* IO address space base */                 PCI2DRAM_BASE_ADRS,          /* host PCI mem. base */                 pciRsrc[endUnit].irqvec,     /* IRQ vector */                 pciRsrc[endUnit].irq,        /* IRQ number */                 LN97X_CSR3_VALUE,            /* csr3 register value */                 LN97X_OFFS_VALUE,            /* offset */                 LN97X_RSVD_FLAGS,            /* flags (reserved) */                 &ln97xStrDesc[typeIdx]       /* device description */                );        if ((pEnd = ln97xEndLoad (paramStr)) == (END_OBJ *) NULL)            {            printf ("Error sysLn97xEndLoad: device failed.\n");            }        }    return (pEnd);    }/********************************************************************************* sysLn97xDev2Type - convert a PCI Revision ID to a board type** Given <vendorId>, <deviceId>, and <revisionId> values read from PCI* configuration space, this routine will attempt to map the ID to a board

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲综合久久久| 日韩欧美国产一二三区| 国产精品久线观看视频| 国产一区不卡视频| 国产日韩欧美麻豆| 99精品欧美一区二区三区综合在线| 国产欧美日韩精品在线| 成人理论电影网| 亚洲精品乱码久久久久久日本蜜臀| 欧美私人免费视频| 久久9热精品视频| 久久天天做天天爱综合色| 国v精品久久久网| 亚洲欧洲制服丝袜| 91精品国产综合久久精品| 国产综合色视频| 亚洲欧洲国产日本综合| 欧美视频第二页| 国产一区二区三区av电影| 国产精品久久久久四虎| 欧美精品乱码久久久久久| 国产精品中文字幕日韩精品| 亚洲毛片av在线| xvideos.蜜桃一区二区| 色呦呦国产精品| 六月丁香综合在线视频| 日韩一区欧美小说| 欧美成人a在线| 色成年激情久久综合| 九九**精品视频免费播放| 最新国产精品久久精品| 欧美一级黄色大片| 91色在线porny| 国产一区在线观看麻豆| 亚洲综合无码一区二区| 国产日产欧美一区二区视频| 欧美人妇做爰xxxⅹ性高电影 | 性做久久久久久久免费看| 日韩欧美国产高清| 欧美综合一区二区| 国产剧情一区在线| 青草国产精品久久久久久| 中文字幕一区二区三区不卡在线| 日韩精品一区二区三区在线观看| 色吧成人激情小说| 高清在线观看日韩| 免费观看在线综合| 亚洲成av人片在线| 自拍偷拍亚洲激情| 国产香蕉久久精品综合网| 欧美精品日日鲁夜夜添| 色婷婷激情久久| jlzzjlzz欧美大全| 国产精品99久久久久久有的能看| 亚洲成av人片一区二区梦乃| 亚洲欧洲日韩一区二区三区| 国产三级久久久| 国产亚洲欧美在线| 精品福利av导航| 日韩一区二区三区观看| 欧美唯美清纯偷拍| 欧美午夜在线一二页| 日本高清成人免费播放| 波波电影院一区二区三区| 国产毛片精品一区| 韩国女主播一区二区三区| 日韩中文字幕亚洲一区二区va在线| 亚洲激情av在线| 亚洲精品国产成人久久av盗摄| 亚洲国产精华液网站w| 国产欧美日韩亚州综合| 国产欧美一区二区精品秋霞影院| www久久精品| www激情久久| 久久理论电影网| 国产午夜精品理论片a级大结局| 精品成人在线观看| 久久人人97超碰com| 国产视频亚洲色图| 中文字幕一区二区三区四区不卡| 国产欧美日韩视频一区二区 | 欧美一级国产精品| 欧美一区二区三区免费观看视频 | 国产成人av自拍| 成人免费va视频| 99精品欧美一区二区三区综合在线| 99久久久精品免费观看国产蜜| 91片黄在线观看| 欧美三日本三级三级在线播放| 欧美美女网站色| 精品电影一区二区三区| 国产欧美va欧美不卡在线| 亚洲人xxxx| 日韩成人av影视| 国产一区二区成人久久免费影院 | 在线观看日韩毛片| 日韩一区二区在线免费观看| 国产亚洲一区二区三区四区| 中文字幕一区在线观看视频| 日韩毛片高清在线播放| 亚洲成av人片在www色猫咪| 蜜桃视频在线观看一区| 国产一区不卡视频| 91高清视频免费看| 日韩一区二区三区视频在线| 中文字幕国产一区| 亚洲成人777| 国内精品免费**视频| 91视频观看免费| 日韩欧美久久一区| **欧美大码日韩| 麻豆精品在线观看| 99久久伊人精品| 日韩丝袜美女视频| 《视频一区视频二区| 天堂成人国产精品一区| 不卡欧美aaaaa| 91精品国模一区二区三区| 国产日韩精品久久久| 日韩电影免费在线看| hitomi一区二区三区精品| 欧美精品免费视频| 中文字幕亚洲在| 久久精品国产免费| 色婷婷精品久久二区二区蜜臀av | 成人av免费在线观看| 欧美久久久久久蜜桃| 国产精品久久久久久久久免费桃花 | 国内精品在线播放| 欧美无人高清视频在线观看| 亚洲国产成人自拍| 久久99国内精品| 欧美色大人视频| 亚洲精品自拍动漫在线| 国产成人亚洲综合色影视| 日韩一区二区视频在线观看| 亚洲免费观看高清完整版在线观看熊| 久久不见久久见中文字幕免费| 在线观看日韩电影| 中文字幕字幕中文在线中不卡视频| 国产一区二区三区香蕉| 日韩一区二区三区免费看| 亚洲成精国产精品女| 色婷婷av一区二区三区gif| 日本一区二区视频在线| 欧美高清一级片在线观看| 国产精品乡下勾搭老头1| av网站一区二区三区| 欧美精品一区二区三区蜜桃 | 午夜成人免费视频| 色综合久久中文综合久久牛| 久久午夜电影网| 美女一区二区久久| 8x福利精品第一导航| 亚洲一区在线免费观看| 91免费观看在线| 中文字幕在线观看一区二区| 国产成人免费视频精品含羞草妖精 | 欧美tickling挠脚心丨vk| 偷拍日韩校园综合在线| 欧美日韩国产综合久久| 亚洲观看高清完整版在线观看| av男人天堂一区| 成人免费一区二区三区视频| 国产suv精品一区二区三区| 久久久九九九九| 风间由美中文字幕在线看视频国产欧美| 精品入口麻豆88视频| 精品一区二区三区免费观看| 欧美v亚洲v综合ⅴ国产v| 久久精品国产99国产| 精品国产区一区| 国产精品1区二区.| 国产精品久久久久久妇女6080 | 在线播放/欧美激情| 日韩精品欧美成人高清一区二区| 欧美丰满少妇xxxbbb| 奇米精品一区二区三区在线观看 | 成人app下载| 最新欧美精品一区二区三区| 色综合欧美在线视频区| 亚洲最新在线观看| 666欧美在线视频| 狠狠色狠狠色综合日日91app| 久久久精品免费观看| 91亚洲精品久久久蜜桃网站| 亚洲一区免费在线观看| 日韩午夜在线影院| 国产不卡在线视频| 亚洲手机成人高清视频| 欧美日韩大陆在线| 黄色精品一二区| 最新欧美精品一区二区三区| 欧美精品电影在线播放| 国内外精品视频| 亚洲美腿欧美偷拍| 精品少妇一区二区三区在线播放| 高清在线不卡av| 日韩黄色免费电影| 国产精品嫩草影院av蜜臀|