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

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

?? ixosaliomem.h

?? uboot的源碼,包括了常見的處理器平臺
?? 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一区二区三区免费野_久草精品视频
色婷婷综合激情| 中文字幕在线一区免费| 成人高清在线视频| 国产精品一线二线三线精华| 日韩av一区二区在线影视| 亚洲高清免费在线| 午夜婷婷国产麻豆精品| 天天av天天翘天天综合网| 日韩经典中文字幕一区| 亚洲国产综合人成综合网站| 亚洲成人激情综合网| 欧美aⅴ一区二区三区视频| 蜜臂av日日欢夜夜爽一区| 青娱乐精品视频在线| 精品一二三四在线| a级高清视频欧美日韩| 成人动漫在线一区| 欧美三区在线观看| 欧美www视频| 中文字幕高清不卡| 亚洲精品自拍动漫在线| 日韩一区欧美二区| 国产一区二区毛片| aaa亚洲精品一二三区| 欧美性受xxxx黑人xyx性爽| 日韩一区国产二区欧美三区| 中文字幕乱码久久午夜不卡| 日本网站在线观看一区二区三区| 老司机免费视频一区二区 | 欧美三级在线视频| 日韩一区二区三区在线视频| 欧美国产丝袜视频| 日韩成人伦理电影在线观看| 国产1区2区3区精品美女| 欧美午夜精品免费| 久久久久久97三级| 亚洲一二三专区| 国产成人丝袜美腿| 3atv一区二区三区| 亚洲欧洲中文日韩久久av乱码| 免费高清在线一区| 欧美网站大全在线观看| 久久久久久久国产精品影院| 亚洲va韩国va欧美va| 成人app软件下载大全免费| 日韩一区二区三区观看| 亚洲精选视频免费看| 大桥未久av一区二区三区中文| 制服视频三区第一页精品| 中文字幕日韩一区二区| 国产最新精品精品你懂的| 欧美三级中文字幕在线观看| 国产精品第一页第二页第三页| 久久精品国产网站| 制服丝袜亚洲色图| 亚洲综合在线五月| 99re成人在线| 精品99999| 日韩电影免费在线看| 日本久久一区二区| 亚洲色图欧美偷拍| 不卡的av网站| 国产精品久久久一本精品 | 欧美肥妇毛茸茸| 最新不卡av在线| 大胆欧美人体老妇| 国产区在线观看成人精品| 国产福利91精品一区| 精品少妇一区二区三区在线视频| 午夜精品久久久久久久99水蜜桃 | 免费成人av在线| 欧美日韩精品欧美日韩精品一| 中文字幕在线播放不卡一区| 国产99精品国产| 久久精品在这里| 国产成人免费视频一区| 中文字幕免费观看一区| caoporen国产精品视频| 最新欧美精品一区二区三区| 91视频一区二区三区| 最好看的中文字幕久久| 日本道免费精品一区二区三区| 一区二区三区四区高清精品免费观看 | 亚洲欧美日韩在线| 在线视频一区二区免费| 亚洲不卡av一区二区三区| 3d动漫精品啪啪一区二区竹菊 | 国产福利一区在线| 国产精品美女www爽爽爽| 99re这里只有精品首页| 一区二区三区高清| 91精品国模一区二区三区| 久久成人18免费观看| 欧美国产激情一区二区三区蜜月| www.在线欧美| 亚洲sss视频在线视频| 久久久久国产免费免费 | 五月婷婷色综合| 久久人人爽人人爽| 一本大道久久精品懂色aⅴ| 午夜不卡在线视频| 国产丝袜美腿一区二区三区| 色综合久久久久综合| 日本免费在线视频不卡一不卡二| 久久综合色之久久综合| 色综合视频在线观看| 麻豆成人久久精品二区三区小说| 国产欧美日韩三级| 欧美日韩不卡在线| 成人动漫一区二区在线| 午夜精品久久久久久久久久| 国产女同性恋一区二区| 91麻豆精品国产无毒不卡在线观看| 久久精品国产亚洲aⅴ| 一区二区三区 在线观看视频| 日韩精品一区二区三区在线 | 首页欧美精品中文字幕| 中文字幕不卡在线播放| 91麻豆精品国产无毒不卡在线观看| 国产一区二区h| 午夜精品一区二区三区免费视频| 国产亚洲精品久| 91超碰这里只有精品国产| 成人午夜看片网址| 激情成人午夜视频| 五月激情丁香一区二区三区| 国产精品三级电影| 久久先锋影音av| 欧美日本乱大交xxxxx| av一区二区三区四区| 国产一区二区91| 美女精品自拍一二三四| 日本欧美一区二区三区乱码| 一二三区精品福利视频| 亚洲欧洲精品一区二区三区| 精品国精品自拍自在线| 正在播放亚洲一区| 欧美性猛交xxxxxxxx| 91麻豆国产在线观看| www.日韩精品| 国产精品99久久久久| 久久aⅴ国产欧美74aaa| 亚洲成人综合在线| 亚洲大片免费看| 午夜成人免费电影| 秋霞成人午夜伦在线观看| 午夜激情一区二区| 日韩在线一二三区| 日韩av中文字幕一区二区| 日韩精品福利网| 老色鬼精品视频在线观看播放| 日韩av一级电影| 韩国午夜理伦三级不卡影院| 久久99精品久久久久久| 国产精一区二区三区| 懂色一区二区三区免费观看| 国产高清精品在线| 91亚洲精华国产精华精华液| 91碰在线视频| 欧美日韩三级一区| 日韩视频一区二区| 久久久综合激的五月天| 国产精品久久久久9999吃药| 中文字幕第一区二区| 一区二区成人在线| 日韩电影在线免费看| 久久激五月天综合精品| 丁香天五香天堂综合| 色先锋资源久久综合| 欧美日韩一区二区三区免费看| 日韩欧美的一区二区| 国产欧美一区二区精品忘忧草 | 亚洲男人的天堂在线aⅴ视频| 亚洲精品一卡二卡| 免费高清在线视频一区·| 国产高清精品网站| 欧美无砖专区一中文字| 精品粉嫩超白一线天av| 中文字幕一区二区三区不卡在线| 亚洲电影在线免费观看| 狠狠色丁香久久婷婷综合_中| 成人免费av资源| 欧美电影一区二区三区| 亚洲国产岛国毛片在线| 亚洲国产wwwccc36天堂| 国产乱码精品一区二区三区av | 国模一区二区三区白浆| 99国产精品久久| 欧美成人三级在线| 亚洲男同性恋视频| 国产美女久久久久| 欧美性猛片xxxx免费看久爱| 久久久精品人体av艺术| 亚洲一区二区三区在线播放| 国产尤物一区二区| 欧美视频你懂的| 中文字幕亚洲一区二区va在线| 首页欧美精品中文字幕| 91首页免费视频| 国产亚洲欧美色|