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

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

?? sysbuspci.c

?? VxWorks下 Cpv3060的BSP源代碼
?? 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);    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩另类一区| 精品国产制服丝袜高跟| 麻豆精品国产传媒mv男同| 国产精品污网站| 欧美一区二区三区在线观看视频| 成人永久免费视频| 91久久免费观看| 亚洲国产日韩a在线播放性色| 日韩亚洲欧美在线观看| 91污在线观看| 成人综合婷婷国产精品久久| 日韩电影一二三区| 夜夜嗨av一区二区三区四季av| 久久久精品国产99久久精品芒果| 欧美三级电影精品| 99国产精品国产精品毛片| 国产在线视视频有精品| 午夜精品久久久久久久蜜桃app| 中文字幕在线不卡| 中文av字幕一区| 精品电影一区二区| 欧美一区二区在线观看| 欧美三片在线视频观看| 91蝌蚪porny成人天涯| 国产成人精品在线看| 国内精品久久久久影院薰衣草| 日韩专区在线视频| 亚洲一区二区三区在线| 一区二区三区在线免费视频| 亚洲人吸女人奶水| 国产精品福利一区二区| 中文字幕精品在线不卡| 国产精品嫩草久久久久| 欧美激情一区二区三区在线| 国产人妖乱国产精品人妖| 久久一区二区三区四区| 久久久亚洲精华液精华液精华液 | 欧美日韩一区二区欧美激情| 91浏览器打开| av网站免费线看精品| 国v精品久久久网| 成人动漫中文字幕| 不卡在线观看av| 97se亚洲国产综合自在线观| a美女胸又www黄视频久久| 成人av在线影院| 99久久精品国产导航| 91久久精品一区二区| 欧美怡红院视频| 欧美日韩免费一区二区三区| 欧美日韩国产三级| 51精品视频一区二区三区| 日韩免费高清视频| 久久久久久久久久久久久久久99 | 日韩在线一区二区| 久久精品国产亚洲一区二区三区| 精品一区二区三区蜜桃| 国产精选一区二区三区| jlzzjlzz国产精品久久| 色av成人天堂桃色av| 国产精品蜜臀av| 亚洲国产精品一区二区久久 | 日日夜夜免费精品| 久久精品国产一区二区| 粉嫩嫩av羞羞动漫久久久 | 欧美成人高清电影在线| 久久久久久久久久久久久久久99 | 国产精品久久精品日日| 亚洲小说春色综合另类电影| 蜜桃精品视频在线观看| 成人永久免费视频| 欧美日韩中文国产| 久久色中文字幕| 亚洲天堂免费在线观看视频| 婷婷中文字幕综合| 国模无码大尺度一区二区三区| 99久久综合国产精品| 欧美精品国产精品| 欧美激情一区在线| 天堂久久久久va久久久久| 国产剧情av麻豆香蕉精品| 色诱视频网站一区| 精品三级在线观看| 亚洲激情校园春色| 国产综合色视频| 欧美性一二三区| 久久精品视频一区二区| 亚洲午夜精品网| 国产成人免费视频网站 | 午夜久久久久久久久久一区二区| 精品一区二区久久久| 日本久久一区二区三区| 久久综合国产精品| 午夜精品123| a级精品国产片在线观看| 日韩三级伦理片妻子的秘密按摩| 亚洲欧美在线视频观看| 麻豆精品久久精品色综合| 91麻豆免费看| 国产欧美日韩一区二区三区在线观看| 亚洲一区二区中文在线| 国产精品一区免费在线观看| 欧美日韩一区二区三区不卡| 国产精品久久久久久妇女6080| 久久成人免费网| 欧美性大战xxxxx久久久| 国产午夜精品久久| 蜜臀国产一区二区三区在线播放 | 欧美精品123区| 国产精选一区二区三区 | 中文字幕免费不卡在线| 日韩成人免费电影| 在线观看日韩av先锋影音电影院| 日本一区二区成人| 国产伦精品一区二区三区视频青涩| 欧美伦理电影网| 亚洲午夜精品网| 一本大道久久a久久精品综合| 久久久久久久久久久久久久久99| 免费看欧美美女黄的网站| 欧美日韩一区二区三区视频| 亚洲乱码国产乱码精品精小说 | 日本乱人伦aⅴ精品| 国产精品二区一区二区aⅴ污介绍| 国产一区二区在线视频| 精品国精品国产| 极品少妇一区二区| 日韩欧美卡一卡二| 久久国产精品72免费观看| 日韩女优av电影| 久久精品国产秦先生| 日韩美女视频在线| 黄页视频在线91| 久久午夜羞羞影院免费观看| 激情五月婷婷综合| 久久蜜桃av一区二区天堂| 国产一区二区三区四| 国产亚洲女人久久久久毛片| 国产成人免费视频精品含羞草妖精| 久久精品网站免费观看| 国产99久久久久| 中文字幕佐山爱一区二区免费| 99re热这里只有精品视频| 亚洲色图20p| 在线视频一区二区三| 亚洲国产精品视频| 精品视频一区二区不卡| 日韩激情中文字幕| 精品国产成人系列| 欧美日韩免费一区二区三区 | 成人性生交大片免费看中文 | 国产美女在线观看一区| 国产欧美在线观看一区| 成人动漫一区二区| 一区二区三区蜜桃| 67194成人在线观看| 久久99久久99小草精品免视看| 久久免费电影网| 97精品久久久午夜一区二区三区 | 成人免费毛片嘿嘿连载视频| 中文字幕日韩精品一区| 欧美三级电影在线观看| 日韩国产欧美在线播放| 国产午夜亚洲精品午夜鲁丝片| 99久久精品免费看| 天天免费综合色| 国产日韩综合av| 日本电影亚洲天堂一区| 美女视频一区二区| 国产精品成人免费在线| 欧美精品久久一区二区三区| 国产美女在线精品| 亚洲自拍偷拍欧美| 精品福利在线导航| 色哟哟一区二区在线观看 | 国产成人免费视频精品含羞草妖精| 亚洲视频一二区| 欧美高清激情brazzers| 国产suv精品一区二区883| 大桥未久av一区二区三区中文| 亚洲一区二区四区蜜桃| 久久这里只有精品首页| 日本高清不卡一区| 国模娜娜一区二区三区| 亚洲精品v日韩精品| wwww国产精品欧美| 欧美在线观看一区| 国产精品一二三四| 性做久久久久久久免费看| 日本一区二区免费在线观看视频| 欧美日本国产一区| a美女胸又www黄视频久久| 美女免费视频一区二区| 亚洲激情在线播放| 国产网站一区二区| 91精品国产日韩91久久久久久| 99re这里都是精品| 国产电影一区二区三区| 免费欧美在线视频| 一区二区三区国产|