PERFORCE change 135120 for review
Hans Petter Selasky
hselasky at FreeBSD.org
Sat Feb 9 13:18:03 PST 2008
http://perforce.freebsd.org/chv.cgi?CH=135120
Change 135120 by hselasky at hselasky_laptop001 on 2008/02/09 21:17:58
BUS-DMA fix for NetBSD.
Affected files ...
.. //depot/projects/usb/src/sys/dev/usb/usb_subr.c#94 edit
Differences ...
==== //depot/projects/usb/src/sys/dev/usb/usb_subr.c#94 (text+ko) ====
@@ -2725,8 +2725,8 @@
&ptr, BUS_DMA_WAITOK | BUS_DMA_COHERENT)) {
goto done_3;
}
- if (bus_dmamap_create(tag, size, utag->n_seg, USB_PAGE_SIZE,
- 0, BUS_DMA_WAITOK, &map)) {
+ if (bus_dmamap_create(tag, size, utag->n_seg, (align == 1) ?
+ USB_PAGE_SIZE : size, 0, BUS_DMA_WAITOK, &map)) {
goto done_2;
}
if (bus_dmamap_load(tag, map, ptr, size, NULL,
More information about the p4-projects
mailing list