summaryrefslogtreecommitdiff
path: root/sys/arch/i386/include/pmap.h
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2009-02-05 01:13:22 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2009-02-05 01:13:22 +0000
commit82fda29c886a059ab961cba463ebf312068065e5 (patch)
tree6a902aa43f70f9165ac27c861964668af599c3a1 /sys/arch/i386/include/pmap.h
parent74f276ec4910fc7e6bcd3162c3804bd97011549a (diff)
add MD PMAP_NOCACHE flag to i386 and use it to implement the
BUS_DMA_NOCACHE flag with guarantees that the dma memory will be mapped uncached. Some broken/odd hardware needs this. discussion with miod, toby, art and kettenis. ok miod.
Diffstat (limited to 'sys/arch/i386/include/pmap.h')
-rw-r--r--sys/arch/i386/include/pmap.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/i386/include/pmap.h b/sys/arch/i386/include/pmap.h
index fa446e6c2a0..89af1a42440 100644
--- a/sys/arch/i386/include/pmap.h
+++ b/sys/arch/i386/include/pmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.h,v 1.50 2008/12/18 14:17:28 kurt Exp $ */
+/* $OpenBSD: pmap.h,v 1.51 2009/02/05 01:13:21 oga Exp $ */
/* $NetBSD: pmap.h,v 1.44 2000/04/24 17:18:18 thorpej Exp $ */
/*
@@ -292,6 +292,10 @@ struct pv_entry { /* locked by its list's pvh_lock */
vaddr_t pv_va; /* the virtual address */
struct vm_page *pv_ptp; /* the vm_page of the PTP */
};
+/*
+ * MD flags to pmap_enter:
+ */
+#define PMAP_NOCACHE PMAP_MD0
/*
* We keep mod/ref flags in struct vm_page->pg_flags.