Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef __ARM_MMU_H |
| 2 | #define __ARM_MMU_H |
| 3 | |
Russell King | 002547b | 2006-06-20 20:46:52 +0100 | [diff] [blame] | 4 | #ifdef CONFIG_MMU |
| 5 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 6 | typedef struct { |
| 7 | #if __LINUX_ARM_ARCH__ >= 6 |
| 8 | unsigned int id; |
| 9 | #endif |
Russell King | ff0daca | 2006-06-29 20:17:15 +0100 | [diff] [blame] | 10 | unsigned int kvm_seq; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 11 | } mm_context_t; |
| 12 | |
| 13 | #if __LINUX_ARM_ARCH__ >= 6 |
| 14 | #define ASID(mm) ((mm)->context.id & 255) |
| 15 | #else |
| 16 | #define ASID(mm) (0) |
| 17 | #endif |
| 18 | |
Russell King | 002547b | 2006-06-20 20:46:52 +0100 | [diff] [blame] | 19 | #else |
| 20 | |
| 21 | /* |
| 22 | * From nommu.h: |
| 23 | * Copyright (C) 2002, David McCullough <davidm@snapgear.com> |
| 24 | * modified for 2.6 by Hyok S. Choi <hyok.choi@samsung.com> |
| 25 | */ |
| 26 | typedef struct { |
| 27 | struct vm_list_struct *vmlist; |
| 28 | unsigned long end_brk; |
| 29 | } mm_context_t; |
| 30 | |
| 31 | #endif |
| 32 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 33 | #endif |