1c1
< /* $FreeBSD: head/sys/dev/usb2/core/usb2_busdma.c 184824 2008-11-10 20:54:31Z thompsa $ */
---
> /* $FreeBSD: head/sys/dev/usb2/core/usb2_busdma.c 185087 2008-11-19 08:56:35Z alfred $ */
604a605,610
> * We have to unload the previous loaded DMA
> * pages before trying to load a new one!
> */
> bus_dmamap_unload(pc->tag, pc->map);
>
> /*
619a626,631
> * We have to unload the previous loaded DMA
> * pages before trying to load a new one!
> */
> bus_dmamap_unload(pc->tag, pc->map);
>
> /*
646a659,662
> if (pc->page_offset_end == pc->page_offset_buf) {
> /* nothing has been loaded into this page cache! */
> return;
> }
657a674,677
> if (pc->page_offset_end == pc->page_offset_buf) {
> /* nothing has been loaded into this page cache! */
> return;
> }
960a981,986
> /*
> * We have to unload the previous loaded DMA
> * pages before trying to load a new one!
> */
> bus_dmamap_unload(pc->tag, pc->map);
>
997a1024,1027
> if (len == 0) {
> /* nothing has been loaded into this page cache */
> return;
> }
1012a1043,1046
> if (len == 0) {
> /* nothing has been loaded into this page cache */
> return;
> }
1361,1366c1395,1398
< if (pc->page_offset_buf != pc->page_offset_end) {
< if (pc->isread) {
< usb2_pc_cpu_invalidate(pc);
< } else {
< usb2_pc_cpu_flush(pc);
< }
---
> if (pc->isread) {
> usb2_pc_cpu_invalidate(pc);
> } else {
> usb2_pc_cpu_flush(pc);
1397,1401c1429,1430
<
< if (pc->page_offset_buf != pc->page_offset_end) {
< if (pc->isread) {
< usb2_pc_cpu_invalidate(pc);
< }
---
> if (pc->isread) {
> usb2_pc_cpu_invalidate(pc);
< /* $FreeBSD: head/sys/dev/usb2/core/usb2_busdma.c 184824 2008-11-10 20:54:31Z thompsa $ */
---
> /* $FreeBSD: head/sys/dev/usb2/core/usb2_busdma.c 185087 2008-11-19 08:56:35Z alfred $ */
604a605,610
> * We have to unload the previous loaded DMA
> * pages before trying to load a new one!
> */
> bus_dmamap_unload(pc->tag, pc->map);
>
> /*
619a626,631
> * We have to unload the previous loaded DMA
> * pages before trying to load a new one!
> */
> bus_dmamap_unload(pc->tag, pc->map);
>
> /*
646a659,662
> if (pc->page_offset_end == pc->page_offset_buf) {
> /* nothing has been loaded into this page cache! */
> return;
> }
657a674,677
> if (pc->page_offset_end == pc->page_offset_buf) {
> /* nothing has been loaded into this page cache! */
> return;
> }
960a981,986
> /*
> * We have to unload the previous loaded DMA
> * pages before trying to load a new one!
> */
> bus_dmamap_unload(pc->tag, pc->map);
>
997a1024,1027
> if (len == 0) {
> /* nothing has been loaded into this page cache */
> return;
> }
1012a1043,1046
> if (len == 0) {
> /* nothing has been loaded into this page cache */
> return;
> }
1361,1366c1395,1398
< if (pc->page_offset_buf != pc->page_offset_end) {
< if (pc->isread) {
< usb2_pc_cpu_invalidate(pc);
< } else {
< usb2_pc_cpu_flush(pc);
< }
---
> if (pc->isread) {
> usb2_pc_cpu_invalidate(pc);
> } else {
> usb2_pc_cpu_flush(pc);
1397,1401c1429,1430
<
< if (pc->page_offset_buf != pc->page_offset_end) {
< if (pc->isread) {
< usb2_pc_cpu_invalidate(pc);
< }
---
> if (pc->isread) {
> usb2_pc_cpu_invalidate(pc);