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

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

?? ixosaliomem.h

?? 友善mini2440嵌入式
?? H
字號:
/* * @file        IxOsalIoMem.h * @author 	Intel Corporation * @date        25-08-2004 * * @brief       description goes here *//** * @par * IXP400 SW Release version 2.0 *  * -- Copyright Notice -- *  * @par * Copyright 2001-2005, Intel Corporation. * All rights reserved. *  * @par * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright *    notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright *    notice, this list of conditions and the following disclaimer in the *    documentation and/or other materials provided with the distribution. * 3. Neither the name of the Intel Corporation nor the names of its contributors *    may be used to endorse or promote products derived from this software *    without specific prior written permission. *  * @par * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. *  * @par * -- End of Copyright Notice -- */#ifndef IxOsalIoMem_H#define IxOsalIoMem_H/* * Decide OS and Endianess, such as IX_OSAL_VXWORKS_LE. */#include "IxOsalEndianess.h"/** * @defgroup IxOsalIoMem Osal IoMem module * * @brief I/O memory and endianess support. * * @{  *//* Low-level conversion macros - DO NOT USE UNLESS ABSOLUTELY NEEDED */#ifndef __wince/*  * Private function to swap word */#ifdef __XSCALE__static __inline__ UINT32ixOsalCoreWordSwap (UINT32 wordIn){    /*     * Storage for the swapped word      */    UINT32 wordOut;    /*     * wordIn = A, B, C, D      */    __asm__ (" eor r1, %1, %1, ror #16;"	/* R1 =      A^C, B^D, C^A, D^B */	     " bic r1, r1, #0x00ff0000;"	/* R1 =      A^C, 0  , C^A, D^B */	     " mov %0, %1, ror #8;"	/* wordOut = D,   A,   B,   C   */	     " eor %0, %0, r1, lsr #8;"	/* wordOut = D,   C,   B,   A   */  : "=r" (wordOut): "r" (wordIn):"r1");    return wordOut;}#define IX_OSAL_SWAP_LONG(wData)          (ixOsalCoreWordSwap(wData))#else#define IX_OSAL_SWAP_LONG(wData)          ((wData >> 24) | (((wData >> 16) & 0xFF) << 8) | (((wData >> 8) & 0xFF) << 16) | ((wData & 0xFF) << 24))#endif#else /* ndef __wince */#define IX_OSAL_SWAP_LONG(wData)        ((((UINT32)wData << 24) | ((UINT32)wData >> 24)) | (((wData << 8) & 0xff0000) | ((wData >> 8) & 0xff00)))#endif /* ndef __wince */#define IX_OSAL_SWAP_SHORT(sData)         ((sData >> 8) | ((sData & 0xFF) << 8))#define IX_OSAL_SWAP_SHORT_ADDRESS(sAddr) ((sAddr) ^ 0x2)#define IX_OSAL_SWAP_BYTE_ADDRESS(bAddr)  ((bAddr) ^ 0x3)#define IX_OSAL_BE_XSTOBUSL(wData)  (wData)#define IX_OSAL_BE_XSTOBUSS(sData)  (sData)#define IX_OSAL_BE_XSTOBUSB(bData)  (bData)#define IX_OSAL_BE_BUSTOXSL(wData)  (wData)#define IX_OSAL_BE_BUSTOXSS(sData)  (sData)#define IX_OSAL_BE_BUSTOXSB(bData)  (bData)#define IX_OSAL_LE_AC_XSTOBUSL(wAddr) (wAddr)#define IX_OSAL_LE_AC_XSTOBUSS(sAddr) IX_OSAL_SWAP_SHORT_ADDRESS(sAddr)#define IX_OSAL_LE_AC_XSTOBUSB(bAddr) IX_OSAL_SWAP_BYTE_ADDRESS(bAddr)#define IX_OSAL_LE_AC_BUSTOXSL(wAddr) (wAddr)#define IX_OSAL_LE_AC_BUSTOXSS(sAddr) IX_OSAL_SWAP_SHORT_ADDRESS(sAddr)#define IX_OSAL_LE_AC_BUSTOXSB(bAddr) IX_OSAL_SWAP_BYTE_ADDRESS(bAddr)#define IX_OSAL_LE_DC_XSTOBUSL(wData) IX_OSAL_SWAP_LONG(wData)#define IX_OSAL_LE_DC_XSTOBUSS(sData) IX_OSAL_SWAP_SHORT(sData)#define IX_OSAL_LE_DC_XSTOBUSB(bData) (bData)#define IX_OSAL_LE_DC_BUSTOXSL(wData) IX_OSAL_SWAP_LONG(wData)#define IX_OSAL_LE_DC_BUSTOXSS(sData) IX_OSAL_SWAP_SHORT(sData)#define IX_OSAL_LE_DC_BUSTOXSB(bData) (bData)/* * Decide SDRAM mapping, then implement read/write */#include "IxOsalMemAccess.h"/** * @ingroup IxOsalIoMem * @enum IxOsalMapEntryType * @brief This is an emum for OSAL I/O mem map type.  */typedef enum{    IX_OSAL_STATIC_MAP = 0,	 /**<Set map entry type to static map */    IX_OSAL_DYNAMIC_MAP	     /**<Set map entry type to dynamic map */} IxOsalMapEntryType;/** * @ingroup IxOsalIoMem * @enum IxOsalMapEndianessType * @brief This is an emum for OSAL I/O mem Endianess and Coherency mode. */typedef enum{    IX_OSAL_BE = 0x1,      /**<Set map endian mode to Big Endian */    IX_OSAL_LE_AC = 0x2,   /**<Set map endian mode to Little Endian, Address Coherent */    IX_OSAL_LE_DC = 0x4,   /**<Set map endian mode to Little Endian, Data Coherent */    IX_OSAL_LE = 0x8       /**<Set map endian mode to Little Endian without specifying coherency mode */} IxOsalMapEndianessType;/** * @struct IxOsalMemoryMap  * @brief IxOsalMemoryMap structure */typedef struct _IxOsalMemoryMap{    IxOsalMapEntryType type;   /**< map type - IX_OSAL_STATIC_MAP or IX_OSAL_DYNAMIC_MAP */    UINT32 physicalAddress;    /**< physical address of the memory mapped I/O zone */    UINT32 size;               /**< size of the map */    UINT32 virtualAddress;     /**< virtual address of the zone; must be predefined                                    in the global memory map for static maps and has                                    to be NULL for dynamic maps (populated on allocation)								*/    /*     * pointer to a map function called to map a dynamic map;      * will populate the virtualAddress field      */    void (*mapFunction) (struct _IxOsalMemoryMap * map);   /**< pointer to a map function called to map a dynamic map */    /*     * pointer to a map function called to unmap a dynamic map;      * will reset the virtualAddress field to NULL      */    void (*unmapFunction) (struct _IxOsalMemoryMap * map); /**< pointer to a map function called to unmap a dynamic map */    /*     * reference count describing how many components share this map;      * actual allocation/deallocation for dynamic maps is done only      * between 0 <=> 1 transitions of the counter      */    UINT32 refCount;   /**< reference count describing how many components share this map */    /*     * memory endian type for the map; can be a combination of IX_OSAL_BE (Big      * Endian) and IX_OSAL_LE or IX_OSAL_LE_AC or IX_OSAL_LE_DC     * (Little Endian, Address Coherent or Data Coherent). Any combination is     * allowed provided it contains at most one LE flag - e.g.     * (IX_OSAL_BE), (IX_OSAL_LE_AC), (IX_OSAL_BE | IX_OSAL_LE_DC) are valid     * combinations while (IX_OSAL_BE | IX_OSAL_LE_DC | IX_OSAL_LE_AC) is not.      */    IxOsalMapEndianessType mapEndianType; /**< memory endian type for the map */    char *name;      /**< user-friendly name */} IxOsalMemoryMap;/* Internal function to map a memory zone * NOTE - This should not be called by the user. * Use the macro IX_OSAL_MEM_MAP instead */PUBLIC void *ixOsalIoMemMap (UINT32 requestedAddress,			     UINT32 size,			     IxOsalMapEndianessType requestedCoherency);/* Internal function to unmap a memory zone mapped with ixOsalIoMemMap * NOTE - This should not be called by the user. * Use the macro IX_OSAL_MEM_UNMAP instead */PUBLIC void ixOsalIoMemUnmap (UINT32 requestedAddress, UINT32 coherency);/* Internal function to convert virtual address to physical address  * NOTE - This should not be called by the user. * Use the macro IX_OSAL_MMAP_VIRT_TO_PHYS */PUBLIC UINT32 ixOsalIoMemVirtToPhys (UINT32 virtualAddress, UINT32 coherency);/* Internal function to convert physical address to virtual address  * NOTE - This should not be called by the user. * Use the macro IX_OSAL_MMAP_PHYS_TO_VIRT */PUBLIC UINT32ixOsalIoMemPhysToVirt (UINT32 physicalAddress, UINT32 coherency);/** * @ingroup IxOsalIoMem * * @def IX_OSAL_MEM_MAP(physAddr, size) * * @brief Map an I/O mapped physical memory zone to virtual zone and return virtual *        pointer. * @param  physAddr - the physical address * @param  size     - the size * @return start address of the virtual memory zone. * * @note  This function maps an I/O mapped physical memory zone of the given size * into a virtual memory zone accessible by the caller and returns a cookie -  * the start address of the virtual memory zone.  * IX_OSAL_MMAP_PHYS_TO_VIRT should NOT therefore be used on the returned  * virtual address. * The memory zone is to be unmapped using IX_OSAL_MEM_UNMAP once the caller has * finished using this zone (e.g. on driver unload) using the cookie as  * parameter. * The IX_OSAL_READ/WRITE_LONG/SHORT macros should be used to read and write  * the mapped memory, adding the necessary offsets to the address cookie. */#define IX_OSAL_MEM_MAP(physAddr, size) \    ixOsalIoMemMap((physAddr), (size), IX_OSAL_COMPONENT_MAPPING)/** * @ingroup IxOsalIoMem * * @def IX_OSAL_MEM_UNMAP(virtAddr) * * @brief Unmap a previously mapped I/O memory zone using virtual pointer obtained *        during the mapping operation. *        pointer. * @param  virtAddr - the virtual pointer to the zone to be unmapped. * @return none * * @note  This function unmaps a previously mapped I/O memory zone using * the cookie obtained in the mapping operation. The memory zone in question * becomes unavailable to the caller once unmapped and the cookie should be * discarded. * * This function cannot fail if the given parameter is correct and does not * return a value. */#define IX_OSAL_MEM_UNMAP(virtAddr) \    ixOsalIoMemUnmap ((virtAddr), IX_OSAL_COMPONENT_MAPPING)/** * @ingroup IxOsalIoMem * * @def IX_OSAL_MMAP_VIRT_TO_PHYS(virtAddr) * * @brief This function Converts a virtual address into a physical  * address, including the dynamically mapped memory. * * @param  virtAddr - virtual address to convert * Return value: corresponding physical address, or NULL */#define IX_OSAL_MMAP_VIRT_TO_PHYS(virtAddr) \    ixOsalIoMemVirtToPhys(virtAddr, IX_OSAL_COMPONENT_MAPPING)/** * @ingroup IxOsalIoMem * * @def IX_OSAL_MMAP_PHYS_TO_VIRT(physAddr) * * @brief  This function Converts a virtual address into a physical  * address, including the dynamically mapped memory. * * @param  physAddr - physical address to convert * Return value: corresponding virtual address, or NULL * */#define IX_OSAL_MMAP_PHYS_TO_VIRT(physAddr) \    ixOsalIoMemPhysToVirt(physAddr, IX_OSAL_COMPONENT_MAPPING)/** * @} IxOsalIoMem */#endif /* IxOsalIoMem_H */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
美女免费视频一区| 亚洲女同女同女同女同女同69| 欧美亚洲国产一区二区三区va| 欧美亚洲禁片免费| 久久久久久久久99精品| 亚洲国产精品精华液2区45| 亚洲一区二区美女| 国产精品一区二区在线播放 | 精品久久久久久久一区二区蜜臀| 精品美女在线观看| 亚洲一区二区欧美激情| 国模一区二区三区白浆| 91国模大尺度私拍在线视频| 亚洲精品在线观看网站| 青青草成人在线观看| 91丝袜美腿高跟国产极品老师| 欧美一区二区三区四区视频| 日韩毛片一二三区| 亚洲www啪成人一区二区麻豆| 国产中文一区二区三区| 欧美日韩二区三区| 亚洲免费在线观看| 成人一级片网址| 欧美刺激脚交jootjob| 日韩影院免费视频| 欧洲亚洲国产日韩| 亚洲日本青草视频在线怡红院| 国产精品自拍在线| 久久久99精品久久| 色婷婷av一区二区三区大白胸| 欧美极品aⅴ影院| 国产在线不卡一卡二卡三卡四卡| 日韩一级完整毛片| 久久精品72免费观看| 91精品婷婷国产综合久久性色| 一区二区三区视频在线看| 成人白浆超碰人人人人| 亚洲国产高清不卡| 日韩免费看网站| 激情伊人五月天久久综合| 国产欧美日韩久久| 成+人+亚洲+综合天堂| 亚洲私人影院在线观看| 色综合色综合色综合色综合色综合 | 久久久精品2019中文字幕之3| 久久草av在线| 国产精品久久久久久久久久免费看 | 99久久综合色| 午夜伊人狠狠久久| 欧美成人精品3d动漫h| 国产精品一区二区久久不卡| 中文字幕一区二区三| 911精品产国品一二三产区| 久久成人羞羞网站| 亚洲视频综合在线| 欧美一区二区视频在线观看2020| 精品一区二区三区视频在线观看| 国产精品久久一卡二卡| 这里只有精品电影| 91亚洲精品久久久蜜桃网站| 日韩成人精品在线| 国产精品乱人伦中文| 7777精品伊人久久久大香线蕉经典版下载 | 国产91高潮流白浆在线麻豆| 亚洲第一电影网| 中文字幕在线一区免费| 久久精品视频一区| 91精品国产美女浴室洗澡无遮挡| 在线免费精品视频| 91蜜桃婷婷狠狠久久综合9色| 国产成人高清在线| 国产在线视频不卡二| 久久精品999| 麻豆极品一区二区三区| 人人超碰91尤物精品国产| 亚洲成精国产精品女| 午夜视黄欧洲亚洲| 调教+趴+乳夹+国产+精品| 亚洲欧美电影一区二区| 亚洲精品视频在线观看网站| 亚洲欧美激情小说另类| 亚洲免费观看高清| 夜夜操天天操亚洲| 午夜激情综合网| 久久av中文字幕片| 成人动漫视频在线| 精品视频在线看| 精品国产不卡一区二区三区| 久久久久久久久蜜桃| 国产精品视频看| 夜夜精品视频一区二区| 三级成人在线视频| 国产精品白丝jk白祙喷水网站| 国产aⅴ综合色| 欧美三级电影在线看| 久久久噜噜噜久久中文字幕色伊伊| 日本一区二区免费在线观看视频 | 波多野结衣亚洲| 欧美综合欧美视频| 国产欧美日韩另类一区| 亚洲一区二区三区影院| 精品系列免费在线观看| 99久久精品国产导航| 日韩女优av电影| 亚洲图片自拍偷拍| 国产69精品久久久久777| 欧美三区在线观看| 欧美国产精品劲爆| 日韩电影在线看| 色综合久久综合网欧美综合网| 欧美哺乳videos| 日韩在线观看一区二区| 91视频.com| 综合欧美亚洲日本| 99久久er热在这里只有精品15| 精品日韩99亚洲| 日韩国产精品91| 欧美挠脚心视频网站| 亚洲综合偷拍欧美一区色| 成人h动漫精品一区二| 久久综合九色综合97_久久久| 日本中文字幕一区二区视频 | 激情六月婷婷综合| 日韩精品在线网站| 国产尤物一区二区| 国产欧美一区二区精品久导航| 国产一区二区精品久久99| 久久久午夜电影| 99国产麻豆精品| 亚洲精品免费播放| 欧美日韩亚洲综合在线 欧美亚洲特黄一级| ㊣最新国产の精品bt伙计久久| 波多野结衣精品在线| 亚洲欧美另类久久久精品2019| 91女厕偷拍女厕偷拍高清| 一区二区三区成人在线视频| 欧美精选在线播放| 看国产成人h片视频| 久久久久国产精品人| av福利精品导航| 亚洲一区二区视频| 久久九九99视频| 日本精品免费观看高清观看| 奇米影视一区二区三区| 中文字幕av在线一区二区三区| 色婷婷精品大在线视频| 麻豆91在线看| 一卡二卡欧美日韩| 国产日韩精品一区二区三区| 日本精品一级二级| youjizz国产精品| 国产一区二区视频在线播放| 午夜私人影院久久久久| 久久精品一区蜜桃臀影院| 欧美三片在线视频观看| 99精品欧美一区二区三区小说 | 久久国产精品色| 亚洲不卡在线观看| 成人免费一区二区三区在线观看| 欧美日韩亚洲综合在线| 97超碰欧美中文字幕| 国产一区二区三区黄视频| 精品一区二区三区免费播放| 亚洲一区av在线| 一个色在线综合| 亚洲精品国产a久久久久久| 中文字幕一区二区三区精华液| 精品理论电影在线| 精品国产欧美一区二区| 91麻豆精品久久久久蜜臀| 欧美视频完全免费看| 欧美性猛交xxxx乱大交退制版| 91天堂素人约啪| 欧美日韩国产区一| 日韩精品一区二区三区视频播放| 日韩小视频在线观看专区| 欧美二区乱c少妇| 欧美精品一区二区高清在线观看| 日韩欧美国产电影| 久久久99精品免费观看不卡| 国产精品久久久一区麻豆最新章节| 国产精品欧美久久久久无广告 | 国产成人在线视频免费播放| 99久久精品国产一区| 欧美午夜一区二区三区| 精品国产三级a在线观看| 最好看的中文字幕久久| 美女久久久精品| 成人av在线网站| 欧美日韩一区不卡| 欧美国产精品专区| 亚洲第一久久影院| 成人午夜视频在线观看| 欧美剧在线免费观看网站| 精品国产麻豆免费人成网站| 一区二区三区视频在线看| 国产成a人无v码亚洲福利| 欧美一区二区三区免费大片 | 成人免费av网站| 日韩欧美国产成人一区二区|