blob: 23dde52e0945f31c24ddd9fc4ddc1b8e66a74163 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef __ARM_MMU_H
2#define __ARM_MMU_H
3
Russell King002547b2006-06-20 20:46:52 +01004#ifdef CONFIG_MMU
5
Linus Torvalds1da177e2005-04-16 15:20:36 -07006typedef 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
Russell King002547b2006-06-20 20:46:52 +010018#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 */
25typedef struct {
26 struct vm_list_struct *vmlist;
27 unsigned long end_brk;
28} mm_context_t;
29
30#endif
31
Linus Torvalds1da177e2005-04-16 15:20:36 -070032#endif