aboutsummaryrefslogtreecommitdiff
path: root/sys/sparc64/include
diff options
context:
space:
mode:
authorMarius Strobl <marius@FreeBSD.org>2009-02-10 21:51:33 +0000
committerMarius Strobl <marius@FreeBSD.org>2009-02-10 21:51:33 +0000
commit9223a606d03b264f15a8a49b0d6660c857bc59b7 (patch)
tree4996ad24f1bfd9f6d3adb86810e907d1834f9d1a /sys/sparc64/include
parentceab1bee37f1f318bd228f4e99fd6370b79ca796 (diff)
downloadsrc-9223a606d03b264f15a8a49b0d6660c857bc59b7.tar.gz
src-9223a606d03b264f15a8a49b0d6660c857bc59b7.zip
Improve r185008 so the streaming cache is only flushed when
a mapping actually met the threshold.
Notes
Notes: svn path=/head/; revision=188456
Diffstat (limited to 'sys/sparc64/include')
-rw-r--r--sys/sparc64/include/bus_private.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/sparc64/include/bus_private.h b/sys/sparc64/include/bus_private.h
index 9e5ab082685e..fb6f8d395cf2 100644
--- a/sys/sparc64/include/bus_private.h
+++ b/sys/sparc64/include/bus_private.h
@@ -66,9 +66,10 @@ struct bus_dmamap {
int dm_flags; /* (p) */
};
-/* Flag values. */
-#define DMF_LOADED 1 /* Map is loaded */
-#define DMF_COHERENT 2 /* Coherent mapping requested */
+/* Flag values */
+#define DMF_LOADED (1 << 0) /* Map is loaded. */
+#define DMF_COHERENT (1 << 1) /* Coherent mapping requested. */
+#define DMF_STREAMED (1 << 2) /* Streaming cache used. */
int sparc64_dma_alloc_map(bus_dma_tag_t dmat, bus_dmamap_t *mapp);
void sparc64_dma_free_map(bus_dma_tag_t dmat, bus_dmamap_t map);