📄 ixosalddk.h
字号:
/** * @file IxOsalDdk.h * * @brief include file for OSAL's DDK module. * * * @par * IXP400 SW Release version 2.3 * * -- Copyright Notice -- * * @par * Copyright (c) 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 IxOsalDdk_H#define IxOsalDdk_H/* Basic types */#include "IxOsal.h"/** * @ingroup IxOsal * * @brief physical to virtual address translation * * @param physAddr - physical address * * Converts a physical address into its equivalent MMU-mapped virtual address * * @li Reentrant: no * @li IRQ safe: yes * * @return Corresponding virtual address, as UINT32 */#define IX_OSAL_MMU_PHYS_TO_VIRT(physAddr) \ IX_OSAL_OS_MMU_PHYS_TO_VIRT(physAddr)/** * @ingroup IxOsal * * @brief virtual to physical address translation * * @param virtAddr - virtual address * * Converts a virtual address into its equivalent MMU-mapped physical address * * @li Reentrant: no * @li IRQ safe: yes * * @return Corresponding physical address, as UINT32 */#define IX_OSAL_MMU_VIRT_TO_PHYS(virtAddr) \ IX_OSAL_OS_MMU_VIRT_TO_PHYS(virtAddr)/** * @ingroup IxOsal * * @brief cache to memory flush * * @param addr - memory address to flush from cache * @param size - number of bytes to flush (rounded up to a cache line) * * Flushes the cached value of the memory zone pointed by "addr" into memory, * rounding up to a cache line. Use before the zone is to be read by a * processing unit which is not cache coherent with the main CPU. * * @li Reentrant: no * @li IRQ safe: yes * * @return - none */#define IX_OSAL_CACHE_FLUSH(addr, size) IX_OSAL_OS_CACHE_FLUSH(addr, size)/** * @ingroup IxOsal * * @brief cache line invalidate * * @param addr - memory address to invalidate in cache * @param size - number of bytes to invalidate (rounded up to a cache line) * * Invalidates the cached value of the memory zone pointed by "addr", * rounding up to a cache line. Use before reading the zone from the main * CPU, if the zone has been updated by a processing unit which is not cache * coherent with the main CPU. * * @li Reentrant: no * @li IRQ safe: yes * * @return - none */#define IX_OSAL_CACHE_INVALIDATE(addr, size) IX_OSAL_OS_CACHE_INVALIDATE(addr, size)/** * @ingroup IxOsal * * @brief cache line preload * * @param addr - memory address to cache * @param size - number of bytes to cache (rounded up to a cache line) * * * Preloads a section of memory to the cache memory in multiples of cache line size. * * @li Reentrant: no * @li IRQ safe: yes * * @return - none */#define IX_OSAL_CACHE_PRELOAD(addr, size) IX_OSAL_OS_CACHE_PRELOAD(addr, size) #endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -