kernel - Adjust BUS_DMASYNC_* API
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 16 Aug 2014 20:32:22 +0000 (13:32 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 16 Aug 2014 20:32:22 +0000 (13:32 -0700)
commit33025e3191fd0f489d9450d14e00e833fc66ee27
treeacf0dda742e1be971373fe4133f14f2030f946bb
parent2297f2607a0cde5f138aa77a3dd637d52bbb0998
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.
sys/platform/pc32/i386/busdma_machdep.c
sys/platform/pc64/x86_64/busdma_machdep.c
sys/sys/bus_dma.h