- When creating dma map, allocate at least one bounce page even if the
commit173fe2a6bc92274b73d7e881d7c755899a1140ac
authorsephe <sephe>
Sat, 14 Jul 2007 07:29:30 +0000 (14 07:29 +0000)
committersephe <sephe>
Sat, 14 Jul 2007 07:29:30 +0000 (14 07:29 +0000)
treee18c9ec6ca3ca78d780a57851f9341618c8b684d
parentad605df3aa1f3b5cd461d1fa4ca04bbeff6e31ff
- 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