cacheArmSA1500Lib.h
资源名称:ixp425BSP.rar [点击查看]
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:1k
源码类别:
VxWorks
开发平台:
C/C++
- /* cacheArmSA1500Lib.h - ARM SA-1500 cache library header file */
- /* Copyright 1998 Wind River Systems, Inc. */
- /*
- modification history
- --------------------
- 01a,24nov98,jpd created
- */
- #ifndef __INCcacheArmSA1500Libh
- #define __INCcacheArmSA1500Libh
- #ifdef __cplusplus
- extern "C" {
- #endif
- #define D_CACHE_SIZE (16*1024) /* 16 kbytes DCache */
- #define MINI_CACHE_SIZE 1024 /* 512 bytes minicache */
- #define MINI_CACHE_LINE_SIZE 32 /* 32 bytes per line */
- /* bit definitions within sysCacheArchFlags used to set "features" */
- #define ARM_CACHE_FLAG_I_ENABLED (1<<0) /* leave I-cache enabled */
- #ifndef _ASMLANGUAGE
- /*
- * Variable used to hold flags to control behaviour of cache library
- * (in particular whether to leave the I-cache enabled on startup).
- */
- IMPORT UINT32 sysCacheArchFlags;
- IMPORT void cacheArmSA1500LibInstall (void * (* physToVirt) (void * addr),
- void * (* virtToPhys) (void * addr));
- IMPORT void cacheArmSA1500DClearDisable (void);
- IMPORT void cacheArmSA1500DFlush (void * addr);
- IMPORT void cacheArmSA1500DFlushAll (void);
- IMPORT void cacheArmSA1500DInvalidateAll (void);
- IMPORT void cacheArmSA1500DInvalidate (void * addr);
- IMPORT void cacheArmSA1500IInvalidateAll (void);
- IMPORT void cacheArmSA1500DClearAll (void);
- IMPORT void cacheArmSA1500DClear (void * addr);
- IMPORT void cacheArmSA1500IClearDisable (void);
- IMPORT void cacheArmSA1500ArchPipeFlush (void);
- #endif /* _ASMLANGUAGE */
- #ifdef __cplusplus
- }
- #endif
- #endif /* __INCcacheArmSA1500Libh */