summaryrefslogtreecommitdiffstats
path: root/sys/sys/bus_dma.h
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2009-02-08 22:54:58 +0000
committerimp <imp@FreeBSD.org>2009-02-08 22:54:58 +0000
commit719ba982f29fc81ee8072f46770b8f92f9cde327 (patch)
treecc62825b111ed71a6a25b4cf9e56057dd93d0ae4 /sys/sys/bus_dma.h
parent9513bac196b9078727e9e71fe300ad749da75966 (diff)
downloadFreeBSD-src-719ba982f29fc81ee8072f46770b8f92f9cde327.zip
FreeBSD-src-719ba982f29fc81ee8072f46770b8f92f9cde327.tar.gz
When bouncing pages, allow a new option to preserve the intra-page
offset. This is needed for the ehci hardware buffer rings that assume this behavior. This is an interim solution, and a more general one is being worked on. This solution doesn't break anything that doesn't ask for it directly. The mbuf and uio variants with this flag likely don't work and haven't been tested. Universe builds with these changes. I don't have a huge-memory machine to test these changes with, but will be happy to work with folks that do and hps if this changes turns out not to be sufficient. Submitted by: alfred@ from Hans Peter Selasky's original
Diffstat (limited to 'sys/sys/bus_dma.h')
-rw-r--r--sys/sys/bus_dma.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/sys/bus_dma.h b/sys/sys/bus_dma.h
index f89d522..0dad326 100644
--- a/sys/sys/bus_dma.h
+++ b/sys/sys/bus_dma.h
@@ -102,6 +102,13 @@
#define BUS_DMA_NOWRITE 0x100
#define BUS_DMA_NOCACHE 0x200
+/*
+ * The following flag is a DMA tag hint that the page offset of the
+ * loaded kernel virtual address must be preserved in the first
+ * physical segment address, when the KVA is loaded into DMA.
+ */
+#define BUS_DMA_KEEP_PG_OFFSET 0x400
+
/* Forwards needed by prototypes below. */
struct mbuf;
struct uio;
OpenPOWER on IntegriCloud