mmu.h 697 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. */
  8. #ifndef _ASM_ARC_MMU_H
  9. #define _ASM_ARC_MMU_H
  10. #if defined(CONFIG_ARC_MMU_V1)
  11. #define CONFIG_ARC_MMU_VER 1
  12. #elif defined(CONFIG_ARC_MMU_V2)
  13. #define CONFIG_ARC_MMU_VER 2
  14. #elif defined(CONFIG_ARC_MMU_V3)
  15. #define CONFIG_ARC_MMU_VER 3
  16. #endif
  17. #ifndef __ASSEMBLY__
  18. typedef struct {
  19. unsigned long asid; /* Pvt Addr-Space ID for mm */
  20. #ifdef CONFIG_ARC_TLB_DBG
  21. struct task_struct *tsk;
  22. #endif
  23. } mm_context_t;
  24. #endif
  25. #endif