spu_cache.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* Copyright (C) 2008-2015 Free Software Foundation, Inc.
  2. This file is free software; you can redistribute it and/or modify it under
  3. the terms of the GNU General Public License as published by the Free
  4. Software Foundation; either version 3 of the License, or (at your option)
  5. any later version.
  6. This file is distributed in the hope that it will be useful, but WITHOUT
  7. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  8. FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  9. for more details.
  10. Under Section 7 of GPL version 3, you are granted additional
  11. permissions described in the GCC Runtime Library Exception, version
  12. 3.1, as published by the Free Software Foundation.
  13. You should have received a copy of the GNU General Public License and
  14. a copy of the GCC Runtime Library Exception along with this program;
  15. see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
  16. <http://www.gnu.org/licenses/>. */
  17. #ifndef _SPU_CACHE_H
  18. #define _SPU_CACHE_H
  19. void *__cache_fetch_dirty (__ea void *ea, int n_bytes_dirty);
  20. void *__cache_fetch (__ea void *ea);
  21. void __cache_evict (__ea void *ea);
  22. void __cache_flush (void);
  23. void __cache_touch (__ea void *ea);
  24. #define cache_fetch_dirty(_ea, _n_bytes_dirty) \
  25. __cache_fetch_dirty(_ea, _n_bytes_dirty)
  26. #define cache_fetch(_ea) __cache_fetch(_ea)
  27. #define cache_touch(_ea) __cache_touch(_ea)
  28. #define cache_evict(_ea) __cache_evict(_ea)
  29. #define cache_flush() __cache_flush()
  30. #endif