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

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

?? sysbuspci.c

?? This file contains board-specific information for the Motorola cpv3060 target board. Specifically,
?? C
字號:
/* sysBusPci.c - Motorola CPV3060 PCI "board" special configuration code *//* Copyright 1997-2000 Wind River Systems, Inc. All Rights Reserved *//* Copyright 1997-2000 Motorola, Inc. All Rights Reserved *//*modification history--------------------01j,12jan01,rcs  corrected include path to pciAutoConfigLib.h & pciConfigLib.h01i,05dec00,rhk  Code cleanup to adhere to WRS coding standards.01h,26jul99,rhk  changed the PCI prefetchable Memory space and the PCI		 I/O space allocation start addresses to begin above		 the area reserved for QSPAN register allocation in PCI space.01g,14jul99,rhk  changed interrupt values in intLine, additional changes 		 per code review.01f,16jun99,srr  changed to match with WRS PCI Auto Configuration.01e,09jun99,srr  changed to support cpv3060.01d,06nov98,rhk  fixed interrupt level value for 21554 and PMC.01c,04nov98,rhk  fixed pciCase1IntLine table, removed entries above dev #15.01b,27oct98,srr  fixed pciAddinIndx allocation problem with QSpan.01a,02oct98,srr  converted from MCP750 BSP (revision 01e).*//*DESCRIPTIONThis module contains the "non-generic" or "board specific" PCI-PCIbridge initialization code.  The module contains code to:  1.  Determine if a particular function is to be excluded from the	  automatic configuration process.  2.  Program the "interrupt line" field of the PCI configuration header.*//* includes */#include "cpv3060.h"#include "drv/pci/pciAutoConfigLib.h"#include "drv/pci/pciConfigLib.h"/* defines */#define INTA2INTD		4#define CPCI_LOGIGAL_SLOTS	8#define PCI_INTA		0#define PCI_INTB		1#define PCI_INTC		2#define PCI_INTD		3#define DEV_ON_ADDIN_BUS	1/* typedefs *//* globals *//* locals *//* * Table for converting (device number, interrupt pin) to interrupt * line value for programming the PCI configuration header.  This * table only applies to PCI devices which reside on bus 0 (Case 1 * as explained in sysPciAutoConfigIntAsgn()). */static UCHAR intLine [][4] =    {	{ 0xff, 0xff, 0xff, 0xff },  /* dev #0 */	{ 0xff, 0xff, 0xff, 0xff },  /* dev #1 */	{ IVEC_TO_INUM(IV_QSPAN_PCI),	  IVEC_TO_INUM(IV_QSPAN_PCI),	  IVEC_TO_INUM(IV_QSPAN_PCI),	  IVEC_TO_INUM(IV_QSPAN_PCI) },	     /* dev #2, QSPAN */	{ IVEC_TO_INUM(IV_DEC21554),	  IVEC_TO_INUM(IV_DEC21554),	  IVEC_TO_INUM(IV_DEC21554),	  IVEC_TO_INUM(IV_DEC21554) },	     /* dev #3, 21554 */	{ IVEC_TO_INUM(IV_PMC1_INTA),	  IVEC_TO_INUM(IV_PMC1_INTB),	  IVEC_TO_INUM(IV_PMC1_INTC),	  IVEC_TO_INUM(IV_PMC1_INTD) },	     /* dev #4, PMC-1 slot */	{ IVEC_TO_INUM(IV_PMC2_INTA),	  IVEC_TO_INUM(IV_PMC2_INTB),	  IVEC_TO_INUM(IV_PMC2_INTC),	  IVEC_TO_INUM(IV_PMC2_INTD) },	     /* dev #5, PMC-2 slot */	{ 0xff, 0xff, 0xff, 0xff },  /* dev #6 */	{ 0xff, 0xff, 0xff, 0xff },  /* dev #7 */	{ 0xff, 0xff, 0xff, 0xff },  /* dev #8 */	{ 0xff, 0xff, 0xff, 0xff },  /* dev #9 */	{ 0xff, 0xff, 0xff, 0xff },  /* dev #10 */	{ 0xff, 0xff, 0xff, 0xff },  /* dev #11, Not Used */	{ 0xff, 0xff, 0xff, 0xff },  /* dev #12, Not used */	{ 0xff, 0xff, 0xff, 0xff },  /* dev #13, Not used */	{ 0xff, 0xff, 0xff, 0xff },  /* dev #14, Not Used */	{ 0xff, 0xff, 0xff, 0xff },  /* dev #15, Not used */    };LOCAL    PCI_SYSTEM    sysParams;#ifdef PCI_ROLL_CALL_LIST_ENTRIES/*  * PCI autoconfig roll call support * * Roll call list entry structure, list elements specified in "config.h"  */typedef struct _PCI_ROLL_CALL_LIST    {    UINT count;    UINT Dev;    UINT Vend;    } PCI_ROLL_CALL_LIST;LOCAL PCI_ROLL_CALL_LIST rollCall[] =    {    PCI_ROLL_CALL_LIST_ENTRIES    { 0xffff, 0xffff, 0xffff }  /* Required entry: marks end of list */    };#endif /* PCI_ROLL_CALL_LIST_ENTRIES *//* forward declarations */LOCAL UCHAR sysPciAutoConfigIntAsgn ( PCI_SYSTEM * pSys, PCI_LOC * pFunc,    			UCHAR intPin );LOCAL STATUS sysPciAutoConfigInclude ( PCI_SYSTEM *pSys, PCI_LOC *pciLoc,			UINT devVend );#ifdef PCI_ROLL_CALL_LIST_ENTRIESLOCAL STATUS sysPciRollcallRtn ( );#endif /* PCI_ROLL_CALL_LIST_ENTRIES *//******************************************************************************** sysPciAutoConfigInclude - Determine if function is to be autoConfigured** This function is called with PCI bus, device, function, and vendor * information.  It returns an indication of whether or not the particular* function should be included in the automatic configuration process.* This capability is useful if it is desired that a particular function* NOT be automatically configured.  Of course, if the device is not* included in automatic configuration, it will be unusable unless the* user's code made provisions to configure the function outside of the* the automatic process.** RETURNS: OK if function is to be included in automatic configuration,*          ERROR otherwise.*/ LOCAL STATUS sysPciAutoConfigInclude    (    PCI_SYSTEM *pSys,       /* input: AutoConfig system information */    PCI_LOC *pciLoc,        /* input: PCI address of this function */    UINT     devVend        /* input: Device/vendor ID number      */    )    {    BOOL retVal = OK;        /* If it's the host bridge then exclude it */    if ((pciLoc->bus == 0) && (pciLoc->device == 0) && (pciLoc->function == 0))        return ERROR;    switch(devVend)	{	/* EXCLUDED Devices */	case PCI_ID_QSPAN:		retVal = ERROR;		PCI_AUTO_DEBUG_MSG("sysPciAutoconfigInclude: Excluding QSPAN\n",			0, 0, 0, 0, 0, 0);		break;	/* INCLUDED Devices */	case PCI_ID_BR_DEC21554:		retVal = OK;		PCI_AUTO_DEBUG_MSG("sysPciAutoconfigInclude: Including DEC 21554 bridge\n",			0, 0, 0, 0, 0, 0);		break;    	default:    		retVal = OK;		PCI_AUTO_DEBUG_MSG("sysPciAutoconfigInclude: Including unknown device\n",			0, 0, 0, 0, 0, 0);		break;	}    return retVal;    }/******************************************************************************** sysPciAutoConfigIntAssign - Assign the "interrupt line" value** RETURNS: "interrupt line" value.*/LOCAL UCHAR sysPciAutoConfigIntAsgn    (     PCI_SYSTEM * pSys,	/* input: AutoConfig system information */    PCI_LOC * pFunc,	/* input: pointer to device bus location structure */    UCHAR intPin	/* input: interrupt pin number */    )    {    UCHAR irqValue = 0xff;    /* Calculated value                */    if (intPin == 0)        return irqValue;    irqValue = intLine [(pFunc->device)][(intPin - 1)];    PCI_AUTO_DEBUG_MSG("intAssign called for device [%d %d %d] IRQ: %d\n",                       pFunc->bus, pFunc->device, pFunc->function,                       irqValue, 0, 0 );    return (irqValue);    }#ifdef PCI_ROLL_CALL_LIST_ENTRIES/******************************************************************************* sysPciRollCallRtn - Check "roll call" list against list of PCI devices found** This function checks if the number of devices actually found during* the 1st pass of PCI autoconfiguration (bus enumeration process)* passes the "roll call" test.  That is, for each entry in the roll call* list (consisting of a count and device/vendor ID), a check is made to* insure that at least the specified minimum number of devices has* actually been discovered.  If the roll call passes, the function returns* TRUE.  If the roll call fails and the time duration in seconds represented* by ROLL_CALL_MAX_DURATION has not elapsed, the function will wait 1* second and return FALSE.  If the roll call fails and the time duration in* seconds represented by ROLL_CALL_MAX_DURATION has elapsed, the function* will return TRUE.** RETURNS: TRUE if roll call test passes or timeout, FALSE otherwise.*/LOCAL STATUS sysPciRollcallRtn    (    )    {    STATUS  rollCallPass;       /* Flag indicating pass or fail */    int     rollIndex;    UINT    bus;    UINT    dev;    UINT    func;    int     count;    static  int secDelay = -1;    if (secDelay == -1)	secDelay = ROLL_CALL_MAX_DURATION;    rollCallPass = TRUE;        /* Default = "passed" */    rollIndex = 0;    while (secDelay >= 0)         {        if (rollCall[rollIndex].Vend == 0xffff)            break;              /* End of roll call list, we're done */        count = 0;        while (pciFindDevice(rollCall[rollIndex].Vend, rollCall[rollIndex].Dev,			     count, &bus, &dev, &func) == OK)	    count++;        if (count < rollCall[rollIndex].count)            {	    secDelay--;	    if (secDelay < 0)		{		rollCallPass = TRUE;	    /* Timeout, say we passed */		break;		}	    else		{                rollCallPass = FALSE;       /* Roll call - someone is missing */	        sysMsDelay(1000);           /* Delay a second */	        break;		}            }	rollIndex++;        }    if (rollCallPass == TRUE)	secDelay = -1;    return (rollCallPass);    }#endif /* PCI_ROLL_CALL_LIST_ENTRIES *//********************************************************************************* sysPciAutoConfig - PCI autoConfig support routine** This routine instantiates the PCI_SYSTEM structure needed to configure* the system. This consists of assigning address ranges to each category* of PCI system resource: Prefetchable and Non-Prefetchable 32-bit Memory, and* 16- and 32-bit I/O. Global values for the Cache Line Size and Maximum* Latency are also specified. Finally, the four supplemental routines for * device inclusion/exclusion, interrupt assignment, and pre- and* post-enumeration bridge initialization are specified. ** RETURNS: N/A*/void sysPciAutoConfig(void)    {    /*     * 32-bit Non-prefetchable Memory Space     * offset by 0x10 so that it doesn't start at PCI address 0x0     */    sysParams.pciMemIo32 = (PCI_MSTR_MEMIO_BUS + 0x10);    sysParams.pciMemIo32Size = PCI_MSTR_MEMIO_SIZE;    /* 32-bit Prefetchable Memory Space */    sysParams.pciMem32 = (PCI_MSTR_MEM_BUS + QSPAN_REG_SIZE);    sysParams.pciMem32Size = (PCI_MSTR_MEM_SIZE - QSPAN_REG_SIZE);    /* 16-bit ISA I/O Space - start after legacy devices. */    sysParams.pciIo16 = ISA_MSTR_IO_BUS + ISA_LEGACY_SIZE;    sysParams.pciIo16Size = ISA_MSTR_IO_SIZE - ISA_LEGACY_SIZE;    /* 32-bit PCI I/O Space */    sysParams.pciIo32 = (PCI_MSTR_IO_BUS + QSPAN_REG_SIZE);    sysParams.pciIo32Size = (PCI_MSTR_IO_SIZE - QSPAN_REG_SIZE);    /* Configuration space parameters */    sysParams.maxBus = 0;    sysParams.cacheSize = ( _CACHE_ALIGN_SIZE / sizeof(UINT32) );    sysParams.maxLatency = PCI_LAT_TIMER;    sysParams.autoIntRouting = TRUE;    /* Device inclusion and interrupt routing routines */    sysParams.includeRtn = sysPciAutoConfigInclude;    sysParams.intAssignRtn = sysPciAutoConfigIntAsgn;#ifdef PCI_ROLL_CALL_LIST_ENTRIES    /* "Roll call" routine */    sysParams.pciRollcallRtn = sysPciRollcallRtn;#endif /* PCI_ROLL_CALL_LIST_ENTRIES */    /* PCI-to-PCI Bridge Pre and Post-enumeration init routines */    sysParams.bridgePreConfigInit = NULL;    sysParams.bridgePostConfigInit = NULL;    /* Perform AutoConfig */    pciAutoConfig(&sysParams);    }

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区三区丝袜| 日韩欧美国产三级电影视频| 中文字幕不卡的av| 国产·精品毛片| 欧美国产97人人爽人人喊| 99久久精品国产观看| 亚洲欧美aⅴ...| 欧美性猛交一区二区三区精品| 亚洲一区二区三区四区在线观看| 欧美日韩一卡二卡三卡| 奇米精品一区二区三区四区| 2017欧美狠狠色| 91麻豆蜜桃一区二区三区| 亚洲黄色免费网站| 日韩一区二区免费电影| 国产福利一区二区三区| 亚洲欧美日韩在线不卡| 欧美日韩和欧美的一区二区| 激情综合色播激情啊| 亚洲人成网站在线| 3atv在线一区二区三区| 成人一区二区视频| 五月天精品一区二区三区| 欧美精品一区二区三区视频| 91视频免费播放| 美女被吸乳得到大胸91| 一色屋精品亚洲香蕉网站| 欧美一区二区三区在线视频| 成人激情av网| 日韩二区三区四区| 中文字幕中文字幕一区| 在线播放中文字幕一区| 99在线热播精品免费| 美国十次了思思久久精品导航| 国产精品网站导航| 欧美二区三区91| 99re视频精品| 精品写真视频在线观看| 亚洲国产成人精品视频| 亚洲国产成人在线| 日韩精品一区二区三区视频播放| 91浏览器入口在线观看| 国产乱人伦精品一区二区在线观看| 一区二区三区小说| 国产精品网站一区| 久久久国际精品| 6080日韩午夜伦伦午夜伦| 色综合久久久久久久久| 国产精品99久| 久热成人在线视频| 调教+趴+乳夹+国产+精品| 亚洲欧洲成人精品av97| 国产无遮挡一区二区三区毛片日本| 欧美久久久久久久久久| 色婷婷综合激情| 99精品视频一区二区三区| 夫妻av一区二区| 国产在线不卡一卡二卡三卡四卡| 亚洲aaa精品| 亚洲影视在线播放| 中文字幕字幕中文在线中不卡视频| 久久精品日产第一区二区三区高清版| 日韩区在线观看| 日韩午夜三级在线| 欧美一区二区私人影院日本| 在线成人高清不卡| 欧美日韩国产一区| 欧美日韩一级片网站| 欧美少妇xxx| 91国产免费看| 欧美日韩一区高清| 欧美精品久久天天躁| 制服丝袜亚洲色图| 欧美一级片在线看| 日韩视频一区二区三区| 日韩欧美中文字幕精品| 日韩欧美一级在线播放| 日韩女优视频免费观看| 欧美精品一区二区三区蜜桃| 精品久久久久久久久久久久包黑料 | 懂色av一区二区三区蜜臀| 国产在线不卡一区| 高清在线成人网| aaa国产一区| 欧洲精品一区二区三区在线观看| 欧洲日韩一区二区三区| 欧美日韩国产精品成人| 91精品国产一区二区三区香蕉| 欧美一区二区精品久久911| 日韩免费观看高清完整版 | 日韩女优av电影| 欧美精品一区二区在线观看| 国产欧美视频一区二区三区| 国产精品久久久久久久久免费丝袜| 国产精品毛片久久久久久| 亚洲另类在线制服丝袜| 天天操天天干天天综合网| 美女网站色91| 波多野洁衣一区| 欧美日韩视频一区二区| 欧美r级电影在线观看| 国产精品色哟哟| 亚洲五码中文字幕| 美女视频黄免费的久久| 成人理论电影网| 欧美色图在线观看| 久久亚洲影视婷婷| 亚洲精品免费一二三区| 日韩黄色免费电影| 成人综合在线观看| 777亚洲妇女| 国产精品每日更新在线播放网址| 亚洲图片一区二区| 国产精品一区二区无线| 色先锋aa成人| 久久嫩草精品久久久精品| 亚洲精品国产第一综合99久久| 天天综合网 天天综合色| 国产91丝袜在线播放| 欧美三级电影网| 中文一区在线播放| 日本不卡一二三区黄网| 成人黄色av电影| 日韩午夜精品视频| 一区二区三区在线影院| 国产在线日韩欧美| 欧美日韩中文字幕一区| 欧美国产一区在线| 免费的成人av| 欧洲生活片亚洲生活在线观看| 国产午夜精品理论片a级大结局 | 精品国产在天天线2019| 亚洲精品国产第一综合99久久| 国产一区 二区 三区一级| 欧美精品久久99| 一区二区成人在线观看| 国产精品123| 日韩精品一区二区三区老鸭窝| 亚洲日本免费电影| 国产成人在线观看免费网站| 777欧美精品| 亚洲一区在线看| 91亚洲精华国产精华精华液| 精品99999| 蜜桃视频在线一区| 欧美日韩国产在线观看| 一区二区免费看| 一本大道久久a久久精品综合| 久久久国产一区二区三区四区小说| 奇米影视一区二区三区小说| 欧美日韩国产一级| 午夜精品久久久久久不卡8050| 色综合久久综合中文综合网| 国产午夜亚洲精品不卡| 国产一区 二区| 久久久国产精品不卡| 精品一区二区国语对白| 日韩女优av电影| 日本亚洲免费观看| 91精品久久久久久久久99蜜臂| 亚洲成人自拍网| 欧美四级电影网| 午夜精品影院在线观看| 欧美日韩一区二区在线观看视频| 亚洲国产cao| 欧美日韩在线播| 奇米一区二区三区| 精品国产91久久久久久久妲己| 美日韩一区二区| 久久亚洲综合色一区二区三区| 国产综合色精品一区二区三区| 久久美女艺术照精彩视频福利播放| 久久99精品久久久| 国产亚洲欧美日韩在线一区| 国产一区二区三区综合| 中文字幕免费一区| 91在线视频播放| 亚洲制服丝袜一区| 欧美福利视频一区| 国内成人免费视频| 国产女人水真多18毛片18精品视频| 国产91精品精华液一区二区三区| 国产精品女同互慰在线看| 91美女视频网站| 亚洲亚洲精品在线观看| 欧美一区二区三区成人| 激情伊人五月天久久综合| 中文字幕在线不卡| 欧美揉bbbbb揉bbbbb| 久久精品国产澳门| 国产精品美日韩| 欧美日韩一区视频| 国产福利一区二区| 一区二区三区四区高清精品免费观看 | 国产精品中文有码| 亚洲人成网站在线| 日韩一区二区三区免费观看| 成人丝袜18视频在线观看| 亚洲影视资源网| 国产网站一区二区三区|