git: kernel - Adjust BUS_DMASYNC_* API
Matthew Dillon
dillon at crater.dragonflybsd.org
Sat Aug 16 13:38:28 PDT 2014
commit 33025e3191fd0f489d9450d14e00e833fc66ee27
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Sat Aug 16 13:32:22 2014 -0700
kernel - Adjust BUS_DMASYNC_* API
* Change the BUS_DMASYNC_* enumeration to a bitmask to allow multiple
flags to be specified in one call.
* Now more compatible with FreeBSD and one less thing to worry about when
porting a driver.
* While we are at it, allow add_bounce_page() to modify the size. This has
no effect on the current codebase since bounce pages are page-aligned (so the
page-residual will never be less than the passed address), but is more
correct.
* Fixes bounce-buffer issue with if_ath.
Summary of changes:
sys/platform/pc32/i386/busdma_machdep.c | 14 ++-------
sys/platform/pc64/x86_64/busdma_machdep.c | 49 +++++++++++++++++++------------
sys/sys/bus_dma.h | 12 ++++----
3 files changed, 40 insertions(+), 35 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/33025e3191fd0f489d9450d14e00e833fc66ee27
--
DragonFly BSD source repository
More information about the Commits
mailing list