cache.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * File : cache.h
  3. * This file is part of RT-Thread RTOS
  4. * COPYRIGHT (C) 2006 - 2011, RT-Thread Development Team
  5. *
  6. * The license and distribution terms for this file may be
  7. * found in the file LICENSE in this distribution or at
  8. * http://www.rt-thread.org/license/LICENSE
  9. *
  10. * Change Logs:
  11. * Date Author Notes
  12. * 2010-07-09 Bernard first version
  13. * 2011-08-08 lgnq modified for LS1B
  14. */
  15. #ifndef __CACHE_H__
  16. #define __CACHE_H__
  17. /*
  18. * Cache Operations
  19. */
  20. #define Index_Invalidate_I 0x00
  21. #define Index_Writeback_Inv_D 0x01
  22. #define Index_Invalidate_SI 0x02
  23. #define Index_Writeback_Inv_SD 0x03
  24. #define Index_Load_Tag_I 0x04
  25. #define Index_Load_Tag_D 0x05
  26. #define Index_Load_Tag_SI 0x06
  27. #define Index_Load_Tag_SD 0x07
  28. #define Index_Store_Tag_I 0x08
  29. #define Index_Store_Tag_D 0x09
  30. #define Index_Store_Tag_SI 0x0A
  31. #define Index_Store_Tag_SD 0x0B
  32. #define Create_Dirty_Excl_D 0x0d
  33. #define Create_Dirty_Excl_SD 0x0f
  34. #define Hit_Invalidate_I 0x10
  35. #define Hit_Invalidate_D 0x11
  36. #define Hit_Invalidate_SI 0x12
  37. #define Hit_Invalidate_SD 0x13
  38. #define Fill 0x14
  39. #define Hit_Writeback_Inv_D 0x15
  40. /* 0x16 is unused */
  41. #define Hit_Writeback_Inv_SD 0x17
  42. #define Hit_Writeback_I 0x18
  43. #define Hit_Writeback_D 0x19
  44. /* 0x1a is unused */
  45. #define Hit_Writeback_SD 0x1b
  46. /* 0x1c is unused */
  47. /* 0x1e is unused */
  48. #define Hit_Set_Virtual_SI 0x1e
  49. #define Hit_Set_Virtual_SD 0x1f
  50. #endif