cacheArmSA1500Lib.h
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:1k
源码类别:

VxWorks

开发平台:

C/C++

  1. /* cacheArmSA1500Lib.h - ARM SA-1500 cache library header file */
  2. /* Copyright 1998 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01a,24nov98,jpd  created
  7. */
  8. #ifndef __INCcacheArmSA1500Libh
  9. #define __INCcacheArmSA1500Libh
  10. #ifdef __cplusplus
  11. extern "C" {
  12. #endif
  13. #define D_CACHE_SIZE (16*1024) /* 16 kbytes DCache */
  14. #define MINI_CACHE_SIZE 1024   /* 512 bytes minicache */
  15. #define MINI_CACHE_LINE_SIZE 32   /* 32 bytes per line */
  16. /* bit definitions within sysCacheArchFlags used to set "features" */
  17.  
  18. #define ARM_CACHE_FLAG_I_ENABLED (1<<0) /* leave I-cache enabled */
  19. #ifndef _ASMLANGUAGE
  20. /*
  21.  * Variable used to hold flags to control behaviour of cache library
  22.  * (in particular whether to leave the I-cache enabled on startup).
  23.  */
  24.     
  25. IMPORT UINT32 sysCacheArchFlags;
  26. IMPORT void     cacheArmSA1500LibInstall (void * (* physToVirt) (void * addr),
  27.   void * (* virtToPhys) (void * addr));
  28. IMPORT void cacheArmSA1500DClearDisable (void);
  29. IMPORT void cacheArmSA1500DFlush (void * addr);
  30. IMPORT void cacheArmSA1500DFlushAll (void);
  31. IMPORT void cacheArmSA1500DInvalidateAll (void);
  32. IMPORT void cacheArmSA1500DInvalidate (void * addr);
  33. IMPORT void cacheArmSA1500IInvalidateAll (void);
  34. IMPORT void cacheArmSA1500DClearAll (void);
  35. IMPORT void cacheArmSA1500DClear (void * addr);
  36. IMPORT void cacheArmSA1500IClearDisable (void);
  37. IMPORT void cacheArmSA1500ArchPipeFlush (void);
  38. #endif /* _ASMLANGUAGE */
  39. #ifdef __cplusplus
  40. }
  41. #endif
  42. #endif /* __INCcacheArmSA1500Libh */