blob: b561584d04a18ef6c631d1e05d69f6ff4b22d194 [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 {
Russell King516793c2007-05-17 10:19:23 +01007#ifdef CONFIG_CPU_HAS_ASID
Linus Torvalds1da177e2005-04-16 15:20:36 -07008 unsigned int id;
9#endif
Russell Kingff0daca2006-06-29 20:17:15 +010010 unsigned int kvm_seq;
Linus Torvalds1da177e2005-04-16 15:20:36 -070011} mm_context_t;
12
Russell King516793c2007-05-17 10:19:23 +010013#ifdef CONFIG_CPU_HAS_ASID
Linus Torvalds1da177e2005-04-16 15:20:36 -070014#define ASID(mm) ((mm)->context.id & 255)
15#else
16#define ASID(mm) (0)
17#endif
18
Russell King002547b2006-06-20 20:46:52 +010019#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 */
26typedef struct {
Russell King002547b2006-06-20 20:46:52 +010027 unsigned long end_brk;
28} mm_context_t;
29
30#endif
31
Linus Torvalds1da177e2005-04-16 15:20:36 -070032#endif