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

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

?? usbpcistub.c

?? SL811 USB接口芯片用于VxWorks系統的驅動源代碼
?? C
?? 第 1 頁 / 共 2 頁
字號:
*
* Inputs a byte from a PCI I/O address <address>.
*
* RETURNS: byte input from i/o address
*/

UINT8 usbPciByteIn
    (
    UINT32 address		/* PCI I/O address */
    )

    {
    return USB_PCI_IN_BYTE (address);
    }


/***************************************************************************
*
* usbPciWordIn - input a word from PCI I/O space
*
* Inputs a word from a PCI I/O address <address>.
*
* NOTE: This function adjusts for big vs. little endian environments.
*
* RETURNS: word input from i/o address
*/

UINT16 usbPciWordIn
    (
    UINT32 address		/* PCI I/O address */
    )

    {
    UINT16 w = USB_PCI_IN_WORD (address);
    return FROM_LITTLEW (w);
    }


/***************************************************************************
*
* usbPciDwordIn - input a dword from PCI I/O space
*
* Inputs a dword from a PCI I/O address <address>.
*
* NOTE: This function adjusts for big vs. little endian environments.
*
* RETURNS: dword input from i/o address
*/

UINT32 usbPciDwordIn
    (
    UINT32 address		/* PCI I/O address */
    )

    {
    UINT32 l = USB_PCI_IN_DWORD (address);
    return FROM_LITTLEL (l);
    }


/***************************************************************************
*
* usbPciByteOut - output a byte to PCI I/O space
*
* Outputs <value> to the PCI I/O address <address>.
*
* RETURNS: N/A
*/

VOID usbPciByteOut
    (
    UINT32 address,		/* PCI I/O address */
    UINT8 value 		/* value */
    )

    {
    USB_PCI_OUT_BYTE (address, value);
    CACHE_PIPE_FLUSH ();
    }


/***************************************************************************
*
* usbPciWordOut - outputs a word to PCI I/O space
*
* Outputs <value> to the PCI I/O address <address>.
*
* NOTE: This function adjusts for big vs. little endian environments.
*
* RETURNS: N/A
*/

VOID usbPciWordOut
    (
    UINT32 address,		/* PCI I/O address */
    UINT16 value		/* value */
    )

    {
    UINT16 w = TO_LITTLEW (value);
    USB_PCI_OUT_WORD (address, w);
    CACHE_PIPE_FLUSH ();
    }


/***************************************************************************
*
* usbPciDwordOut - outputs a dword to PCI I/O space
*
* Outputs <value> to the PCI I/O address <address>.
*
* NOTE: This function adjusts for big vs. little endian environments.
*
* RETURNS: N/A
*/

VOID usbPciDwordOut
    (
    UINT32 address,		/* PCI I/O address */
    UINT32 value		/* value */
    )

    {
    UINT32 l = TO_LITTLEL (value);
    USB_PCI_OUT_DWORD (address, l);
    CACHE_PIPE_FLUSH ();
    }
#endif


/***************************************************************************
*
* usbPciMemioOffset - Return PCI MEMIO to CPU MEMIO offset
*
* For memory-mapped I/O, the CPU's view of a memory address may not be the
* same as that programmed into the base address register of a PCI adapter.
* The CPU should add the value returned by this function to the BAR in order
* to produce the correct CPU-visible memory address.
*
* RETURNS: PCI_MEMIO_OFFSET
*/

UINT32 usbPciMemioOffset (void)
    {
#ifdef INCLUDE_USB_PCI
    return PCI_MEMIO_OFFSET;
#else
    return 0;
#endif
    }


/***************************************************************************
*
* usbMemToPci - Convert a memory address to a PCI-reachable memory address
*
* Converts <pMem> to an equivalent 32-bit memory address visible from the 
* PCI bus.  This conversion is necessary to allow PCI bus masters to address
* the same memory viewed by the processor.
*
* RETURNS: converted memory address
*/

UINT32 usbMemToPci
    (
    pVOID pMem			/* memory address to convert */
    )

    {
#ifdef INCLUDE_USB_PCI
    pVOID pPhys;
    
    /* The conversion is a two-step process.  First, we need to convert the
     * logical processor address (virtual) to a physical address.  Then, we
     * convert the physical address to one which can be seen from the PCI
     * bus.
     */

    pPhys = CACHE_DRV_VIRT_TO_PHYS (&cacheUserFuncs, pMem);

    return ((UINT32) pPhys) + PCI_MEM_OFFSET;
#else
    return(UINT32)pMem ;
#endif

    }


/***************************************************************************
*
* usbPciToMem - Convert a PCI-reachable address to a CPU-reachable pointer
*
* Converts <pciAdrs> to an equivalent CPU memory address.  
*
* RETURNS: pointer to PCI memory
*/

pVOID usbPciToMem
    (
    UINT32 pciAdrs		/* 32-bit PCI address to be converted */
    )

    {

#ifdef INCLUDE_USB_PCI
    return CACHE_DRV_PHYS_TO_VIRT (&cacheUserFuncs, 
	(void *) (pciAdrs - PCI_MEM_OFFSET));
#else
    return (pVOID)pciAdrs ;
#endif

    }


#ifdef INCLUDE_USB_PCI
/***************************************************************************
*
* usbPciMemInvalidate - Invalidate cache for a region of memory
*
* When another bus master, such as a PCI bus master, writes to memory, the
* cache may need to be invalidated for that region of memory.
*
* NOTE: Returns immediately if size == 0.
*
* RETURNS: N/A
*/

VOID usbPciMemInvalidate
    (
    pVOID pMem, 		/* base of memory region to invalidate */
    UINT32 size 		/* size of region to invalidate */
    )

    {
    if (size != 0)
	CACHE_USER_INVALIDATE (pMem, size);
    }


/***************************************************************************
*
* usbPciMemFlush - Flush a region of memory through the cache
*
* In systems which implement a non-write-thru cache, the processor may have
* written data to memory which has not yet been flushed to the actual system
* memory.  Before other bus masters may interrogate this memory, it may be
* necessary to flush the cache.
*
* NOTE: Returns immediately if size == 0.
*
* RETURNS: N/A
*/

VOID usbPciMemFlush
    (
    pVOID pMem, 		/* base of memory region to invalidate */
    UINT32 size 		/* size of region to invalidate */
    )

    {
    if (size != 0)
	CACHE_USER_FLUSH (pMem, size);
    }
#endif


/***************************************************************************
*
* usbPciIntConnect - Connect to a interrupt vector
*
* Connects the <func> to the interrupt number <intNo>.	<param> is an
* application-specific value which will be passed to <func> each time
* the interrupt handler is invoked.  
*
* RETURNS: OK, or ERROR if unable to connect/enable interrupt
*/

STATUS usbPciIntConnect
    (
    INT_HANDLER_PROTOTYPE func,     /* new interrupt handler */
    pVOID param,		    /* parameter for int handler */
    UINT16 intNo		    /* interrupt vector number */
    )

    {
#ifdef INCLUDE_USB_PCI
    if (USB_INT_CONNECT (intNo, func, param) != OK)
	return ERROR;

    if (USB_INT_ENABLE (intNo) != OK)
	{
	USB_INT_DISCONNECT (intNo, func, param);
	return ERROR;
	}

    if (intNo < USB_MAX_INT_NO) 
	intUsage [intNo]++;
#endif

    return OK;
    }


/***************************************************************************
*
* usbPciIntDisconnect - Removes an interrupt handler
*
* Removes an interrupt handler installed by usbPciIntConnect().  <func>,
* <param>, and <intNo> must match the corresponding parameters from an earlier 
* call to usbPciIntConnect().
*
* RETURNS: N/A
*/

VOID usbPciIntRestore
    (
    INT_HANDLER_PROTOTYPE func,     /* int handler to be removed */
    pVOID param,		    /* parameter for int handler */
    UINT16 intNo		    /* interrupt vector number */
    )

    {
#ifdef INCLUDE_USB_PCI
    if (intNo >= USB_MAX_INT_NO || 
	(intUsage [intNo] != 0 && --intUsage [intNo] == 0))
	{
	USB_INT_DISABLE (intNo);
	}

    USB_INT_DISCONNECT (intNo, func, param);
#endif
    }


