git: kernel - Adjust BUS_DMASYNC_* API

Matthew Dillon dillon at
Sat Aug 16 13:38:28 PDT 2014

commit 33025e3191fd0f489d9450d14e00e833fc66ee27
Author: Matthew Dillon <dillon at>
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
    * 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(-)

DragonFly BSD source repository

More information about the Commits mailing list