source: SVN/cambria/redboot/packages/devs/eth/intel/npe/common/current/include/osal/ecos/core/IxOsalOs.h @ 1

Last change on this file since 1 was 1, checked in by Tim Harvey, 2 years ago

restored latest version of files from server backup

Signed-off-by: Tim Harvey <tharvey@…>

File size: 663 bytes
Line 
1#ifndef IxOsalOs_H
2#define IxOsalOs_H
3
4#include <pkgconf/system.h>
5#include CYGBLD_HAL_VARIANT_H
6
7#ifndef IX_OSAL_CACHED
8#error "Uncached memory not supported in linux environment"
9#endif
10
11#include <cyg/hal/hal_cache.h>
12
13static inline unsigned long __v2p(unsigned long v)
14{
15    if (v < 0x40000000)
16        return (v & 0xfffffff);
17}
18
19#define IX_OSAL_OS_MMU_VIRT_TO_PHYS(addr)        __v2p(addr)
20#define IX_OSAL_OS_MMU_PHYS_TO_VIRT(addr)        (addr)
21#define IX_OSAL_OS_CACHE_INVALIDATE(addr, size)  HAL_DCACHE_INVALIDATE((addr), (size))
22#define IX_OSAL_OS_CACHE_FLUSH(addr, size)       HAL_DCACHE_FLUSH((addr), (size))
23
24#define printf  diag_printf
25
26#endif // IxOsalOs_H
27
Note: See TracBrowser for help on using the repository browser.