/* End of file. */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩三级伦理片妻子的秘密按摩| 亚洲综合色在线| 男女激情视频一区| 欧美色手机在线观看| 麻豆免费精品视频| 男人操女人的视频在线观看欧美| 色婷婷国产精品| 亚洲欧美国产三级| 日本韩国欧美一区二区三区| 亚洲女同ⅹxx女同tv| 色噜噜狠狠色综合中国| 亚洲一区在线观看网站| 欧美情侣在线播放| 日韩中文字幕1| 亚洲精品一区二区三区四区高清| 黄页网站大全一区二区| 一本在线高清不卡dvd| 欧美写真视频网站| 欧美国产一区二区| 色综合欧美在线视频区| 亚洲成av人片一区二区| 精品捆绑美女sm三区| 成人污视频在线观看| 亚洲激情校园春色| 日韩午夜精品电影| 色综合久久久网| 日韩国产精品大片| 国产亲近乱来精品视频| 色综合天天综合在线视频| 日韩精品一二三四| 中文字幕在线观看一区| 欧美精品乱码久久久久久| 国产成人av影院| 香蕉成人伊视频在线观看| 久久亚洲捆绑美女| 欧美日韩你懂的| 99久久精品免费观看| 男女视频一区二区| 亚洲福利一二三区| 亚洲欧洲综合另类| 国产精品久久久久久久久晋中| 欧美一区二区黄色| 欧美日韩一区二区在线观看视频 | 精品视频色一区| 成人一区二区三区视频| 麻豆一区二区三区| 午夜久久福利影院| 偷拍与自拍一区| 亚洲一区在线观看免费| 亚洲欧洲日本在线| 欧美国产日韩一二三区| 国产无人区一区二区三区| 精品国偷自产国产一区| 久久天堂av综合合色蜜桃网| 欧美一区二区三区啪啪| 91精品国产高清一区二区三区蜜臀| 在线观看日韩毛片| 欧美日韩亚洲国产综合| 欧美精品 国产精品| 在线成人小视频| 欧美mv日韩mv| 国产精品欧美一区喷水| 一区二区三区四区国产精品| 亚洲在线视频一区| 日韩不卡在线观看日韩不卡视频| 麻豆高清免费国产一区| 国产高清不卡二三区| 99国产精品久久久久久久久久久| 色狠狠桃花综合| 精品区一区二区| 国产精品久久久久9999吃药| 亚洲一区在线观看网站| 狠狠狠色丁香婷婷综合久久五月| 国产精品影视网| 欧美日韩亚洲国产综合| 久久亚洲春色中文字幕久久久| 中文字幕av一区二区三区高 | 日韩成人av影视| 国产成人精品免费在线| 欧美嫩在线观看| 国产夜色精品一区二区av| 午夜久久久久久久久| 国产sm精品调教视频网站| 欧美日本在线一区| ...xxx性欧美| 国产精品影视在线观看| 欧美日韩国产123区| 亚洲图片激情小说| 国产精品自拍av| 日韩精品一区二区三区视频在线观看 | 色狠狠色狠狠综合| 国产另类ts人妖一区二区| 蜜臀91精品一区二区三区| 国产福利精品一区| 欧美私模裸体表演在线观看| 国产欧美va欧美不卡在线| 极品少妇一区二区三区精品视频| 中文字幕一区二区日韩精品绯色| 国产欧美一区二区三区在线老狼 | 亚洲图片一区二区| 蜜臀av亚洲一区中文字幕| 国产91在线观看丝袜| 91在线观看成人| ...xxx性欧美| 久久综合中文字幕| 91精品久久久久久蜜臀| 久久综合九色综合97婷婷女人 | 亚洲欧美aⅴ...| 日韩一区精品字幕| www.亚洲色图| 久久久久免费观看| 亚洲午夜在线观看视频在线| 国产精品99久久久久| 欧美日韩精品免费| 国产精品欧美一级免费| 精品一区二区久久久| av中文字幕在线不卡| 欧美精品一区二区高清在线观看| 亚洲欧洲综合另类| 国产精品综合一区二区| 日韩欧美在线不卡| 天天爽夜夜爽夜夜爽精品视频| 国产91精品一区二区| 久久综合99re88久久爱| 日本免费新一区视频| 欧美色倩网站大全免费| 中文字幕中文在线不卡住| 国产91在线观看丝袜| 精品美女一区二区三区| 亚洲va欧美va国产va天堂影院| 99re亚洲国产精品| 亚洲图片另类小说| 色噜噜狠狠色综合中国| 亚洲精品水蜜桃| 欧美综合一区二区| 三级影片在线观看欧美日韩一区二区| 97se亚洲国产综合在线| 综合激情网...| 欧美三级中文字幕在线观看| 亚洲一区二区精品视频| 欧美一区二区三区成人| 六月丁香综合在线视频| 中文在线资源观看网站视频免费不卡 | 精品一区二区免费| 国产精品短视频| 欧美日韩精品欧美日韩精品| 男人的j进女人的j一区| 国产亚洲一区二区在线观看| www.在线成人| 免费欧美在线视频| 亚洲欧洲国产日韩| 欧美区一区二区三区| 成人午夜看片网址| 首页欧美精品中文字幕| 国产三区在线成人av| 欧美日韩dvd在线观看| 懂色av一区二区三区免费看| 亚洲一区二区三区美女| 精品国产乱码久久久久久久久| 岛国精品在线播放| 久久激情五月激情| 五月激情综合色| 亚洲欧美日韩国产综合| 精品剧情在线观看| 欧美久久一区二区| 欧洲亚洲精品在线| 91啪亚洲精品| 成人视屏免费看| 国内精品伊人久久久久影院对白| 亚洲一区在线观看视频| 1024精品合集| 日韩美女视频一区二区| 欧美经典一区二区| 日本一二三不卡| 欧美国产国产综合| 亚洲国产激情av| 亚洲欧洲日本在线| 亚洲精品一区在线观看| 精品国产亚洲一区二区三区在线观看| 欧美猛男超大videosgay| 91精品婷婷国产综合久久性色 | 亚洲一区在线视频| 天堂一区二区在线| 奇米在线7777在线精品| 六月丁香婷婷色狠狠久久| 麻豆一区二区在线| 国产成人亚洲综合a∨婷婷图片| 免费观看成人鲁鲁鲁鲁鲁视频| 精品亚洲成a人在线观看| 国产98色在线|日韩| 色婷婷一区二区三区四区| 在线综合视频播放| 亚洲精品一区在线观看| 日韩美女视频一区二区| 天天av天天翘天天综合网色鬼国产 | 亚洲超丰满肉感bbw| 国产一区二区看久久| 91国产成人在线| 国产精品国产三级国产普通话蜜臀| 国产精品成人免费在线|