hv_vos_Cache.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /*
  2. * @file hv_vos_Cache.h
  3. * @brief Header file of vos cache.
  4. *
  5. * @verbatim
  6. * ==============================================================================
  7. * ##### How to use #####
  8. * ==============================================================================
  9. * (+) Use ()
  10. *
  11. * @endverbatim
  12. * @author HiView SoC Software Team
  13. * @version 1.0.0
  14. * @date 2023-03-01
  15. */
  16. /** @file vos_conn.h
  17. * @brief VOS board connection functions
  18. */
  19. #ifndef _HV_VOS_CACHE_H
  20. #define _HV_VOS_CACHE_H
  21. #include "hv_vos_Types.h"
  22. void Hv_Vos_EnableICache(void);
  23. /**
  24. \brief Disable I-Cache
  25. \details Turns off I-Cache
  26. */
  27. void Hv_Vos_DisableICache(void);
  28. /**
  29. \brief Invalidate I-Cache
  30. \details Invalidates I-Cache
  31. */
  32. void Hv_Vos_InvalidAllICache(void);
  33. /**
  34. \brief Enable D-Cache
  35. \details Turns on D-Cache
  36. \note I-Cache also turns on.
  37. */
  38. void Hv_Vos_EnableDCache(void);
  39. /**
  40. \brief Disable D-Cache
  41. \details Turns off D-Cache
  42. \note I-Cache also turns off.
  43. */
  44. void Hv_Vos_DisableDCache (void);
  45. /**
  46. \brief Invalidate D-Cache
  47. \details Invalidates D-Cache
  48. \note I-Cache also invalid
  49. */
  50. void Hv_Vos_InvalidAllDCache (void);
  51. void Hv_Vos_InvalidAllCache(void);
  52. void Hv_Vos_InvalidICache(UINT32 vaddr, UINT32 size);
  53. void Hv_Vos_InvalidDCache(UINT32 vaddr, UINT32 size);
  54. void Hv_Vos_InvalidCache(UINT32 vaddr, UINT32 size);
  55. void Hv_Vos_CACHE_WriteBackInvalidAllDCache(void);
  56. #endif