aboutsummaryrefslogtreecommitdiffstats
path: root/extras/mini-os/include/x86
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-03-02 10:50:59 +0000
committerKeir Fraser <keir.fraser@citrix.com>2009-03-02 10:50:59 +0000
commit6976b9a7c20dce349dccfb0eec658af5fa9af3c5 (patch)
treedbb16b8d0a9c693f4e6744bf95a75c3ad87df46c /extras/mini-os/include/x86
parent8e3feb5145bbde1f01d001ce9574f67de87173f7 (diff)
downloadxen-6976b9a7c20dce349dccfb0eec658af5fa9af3c5.tar.gz
xen-6976b9a7c20dce349dccfb0eec658af5fa9af3c5.tar.bz2
xen-6976b9a7c20dce349dccfb0eec658af5fa9af3c5.zip
minios: add ioremap/iounmap
Add ioremap and iounmap functions to minios. Also move some unmapping code from and clean up mem_test. Signed-off-by: Rolf Neugebauer <rolf.neugebauer@netronome.com> Acked-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Diffstat (limited to 'extras/mini-os/include/x86')
-rw-r--r--extras/mini-os/include/x86/arch_mm.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/extras/mini-os/include/x86/arch_mm.h b/extras/mini-os/include/x86/arch_mm.h
index 4a04812891..36b81f2f2e 100644
--- a/extras/mini-os/include/x86/arch_mm.h
+++ b/extras/mini-os/include/x86/arch_mm.h
@@ -133,6 +133,10 @@ typedef unsigned long pgentry_t;
#define L4_PROT (_PAGE_PRESENT|_PAGE_RW|_PAGE_ACCESSED|_PAGE_DIRTY|_PAGE_USER)
#endif /* __i386__ || __x86_64__ */
+/* flags for ioremap */
+#define IO_PROT (L1_PROT)
+#define IO_PROT_NOCACHE (L1_PROT | _PAGE_PCD)
+
#include "arch_limits.h"
#define PAGE_SIZE __PAGE_SIZE
#define PAGE_SHIFT __PAGE_SHIFT
@@ -222,5 +226,6 @@ static __inline__ paddr_t machine_to_phys(maddr_t machine)
#define do_map_zero(start, n) do_map_frames(start, &mfn_zero, n, 0, 0, DOMID_SELF, 0, L1_PROT_RO)
pgentry_t *need_pgt(unsigned long addr);
+int mfn_is_ram(unsigned long mfn);
#endif /* _ARCH_MM_H_ */