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

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

?? usbpcistub.c

?? T2.0 USB driver.rar T2.0 USB driver.rar
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* usbPciStub.c - System-specific PCI Functions *//* Copyright 2000 Wind River Systems, Inc. *//*Modification history--------------------01a,22nov00,wef  First, created from 01h of the mcp750 bsp stub*//*DESCRIPTIONThis file defines a skeleton of functions to be used for accessing the PCI bus capabilities.  These functions allow PCI device drivers to be written independent of the underlying O/S's PCI access mechanisms.The name of each function in this group begins with "usb" to represent"Device Driver Services."*//* Includes */#include "vxWorks.h"#include "string.h"#include "sysLib.h"#include "cacheLib.h"#include "iv.h"#include "intLib.h"#include "drv/pci/pciConfigLib.h"   /* VxWorks PCI funcs */#include "usb/usbPlatform.h"		/* Basic definitions */#include "usb/usbPciLib.h"			/* Our API */#error "usbPciStub.c: Customize the USB PCI macros before first use"/* * TODO: Read and update this stub file to customize it for this * BSP.  Delete the #error statement above afterwards. Look for * TODO references in this file. *//* * TODO: Adjust the 3 macros below as needed. * * USB_PCI_IO_OFFSET is the offset between a physical PCI IO address * and the virtual address used to access it.  In this example code, * PCI IO addresses map one-to-one with virtual IO addresses used * by the sysInByte() and sysOutByte() routines.  In a memory * mapped system it would be very unlikely for this value to be zero. * * USB_PCI_MEMIO_OFFSET is the offset between Memory IO (non prefetch) * PCI physical addresses and the local virtual address that corresponds * to it. * * USB_PCI_MEM_OFFSET is the offset between Memory (prefetchable) PCI * physical addresses and the local virtual address that corresponds * to it. */#define USB_PCI_IO_OFFSET	0x0#define USB_PCI_MEMIO_OFFSET	0x0#define USB_PCI_MEM_OFFSET	0x0/* * TODO: Define the following macros to describe how to connect * and disconnect interrupts on your hardware.  This should * normally be mapped to the pciIntLib functions. *//* Interrupt enable/disable mappings */#define USB_INT_CONNECT(intNo, func, param) \    pciIntConnect (INUM_TO_IVEC(intNo), (VOIDFUNCPTR) func, (int) param)#define USB_INT_DISCONNECT(intNo, func, param) \    pciIntDisconnect2 (INUM_TO_IVEC(intNo), (VOIDFUNCPTR) func, (int) param)#define USB_INT_ENABLE(i)	intEnable (i)#define USB_INT_DISABLE(i)	intDisable (i)/* * TODO: Define the following macros to read/write data * to/from PCI I/O space as needed.  This may be I/O * mapped accesses or memory accesses.  This example * code assumes I/O mapped accesses using sysInByte * functions provided by the BSP sysLib module. *//* Map I/O functions to underlying system functions. */#define	USB_PCI_IN_BYTE(a)	sysInByte ((a) + USB_PCI_IO_OFFSET)#define	USB_PCI_IN_WORD(a)	sysInWord ((a) + USB_PCI_IO_OFFSET)#define	USB_PCI_IN_DWORD(a)	sysInLong ((a) + USB_PCI_IO_OFFSET)#define	USB_PCI_OUT_BYTE(a,v)	sysOutByte ((a) + USB_PCI_IO_OFFSET, (v))#define	USB_PCI_OUT_WORD(a,v)	sysOutWord ((a) + USB_PCI_IO_OFFSET, (v))#define	USB_PCI_OUT_DWORD(a,v)	sysOutLong ((a) + USB_PCI_IO_OFFSET, (v))/* code tracks usage count for interrupts 0..USB_MAX_INT_NO-1. */#define USB_MAX_INT_NO		16/* TODO: Leave the code below this point alone. *//* locals */LOCAL UINT16 intUsage [USB_MAX_INT_NO] = {0};/***************************************************************************** usbPciClassFind - Locates PCI devices by class.** A caller uses this function to locate a PCI device by its PCI class.* The caller must specify the <pciClass>, <subClass>, and <pgmIf> for the* device being sought.	The function returns the first matching device* for <index> = 0, the second for <index> = 1, and so forth.  The* bus number, device number, and function number for the matching device * are returned in the <pBusNo>, <pDeviceNo>, and <pFuncNo> buffers provided * by the caller. *** RETURNS:* Returns TRUE if matching device found, FALSE if device not found.*/BOOL usbPciClassFind    (    UINT8 pciClass,		/* PCI device class */    UINT8 subClass,		/* PCI device sub-class */    UINT8 pgmIf,		/* Programming interface */    UINT16 index,		/* Caller wants nth matching dev */    pUINT8 pBusNo,		/* Bus number of matching dev */    pUINT8 pDeviceNo,		/* Device number of matching dev */    pUINT8 pFuncNo		/* Function number of matching dev */    )    {    int intBusNo;		/* VxWorks returns "int" values */    int intDeviceNo;    int intFuncNo;        /* Use the VxWorks PCI config. library to find a device within the    specified class. */    if (pciFindClass ((pciClass << 16) | (subClass << 8) | pgmIf, index,	&intBusNo, &intDeviceNo, &intFuncNo) != OK)	{	return FALSE;	}    else	{	if (pBusNo)	     *pBusNo = (UINT8) intBusNo;	if (pDeviceNo)	     *pDeviceNo = (UINT8) intDeviceNo;	if (pFuncNo)	     *pFuncNo = (UINT8) intFuncNo;	}    return TRUE;    }/***************************************************************************** usbPciByteGet - Returns a UINT8 configuration value** This function returns the UINT8 value at offset <regOffset> from * the PCI configuration space of the device identified by <busNo>, * <deviceNo>, and <funcNo>.** RETURNS: UINT8 value read from device configuration space*/UINT8 usbPciByteGet     (    UINT8 busNo,		/* Bus number of device */    UINT8 deviceNo,		/* Device number of device */    UINT8 funcNo,		/* Function number of device */    UINT16 regOffset		/* Offset into PCI config space */    )    {    UINT8 value;    if (pciConfigInByte (busNo, deviceNo, funcNo, regOffset, &value) != OK)	return 0;    return value;    }/***************************************************************************** usbPciWordGet - Returns a UINT16 configuration value** This function returns the UINT16 value at offset <regOffset> from * the PCI configuration space of the device identified by <busNo>, * <deviceNo>, and <funcNo>.** NOTE: This function adjusts for big vs. little endian environments.** RETURNS: UINT16 value read from device configuration space*/UINT32 usbPciWordGet    (    UINT8 busNo,		/* Bus number of device */    UINT8 deviceNo,		/* Device number of device */    UINT8 funcNo,		/* Function number of device */    UINT16 regOffset		/* Offset into PCI config space */    )    {    UINT16 value;    if (pciConfigInWord (busNo, deviceNo, funcNo, regOffset, &value) != OK)	return 0;    return value;    }/***************************************************************************** usbPciDwordGet - Returns a UINT32 configuration value** This function returns the UINT32 value at offset <regOffset> from * the PCI configuration space of the device identified by <busNo>, * <deviceNo>, and <funcNo>.** NOTE: This function adjusts for big vs. little endian environments.** RETURNS: UINT32 value read from device configuration space*/UINT32 usbPciDwordGet    (    UINT8 busNo,		/* Bus number of device */    UINT8 deviceNo,		/* Device number of device */    UINT8 funcNo,		/* Function number of device */    UINT16 regOffset		/* Offset into PCI config space */    )    {    UINT32 value;    if (pciConfigInLong (busNo, deviceNo, funcNo, regOffset, &value) != OK)	return 0;    return value;    }/***************************************************************************** usbPciConfigHeaderGet - Reads a device's PCI configuration header** This function reads the PCI configuration header for the device* identified by <busNo>, <deviceNo>, and <funcNo>.  The configuration* header is stored in the <pCfgHdr> buffer provided by the caller.** This function initializes the <pCfgHdr> structure to zeros.  Any * fields which cannot be read from the device's configuration header * will remain zero upon return.  This function does not attempt to read* fields defined as "reserved" in the PCI configuration header.** RETURNS: N/A*/VOID usbPciConfigHeaderGet    (    UINT8 busNo,		/* Bus number of device */    UINT8 deviceNo,		/* Device number of device */    UINT8 funcNo,		/* Function number of device */    pPCI_CFG_HEADER pCfgHdr	/* Buffer provided by caller */    )    {    int i;    /* Do nothing if CfgHdr is NULL */    if (pCfgHdr == NULL)	return;    /* Initialize the buffer to zeros. */    memset (pCfgHdr, 0, sizeof (*pCfgHdr));    /* Read and store each field in the PCI configuration header. */    pCfgHdr->vendorId	= usbPciWordGet (busNo, deviceNo, funcNo, PCI_CFG_VENDOR_ID);    pCfgHdr->deviceId	= usbPciWordGet (busNo, deviceNo, funcNo, PCI_CFG_DEVICE_ID);    pCfgHdr->command	= usbPciWordGet (busNo, deviceNo, funcNo, PCI_CFG_COMMAND);    pCfgHdr->status	= usbPciWordGet (busNo, deviceNo, funcNo, PCI_CFG_STATUS);    pCfgHdr->revisionId = usbPciByteGet (busNo, deviceNo, funcNo, PCI_CFG_REVISION);    pCfgHdr->pgmIf	= usbPciByteGet (busNo, deviceNo, funcNo, PCI_CFG_PROGRAMMING_IF);    pCfgHdr->subClass	= usbPciByteGet (busNo, deviceNo, funcNo, PCI_CFG_SUBCLASS);    pCfgHdr->pciClass	= usbPciByteGet (busNo, deviceNo, funcNo, PCI_CFG_CLASS);    pCfgHdr->cacheLineSize = usbPciByteGet (busNo, deviceNo, funcNo, PCI_CFG_CACHE_LINE_SIZE);    pCfgHdr->latencyTimer = usbPciByteGet (busNo, deviceNo, funcNo, PCI_CFG_LATENCY_TIMER);    pCfgHdr->headerType = usbPciByteGet (busNo, deviceNo, funcNo, PCI_CFG_HEADER_TYPE);    pCfgHdr->bist	= usbPciByteGet (busNo, deviceNo, funcNo, PCI_CFG_BIST);    for (i = 0; i < PCI_CFG_NUM_BASE_REG; i++)	pCfgHdr->baseReg [i] = usbPciDwordGet (busNo, deviceNo, funcNo, 	    PCI_CFG_BASE_ADDRESS_0 + i * sizeof (UINT32));    pCfgHdr->romBase	= usbPciDwordGet (busNo, deviceNo, funcNo, PCI_CFG_EXPANSION_ROM);    pCfgHdr->intLine	= usbPciByteGet (busNo, deviceNo, funcNo, PCI_CFG_DEV_INT_LINE);    pCfgHdr->intPin	= usbPciByteGet (busNo, deviceNo, funcNo, PCI_CFG_DEV_INT_PIN);    pCfgHdr->minGrant	= usbPciByteGet (busNo, deviceNo, funcNo, PCI_CFG_MIN_GRANT);    pCfgHdr->maxLatency = usbPciByteGet (busNo, deviceNo, funcNo, PCI_CFG_MAX_LATENCY);

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产经典视频| 日韩视频免费直播| 久久精品国内一区二区三区| 亚洲精品免费一二三区| 欧美—级在线免费片| 亚洲激情欧美激情| 国内一区二区在线| 国产麻豆精品在线| 久久99国产乱子伦精品免费| 久久爱www久久做| 91黄色免费观看| 91国在线观看| 中文字幕成人在线观看| 日韩成人一级大片| 久久国产精品区| 91福利在线免费观看| 国产欧美久久久精品影院| ...xxx性欧美| 亚洲专区一二三| 午夜精品久久久久久久蜜桃app | 成人性生交大片免费看在线播放| 国产精品一区二区91| 成人视屏免费看| 亚洲精品一区在线观看| 久久精品亚洲精品国产欧美kt∨| 国产肉丝袜一区二区| 蜜桃av噜噜一区| 粉嫩aⅴ一区二区三区四区| 色婷婷久久久久swag精品| 欧美日韩1234| 久久久精品国产免大香伊| 亚洲视频一二区| 美女一区二区久久| 91精品国产综合久久久久久 | 一级特黄大欧美久久久| 免费成人在线网站| 国产成人av电影在线播放| 精品1区2区在线观看| 久久99国产精品久久99果冻传媒| 在线不卡一区二区| 综合久久一区二区三区| 99久久久无码国产精品| 91.xcao| 爽好久久久欧美精品| 成人永久免费视频| 亚洲欧洲精品一区二区三区| www.欧美日韩| www日韩大片| 天堂在线亚洲视频| 日韩一区二区三区四区五区六区| 老司机精品视频在线| 久久综合色8888| 懂色av一区二区夜夜嗨| 国产精品久久午夜夜伦鲁鲁| 黄色日韩三级电影| 国产精品午夜久久| 久久91精品国产91久久小草 | 国产精品一区二区三区网站| 日韩一区二区三区在线| 免费人成精品欧美精品| 久久影视一区二区| www.性欧美| 亚洲一区在线观看视频| 欧美日韩亚洲综合一区 | 亚洲伊人伊色伊影伊综合网| 欧美午夜一区二区三区免费大片| 日本一区二区三级电影在线观看 | 久久97超碰色| 国产精品美女久久久久久久久 | 日韩一区欧美一区| 777亚洲妇女| 国产aⅴ综合色| 亚洲sss视频在线视频| 91精品1区2区| 狠狠色伊人亚洲综合成人| 国产精品狼人久久影院观看方式| 欧美日韩在线三区| 豆国产96在线|亚洲| 五月天一区二区| 亚洲三级在线观看| 日韩美女视频在线| 日韩电影在线观看网站| 亚洲国产精品黑人久久久| 在线播放91灌醉迷j高跟美女| 国产老女人精品毛片久久| 亚洲一区在线播放| 国产精品女主播av| 日韩一级大片在线| 色狠狠一区二区三区香蕉| 国产精品一二三| 美女脱光内衣内裤视频久久影院| 亚洲欧洲日产国产综合网| www成人在线观看| 欧美精品九九99久久| 91麻豆蜜桃一区二区三区| 亚洲靠逼com| 国产日韩视频一区二区三区| 91精品在线免费观看| 91成人在线免费观看| 成人国产精品免费观看| 亚洲免费观看高清完整| 99久久精品一区二区| 国产精品一级在线| 久久99国内精品| 麻豆精品一区二区av白丝在线| 一区二区国产盗摄色噜噜| 色婷婷久久久综合中文字幕| 一区二区中文视频| 久久久噜噜噜久久中文字幕色伊伊| 欧美日韩成人高清| 91久久精品午夜一区二区| 99精品视频一区| 成人精品视频网站| 成人午夜电影网站| 成人免费视频app| 国产高清视频一区| 国产精品久久久久久久久久免费看 | 亚洲欧洲综合另类在线| ...中文天堂在线一区| 中文字幕中文字幕一区二区| 国产精品毛片大码女人| 国产精品国产自产拍在线| 国产精品高潮呻吟久久| 成人欧美一区二区三区在线播放| 中文字幕日韩一区| 亚洲免费色视频| 亚洲成人精品一区二区| 亚洲成在人线免费| 美日韩一区二区三区| 精品一区二区三区视频| 国产精选一区二区三区| 成人av网址在线| 欧洲一区二区三区在线| 国产99久久久国产精品| 成人美女在线观看| 色香蕉成人二区免费| 欧美体内she精视频| 欧美一区永久视频免费观看| 色综合久久天天| 精品视频一区二区三区免费| 91精品国模一区二区三区| 欧美精品一区二区三区久久久| 国产色产综合产在线视频| 亚洲免费毛片网站| 日韩国产一二三区| 国产iv一区二区三区| 欧美午夜理伦三级在线观看| 日韩欧美国产一区二区三区| 久久精品一二三| 亚洲综合图片区| 国产精品原创巨作av| 日本道免费精品一区二区三区| 欧美一区二区精品在线| 国产精品色在线| 日本视频一区二区三区| 从欧美一区二区三区| 欧美日韩精品综合在线| 久久精品视频在线看| 亚洲亚洲精品在线观看| 亚洲主播在线观看| 国产乱码字幕精品高清av| 91高清视频在线| 日本一区二区三区国色天香| 亚洲成a人片在线观看中文| 国产伦精品一区二区三区免费迷| 91黄视频在线观看| 国产亲近乱来精品视频| 日韩va欧美va亚洲va久久| www.av亚洲| 久久亚洲一级片| 丝袜亚洲另类丝袜在线| jlzzjlzz亚洲日本少妇| 久久精品免视看| 婷婷亚洲久悠悠色悠在线播放 | 精品不卡在线视频| 亚洲永久免费av| 99久久久国产精品| 久久青草欧美一区二区三区| 婷婷六月综合网| 91黄色免费看| 国产精品伦理在线| 国内精品久久久久影院色| 欧美日韩美女一区二区| 亚洲人成在线观看一区二区| 国产成人av一区二区三区在线| 91精品中文字幕一区二区三区| 亚洲精品欧美激情| 99精品视频免费在线观看| 国产日韩精品一区| 国产一区二区美女诱惑| 欧美大胆一级视频| 日本免费新一区视频| 欧美巨大另类极品videosbest | 日韩免费视频线观看| 亚洲高清不卡在线观看| 色妹子一区二区| 一区精品在线播放| 99久久精品国产毛片| 国产精品萝li| 99国产精品一区|