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

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

?? sysln97xend.c

?? Kontron的ETX-P3T的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

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲色图一区二区三区| 日韩专区在线视频| 欧美亚洲综合色| 激情图片小说一区| 日韩影视精彩在线| eeuss鲁片一区二区三区| 国产在线不卡视频| 国产成都精品91一区二区三| 久久99国产精品麻豆| 久久久精品一品道一区| 99v久久综合狠狠综合久久| 狠狠色狠狠色合久久伊人| 国产精品久久二区二区| 三级在线观看一区二区| 欧美大片国产精品| 亚洲另类色综合网站| 激情综合网av| 国产精品污网站| 国产精品 欧美精品| 精品国产91亚洲一区二区三区婷婷| 亚洲激情五月婷婷| 欧美一区二区三区四区高清| 一个色综合网站| 99久久免费国产| 午夜精品一区二区三区电影天堂| 色先锋久久av资源部| 国产欧美日韩中文久久| 九九国产精品视频| 成人欧美一区二区三区黑人麻豆| 国产一区二区三区香蕉| 亚洲免费高清视频在线| a级高清视频欧美日韩| 天堂一区二区在线| 国产精品久久久久久久久搜平片| 欧美日韩在线播| 亚洲成人精品影院| 欧美亚洲精品一区| 国产精品综合二区| 中文无字幕一区二区三区| 韩国精品免费视频| 亚洲国产综合视频在线观看| 在线观看成人小视频| 亚洲国产视频直播| 亚洲国产岛国毛片在线| 欧美一区二区三区视频免费| 91啪在线观看| 亚洲超碰97人人做人人爱| 国产精品美日韩| 日韩欧美国产精品| 欧美日韩高清不卡| 日日噜噜夜夜狠狠视频欧美人 | 视频一区视频二区中文| 欧美韩国日本一区| 欧美精品一区二区在线播放| 欧美日韩国产综合一区二区三区| av高清不卡在线| 亚洲综合一区二区精品导航| 色女孩综合影院| 亚洲女人****多毛耸耸8| 久久午夜国产精品| 色综合久久久久| 成人av电影在线观看| 樱桃国产成人精品视频| 国产精品无码永久免费888| 2017欧美狠狠色| 日韩精品一区二| 91精品国产色综合久久不卡电影| 色综合色综合色综合色综合色综合| 国产aⅴ精品一区二区三区色成熟| 久久99热国产| 最好看的中文字幕久久| 国产欧美久久久精品影院| 久久久久久久综合| 久久久久久综合| 久久精品视频免费观看| 欧美日韩美女一区二区| 色综合久久久久综合体| 91在线视频18| 色综合网站在线| 久久成人综合网| 韩日欧美一区二区三区| 美女网站色91| 亚洲精品日产精品乱码不卡| 最新久久zyz资源站| 亚洲视频资源在线| 一区二区三区在线免费| 一区二区三区国产精华| 亚洲国产一区视频| 秋霞国产午夜精品免费视频| 亚洲精品网站在线观看| 亚洲综合一区在线| 欧美aⅴ一区二区三区视频| 老汉av免费一区二区三区| 激情五月播播久久久精品| 国产成人免费视| 9i看片成人免费高清| 欧美三级日韩三级国产三级| 欧美日韩一级视频| 精品国产欧美一区二区| 中文字幕一区二区三区在线观看| 亚洲专区一二三| 韩国三级电影一区二区| www.色综合.com| 欧美人与禽zozo性伦| 欧美电影免费观看高清完整版| 欧美极品xxx| 爽好多水快深点欧美视频| 韩国av一区二区| 91久久精品午夜一区二区| 日韩欧美在线1卡| 欧美一区二区三区电影| 久久久国产午夜精品| 一区二区在线观看免费视频播放| 天堂va蜜桃一区二区三区| 国产乱人伦偷精品视频免下载| 91女神在线视频| 日韩精品在线一区二区| 亚洲图片激情小说| 激情综合一区二区三区| 91在线观看一区二区| 欧美成人官网二区| 日韩免费电影一区| 亚洲精品综合在线| 精品一区二区日韩| 在线一区二区三区四区五区| 欧美精品一区二区三区在线 | 亚洲综合色成人| 极品少妇xxxx偷拍精品少妇| 99久久99久久综合| 精品福利二区三区| 亚洲成人激情自拍| 91免费精品国自产拍在线不卡| 欧美一区二区三区不卡| 亚洲免费成人av| 国产成人激情av| 日韩一二三区视频| 亚洲影视资源网| 本田岬高潮一区二区三区| 久久综合色播五月| 蜜臀久久99精品久久久画质超高清 | 欧美日韩免费观看一区二区三区| 国产三区在线成人av| 蜜臀精品久久久久久蜜臀| 日本韩国欧美三级| 国产精品福利一区二区| 国产成人av影院| 久久综合九色综合久久久精品综合| 午夜精品国产更新| 欧美日韩一卡二卡| 亚洲国产精品一区二区久久恐怖片 | 亚洲视频资源在线| 成人免费毛片app| 在线观看国产日韩| 一色桃子久久精品亚洲| 国产成人免费av在线| 久久婷婷国产综合精品青草| 青青青爽久久午夜综合久久午夜| 欧美三级电影一区| 伊人婷婷欧美激情| 色老汉一区二区三区| 综合久久久久综合| 99国产精品视频免费观看| 中文字幕永久在线不卡| 91在线观看一区二区| 亚洲天堂2014| 日本电影欧美片| 亚洲精品乱码久久久久久久久 | 日本精品视频一区二区三区| 日韩美女啊v在线免费观看| 99免费精品视频| 亚洲视频在线观看三级| 97se亚洲国产综合自在线观| 日韩一区欧美小说| 欧洲激情一区二区| 天天操天天色综合| 日韩免费电影网站| 国产伦精品一区二区三区视频青涩 | 在线观看视频91| 午夜精品一区二区三区三上悠亚| 欧美日韩国产片| 久99久精品视频免费观看| 国产日韩三级在线| 色一区在线观看| 偷拍一区二区三区四区| 日韩欧美国产精品一区| 成人做爰69片免费看网站| 亚洲品质自拍视频| 91精品国产手机| 从欧美一区二区三区| 亚洲美女视频在线| 欧美一区二区三区四区五区| 国产一区 二区 三区一级| 亚洲三级在线播放| 欧美一区日韩一区| 成人av网站在线观看免费| 午夜av一区二区三区| 久久影视一区二区| 色天使色偷偷av一区二区| 秋霞影院一区二区| 中文字幕综合网|