--- dev/usb/usb_busdma.c (revision 198568) +++ dev/usb/usb_busdma.c (local) @@ -118,6 +118,7 @@ res->buffer = USB_ADD_BYTES(page->buffer, offset); } + res->buffer = (void*)((uint32_t)res->physaddr | 0xa0000000); return; } #endif @@ -685,8 +686,8 @@ * same time, but in the future we should try to isolate the * different cases to optimise the code. --HPS */ - bus_dmamap_sync(pc->tag, pc->map, BUS_DMASYNC_POSTREAD); - bus_dmamap_sync(pc->tag, pc->map, BUS_DMASYNC_PREREAD); + // bus_dmamap_sync(pc->tag, pc->map, BUS_DMASYNC_POSTREAD); + // bus_dmamap_sync(pc->tag, pc->map, BUS_DMASYNC_PREREAD); } /*------------------------------------------------------------------------* @@ -699,7 +700,7 @@ /* nothing has been loaded into this page cache! */ return; } - bus_dmamap_sync(pc->tag, pc->map, BUS_DMASYNC_PREWRITE); + // bus_dmamap_sync(pc->tag, pc->map, BUS_DMASYNC_PREWRITE); } /*------------------------------------------------------------------------*