- When creating dma map, allocate at least one bounce page even if the
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sat, 14 Jul 2007 07:29:30 +0000 (07:29 +0000)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sat, 14 Jul 2007 07:29:30 +0000 (07:29 +0000)
commit4343fdc9768b9bce984f9beb366a15d7ceb7faf0
treeaeb2e4d072afa3bbc9125788a89c7a1a52af8e1a
parentbd13f864ba4a10a9bde3a6187bf72a25f6f4f642
- When creating dma map, allocate at least one bounce page even if the
  max size of the dma tag is less than one page.
- alloc_bounce_pages() returns number of bounce pages that have been
  allocated, not error value.
- Increase MAX_BPAGES to 1024 to cooperate with modern devices.

Tested-by: Jörg Anslik <joerg@anslik.de>
Approved-by: dillon@
sys/platform/pc32/i386/busdma_machdep.c