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

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

?? pciiomapshow.c

?? vxworks for Sam2410 bsp NoNet
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* pciIomapShow.c - Show routines of PCI bus(IO mapped) library *//* Copyright 1984-1997 Wind River Systems, Inc. */#include "copyright_wrs.h"/*modification history--------------------01a,13jan00,pr  Adapted from cma220.*//*DESCRIPTIONThis module contains show routine to see all devices and bridges on the PCI bus.This module works in conjunction with pciIomapLib.o.There are two ways to find out an empty device.  - check Master Abort bit after the access.  - check whether the read value is 0xffff.It uses the second method, since I didn't see the Master Abort bit ofthe host/PCI bridge changing.*/#if (defined(INCLUDE_PCI) && defined(INCLUDE_SHOW_ROUTINES))#include "vxWorks.h"#include "stdio.h"#include "stdlib.h"#include "string.h"#include "dllLib.h"/* * We currently wish to include this from locally rather than from there as that * version is out-dated. However, as it has been included in sysLib.c already, * this will do no harm. */#include "pciIomapLib.h"/* defines *//* externs */IMPORT int pciLibInitStatus;IMPORT int pciConfigMech;/* globals *//* locals *//* forward declarations */LOCAL void pciDheaderPrint	(PCI_HEADER_DEVICE * pD);LOCAL void pciBheaderPrint	(PCI_HEADER_BRIDGE * pB);/********************************************************************************* pciIomapShowInit - initialize the show routines.** This routine is used to pull in all routines in this library.** NOMANUAL* * RETURNS: N/A*/void pciIomapShowInit (void)    {    }/********************************************************************************* pciDeviceShow - print information about PCI devices** This routine prints information about PCI devices* There are two ways to find out an empty device.*   - check Master Abort bit after the access.*   - check whether the read value is 0xffff.* It uses the second method, since I didn't see the Master Abort bit of* the host/PCI bridge changing.** RETURNS:* OK, or ERROR if the library is not initialized.*/STATUS pciDeviceShow    (    int	busNo		/* bus number */    )    {    int deviceNo;    int devices;    ushort_t vendorId;    ushort_t deviceId;    union	{	int classCode;	char array[4];	} u;    if (pciLibInitStatus != OK)			/* sanity check */        return (ERROR);    printf ("Scanning function 0 of each PCI device on bus %d\n", busNo);    printf ("Using configuration mechanism %d\n", pciConfigMech);    printf ("bus       device    function  vendorID  deviceID  class\n");    if (pciConfigMech == PCI_MECHANISM_1)	devices = 0x1f;    else	devices = 0x0f;    if (busNo != 0)	devices = min(devices, 0x0f);    devices = min(devices, PCI_MAX_DEV);    for (deviceNo=0; deviceNo < devices; deviceNo++)	{	pciConfigInWord (busNo, deviceNo, 0, PCI_CFG_VENDOR_ID, &vendorId);	pciConfigInWord (busNo, deviceNo, 0, PCI_CFG_DEVICE_ID, &deviceId);	if (_BYTE_ORDER == _BIG_ENDIAN)	    {	    pciConfigInByte (busNo, deviceNo, 0, PCI_CFG_PROGRAMMING_IF, 			     &u.array[3]);	    pciConfigInByte (busNo, deviceNo, 0, PCI_CFG_SUBCLASS, &u.array[2]);	    pciConfigInByte (busNo, deviceNo, 0, PCI_CFG_CLASS, &u.array[1]);	    u.array[0] = 0;	    }	else	    {	    pciConfigInByte (busNo, deviceNo, 0, PCI_CFG_PROGRAMMING_IF, 			     &u.array[0]);	    pciConfigInByte (busNo, deviceNo, 0, PCI_CFG_SUBCLASS, &u.array[1]);	    pciConfigInByte (busNo, deviceNo, 0, PCI_CFG_CLASS, &u.array[2]);	    u.array[3] = 0;	    }	/*	 * There are two ways to find out an empty device.	 *   1. check Master Abort bit after the access.	 *   2. check whether the read value is 0xffff.	 * Since I didn't see the Master Abort bit of the host/PCI bridge	 * changing, I use the second method.	 */	if (vendorId != 0xffff)	    printf ("%.8x  %.8x  %.8x  %.8x  %.8x  %.8x\n",		    busNo, deviceNo, 0, vendorId, deviceId, u.classCode);	}    return (OK);    }/********************************************************************************* pciHeaderShow - print a header of the specified PCI device** This routine prints a header of the PCI device specified by busNo, deviceNo,* and funcNo.** RETURNS:* OK, or ERROR if this library is not initialized.**/STATUS pciHeaderShow    (    int	busNo,		/* bus number */    int	deviceNo,	/* device number */    int	funcNo		/* function number */    )    {    PCI_HEADER_DEVICE headerDevice;    PCI_HEADER_BRIDGE headerBridge;    PCI_HEADER_DEVICE * pD = &headerDevice;    PCI_HEADER_BRIDGE * pB = &headerBridge;    if (pciLibInitStatus != OK)			/* sanity check */        return (ERROR);    pciConfigInByte (busNo, deviceNo, funcNo, PCI_CFG_HEADER_TYPE, 		     &pD->headerType);    if (pD->headerType & 0x01)		/* PCI-to-PCI bridge */	{        pciConfigInWord (busNo, deviceNo, funcNo, PCI_CFG_VENDOR_ID, 			 &pB->vendorId);        pciConfigInWord (busNo, deviceNo, funcNo, PCI_CFG_DEVICE_ID, 			 &pB->deviceId);        pciConfigInWord (busNo, deviceNo, funcNo, PCI_CFG_COMMAND, 			 &pB->command);        pciConfigInWord (busNo, deviceNo, funcNo, PCI_CFG_STATUS, 			 &pB->status);        pciConfigInByte (busNo, deviceNo, funcNo, PCI_CFG_REVISION, 			 &pB->revisionId);        pciConfigInByte (busNo, deviceNo, funcNo, PCI_CFG_PROGRAMMING_IF, 			 &pB->progIf);        pciConfigInByte (busNo, deviceNo, funcNo, PCI_CFG_SUBCLASS, 			 &pB->subClass);        pciConfigInByte (busNo, deviceNo, funcNo, PCI_CFG_CLASS, 			 &pB->classCode);        pciConfigInByte (busNo, deviceNo, funcNo, PCI_CFG_CACHE_LINE_SIZE, 			 &pB->cacheLine);        pciConfigInByte (busNo, deviceNo, funcNo, PCI_CFG_LATENCY_TIMER, 			 &pB->latency);        pciConfigInByte (busNo, deviceNo, funcNo, PCI_CFG_HEADER_TYPE, 			 &pB->headerType);        pciConfigInByte (busNo, deviceNo, funcNo, PCI_CFG_BIST, 			 &pB->bist);        pciConfigInLong (busNo, deviceNo, funcNo, PCI_CFG_BASE_ADDRESS_0, 			 &pB->base0);        pciConfigInLong (busNo, deviceNo, funcNo, PCI_CFG_BASE_ADDRESS_1, 			 &pB->base1);        pciConfigInByte (busNo, deviceNo, funcNo, PCI_CFG_PRIMARY_BUS, 			 &pB->priBus);        pciConfigInByte (busNo, deviceNo, funcNo, PCI_CFG_SECONDARY_BUS, 			 &pB->secBus);        pciConfigInByte (busNo, deviceNo, funcNo, PCI_CFG_SUBORDINATE_BUS, 			 &pB->subBus);        pciConfigInByte (busNo, deviceNo, funcNo, PCI_CFG_SEC_LATENCY, 			 &pB->secLatency);        pciConfigInByte (busNo, deviceNo, funcNo, PCI_CFG_IO_BASE, 			 &pB->ioBase);        pciConfigInByte (busNo, deviceNo, funcNo, PCI_CFG_IO_LIMIT, 			 &pB->ioLimit);        pciConfigInWord (busNo, deviceNo, funcNo, PCI_CFG_SEC_STATUS, 			 &pB->secStatus);        pciConfigInWord (busNo, deviceNo, funcNo, PCI_CFG_MEM_BASE, 			 &pB->memBase);        pciConfigInWord (busNo, deviceNo, funcNo, PCI_CFG_MEM_LIMIT, 			 &pB->memLimit);        pciConfigInWord (busNo, deviceNo, funcNo, PCI_CFG_PRE_MEM_BASE, 			 &pB->preBase);        pciConfigInWord (busNo, deviceNo, funcNo, PCI_CFG_PRE_MEM_LIMIT, 			 &pB->preLimit);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲自拍都市欧美小说| 久久精品免费观看| 欧美一级日韩免费不卡| 成人午夜av电影| 性做久久久久久| 国产精品视频免费看| 欧美久久一二三四区| 成人av免费在线观看| 激情伊人五月天久久综合| 一级日本不卡的影视| 久久精品一区蜜桃臀影院| 欧美精品乱码久久久久久| www.日韩av| 国产成人av电影在线播放| 天天爽夜夜爽夜夜爽精品视频| 国产精品天天看| 久久综合久久久久88| 欧美精品亚洲二区| 在线免费不卡电影| 精品久久五月天| 欧美日韩国产综合一区二区三区 | 久久久精品中文字幕麻豆发布| 欧美日韩精品一二三区| 91免费精品国自产拍在线不卡 | 国产传媒久久文化传媒| 日韩电影在线看| 亚洲午夜久久久久中文字幕久| 中文字幕日韩欧美一区二区三区| 国产无人区一区二区三区| 日韩色视频在线观看| 欧美精品久久久久久久多人混战 | 欧美韩国一区二区| 日韩欧美第一区| 欧美大度的电影原声| 91麻豆精品国产91久久久久久久久 | 欧美精品一区二区三区视频| 日韩一区和二区| 欧美一区二区在线免费播放 | 日韩精品一区二区三区老鸭窝| 欧美日韩久久不卡| 欧美日韩国产一级| 欧美日韩在线电影| 欧美三级在线看| 欧美精品v日韩精品v韩国精品v| 欧美视频在线一区二区三区| 欧美手机在线视频| 欧美老肥妇做.爰bbww| 7777精品伊人久久久大香线蕉完整版| 欧美亚洲国产一区二区三区va| 在线视频一区二区三| 欧美在线色视频| 欧美高清视频www夜色资源网| 欧美妇女性影城| 日韩欧美一卡二卡| 久久欧美中文字幕| 国产欧美一区二区精品婷婷| 中文字幕一区二区视频| 夜夜夜精品看看| 日韩电影在线观看电影| 久久se精品一区二区| 国产成人亚洲综合a∨婷婷| 99久久精品国产导航| 欧美色老头old∨ideo| 日韩欧美www| 亚洲国产高清在线| 一区二区三区在线免费视频| 日韩专区欧美专区| 国产精品自拍一区| 色诱亚洲精品久久久久久| 欧美高清性hdvideosex| 久久新电视剧免费观看| 亚洲图片激情小说| 日韩制服丝袜av| 国产精品123区| 色噜噜狠狠色综合中国| 91精品国产高清一区二区三区| 久久精品一区八戒影视| 一区二区在线观看免费视频播放| 三级在线观看一区二区| 国产成人精品aa毛片| 91成人在线精品| 欧美精品一区二区三区在线| 亚洲美腿欧美偷拍| 经典三级视频一区| 色94色欧美sute亚洲13| 精品嫩草影院久久| 一区二区三区国产| 国产高清无密码一区二区三区| 在线观看免费成人| 国产日韩欧美电影| 日韩国产欧美在线观看| 91天堂素人约啪| 日韩精品一区二区三区在线观看| 亚洲欧美一区二区久久| 国产原创一区二区三区| 欧洲一区二区av| 中文字幕乱码亚洲精品一区| 水蜜桃久久夜色精品一区的特点| 成人黄色电影在线| 欧美α欧美αv大片| 洋洋成人永久网站入口| 国v精品久久久网| 欧美一区二区成人6969| 一区二区三区日韩欧美精品| 国产精品一区二区久久精品爱涩 | 狠狠色丁香婷婷综合| 欧美日韩国产经典色站一区二区三区 | 99亚偷拍自图区亚洲| 精品久久久久久久人人人人传媒 | 天天av天天翘天天综合网色鬼国产| 国产成人一级电影| 日韩女优电影在线观看| 亚洲亚洲精品在线观看| 色综合一区二区| 国产精品午夜在线观看| 精品写真视频在线观看| 欧美日韩高清在线播放| 一区二区三区免费观看| 99久久99久久精品免费观看| 久久网站最新地址| 精品一区二区三区欧美| 欧美一区二区三区在线看| 性欧美疯狂xxxxbbbb| 欧美日韩精品一区二区在线播放 | 国产在线观看免费一区| 日韩午夜在线影院| 日韩国产欧美视频| 欧美日本乱大交xxxxx| 亚洲国产日韩a在线播放| 色综合久久久久久久久| 日韩一区有码在线| 99久久99久久久精品齐齐| 国产精品久久毛片av大全日韩| 国产精品123区| 欧美激情中文不卡| 成人性生交大片| 日本一区二区不卡视频| jvid福利写真一区二区三区| 中文字幕欧美日韩一区| 国产成人久久精品77777最新版本| 久久久久亚洲蜜桃| 国产成人免费视频| 国产精品久久久久久久久久久免费看 | 在线看不卡av| 亚洲第一搞黄网站| 91精选在线观看| 日韩成人一级片| 精品美女一区二区| 国产成人啪午夜精品网站男同| 国产午夜精品在线观看| 成人黄色在线看| 一区二区三区四区中文字幕| 欧美日韩在线免费视频| 美女一区二区三区在线观看| 精品久久国产字幕高潮| 国产成人免费在线| 亚洲日本电影在线| 欧美日韩国产综合视频在线观看| 免费观看30秒视频久久| 久久久久久久综合日本| 91视频一区二区三区| 天天影视涩香欲综合网| 337p粉嫩大胆噜噜噜噜噜91av| 激情综合网最新| 国产精品欧美一区二区三区| 在线免费观看日本一区| 免费成人你懂的| 国产精品免费aⅴ片在线观看| 一本色道久久综合亚洲91| 亚洲成人免费在线| 久久久欧美精品sm网站| 国产精品无遮挡| 欧美亚洲一区二区在线观看| 青青国产91久久久久久| 中文字幕不卡在线观看| 欧美久久婷婷综合色| 丁香婷婷综合五月| 亚洲超碰精品一区二区| 国产日产欧美一区二区视频| 日本韩国一区二区| 韩国精品免费视频| 一区二区三区美女| 久久久影视传媒| 欧美日韩免费一区二区三区 | 国产在线国偷精品免费看| 亚洲日本青草视频在线怡红院| 欧美一区二区网站| av一二三不卡影片| 免费欧美高清视频| 亚洲九九爱视频| 久久久久久久久久看片| 欧美日韩一区二区三区视频| 国产91高潮流白浆在线麻豆| 日韩激情一二三区| 亚洲欧美偷拍三级| 国产亚洲美州欧州综合国| 91麻豆精品国产91久久久久久| 92国产精品观看| 久久精品99国产精品日本| 一区二区三区精品在线|