diff options
author | Marius Strobl <marius@FreeBSD.org> | 2009-02-10 21:51:33 +0000 |
---|---|---|
committer | Marius Strobl <marius@FreeBSD.org> | 2009-02-10 21:51:33 +0000 |
commit | 9223a606d03b264f15a8a49b0d6660c857bc59b7 (patch) | |
tree | 4996ad24f1bfd9f6d3adb86810e907d1834f9d1a /sys/sparc64/include | |
parent | ceab1bee37f1f318bd228f4e99fd6370b79ca796 (diff) | |
download | src-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.h | 7 |
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); |