summaryrefslogtreecommitdiffstats
path: root/sys/sparc64/include
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2009-02-10 21:51:33 +0000
committermarius <marius@FreeBSD.org>2009-02-10 21:51:33 +0000
commit840503d8f650fa1fda4580c8850b8293c9339bed (patch)
tree4996ad24f1bfd9f6d3adb86810e907d1834f9d1a /sys/sparc64/include
parent9618354cad5d7984141563788baae57610de7d27 (diff)
downloadFreeBSD-src-840503d8f650fa1fda4580c8850b8293c9339bed.zip
FreeBSD-src-840503d8f650fa1fda4580c8850b8293c9339bed.tar.gz
Improve r185008 so the streaming cache is only flushed when
a mapping actually met the threshold.
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 9e5ab08..fb6f8d3 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);
OpenPOWER on IntegriCloud