cachectl.h 768 B

123456789101112131415161718192021222324252627282930
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. /*
  3. * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2 as
  7. * published by the Free Software Foundation.
  8. */
  9. #ifndef __ARC_ASM_CACHECTL_H
  10. #define __ARC_ASM_CACHECTL_H
  11. /*
  12. * ARC ABI flags defined for Android's finegrained cacheflush requirements
  13. */
  14. #define CF_I_INV 0x0002
  15. #define CF_D_FLUSH 0x0010
  16. #define CF_D_FLUSH_INV 0x0020
  17. #define CF_DEFAULT (CF_I_INV | CF_D_FLUSH)
  18. /*
  19. * Standard flags expected by cacheflush system call users
  20. */
  21. #define ICACHE CF_I_INV
  22. #define DCACHE CF_D_FLUSH
  23. #define BCACHE (CF_I_INV | CF_D_FLUSH)
  24. #endif