]> pilppa.org Git - linux-2.6-omap-h63xx.git/blob - include/asm-arm/mmu.h
Merge master.kernel.org:/pub/scm/linux/kernel/git/kyle/parisc-2.6
[linux-2.6-omap-h63xx.git] / include / asm-arm / mmu.h
1 #ifndef __ARM_MMU_H
2 #define __ARM_MMU_H
3
4 #ifdef CONFIG_MMU
5
6 typedef struct {
7 #if __LINUX_ARM_ARCH__ >= 6
8         unsigned int id;
9 #endif
10 } mm_context_t;
11
12 #if __LINUX_ARM_ARCH__ >= 6
13 #define ASID(mm)        ((mm)->context.id & 255)
14 #else
15 #define ASID(mm)        (0)
16 #endif
17
18 #else
19
20 /*
21  * From nommu.h:
22  *  Copyright (C) 2002, David McCullough <davidm@snapgear.com>
23  *  modified for 2.6 by Hyok S. Choi <hyok.choi@samsung.com>
24  */
25 typedef struct {
26         struct vm_list_struct   *vmlist;
27         unsigned long           end_brk;
28 } mm_context_t;
29
30 #endif
31
32 #endif