diff -BburN doc110beta-linux26-src/tffsarch.c mDOC/tffsarch.c --- doc110beta-linux26-src/tffsarch.c 2007-10-16 15:15:22.000000000 -0400 +++ mDOC/tffsarch.c 2008-04-07 16:03:59.000000000 -0400 @@ -466,7 +466,7 @@ /* Write (if dirty) and purge contents of 'vbuf' from CPU cache(s) */ /* Possible options: - * consistent_sync(vbuf, bytes, DMA_FROM_DEVICE); ARM/SH + * dma_cache_maint(vbuf, bytes, DMA_FROM_DEVICE); ARM/SH * dma_cache_inv((unsigned long)vbuf, (unsigned long)bytes); MIPS/PPC/x86 */ @@ -477,9 +477,9 @@ * range [vbuf..vbuf+bytes] by 32 bytes. It also appears to write some * bogus data into this RAM address range while invalidating it in D-cache. */ - consistent_sync (vbuf, bytes - 1, DMA_FROM_DEVICE); + dma_cache_maint (vbuf, bytes - 1, DMA_FROM_DEVICE); #else - consistent_sync (vbuf, bytes, DMA_FROM_DEVICE); + dma_cache_maint (vbuf, bytes, DMA_FROM_DEVICE); #endif } else /* transfer into intermediate DMA buffer */ @@ -569,10 +569,10 @@ { /* Write (if dirty) contents of 'vbuf' from CPU D-cache to RAM. * Possible options: - * consistent_sync(vbuf, bytes, DMA_TO_DEVICE); ARM/SH + * dma_cache_maint(vbuf, bytes, DMA_TO_DEVICE); ARM/SH * dma_cache_wback((unsigned long)vbuf, (unsigned long)bytes); MIPS/PPC/x86 */ - consistent_sync (vbuf, bytes, DMA_TO_DEVICE); + dma_cache_maint (vbuf, bytes, DMA_TO_DEVICE); if (virt_addr_valid((unsigned long)vbuf)) /* 'vbuf' is in low memory */ { @@ -1085,7 +1085,7 @@ #if 1 /* D-cache only. Possible options: * flush_dcache_range((unsigned long)vbuf, (unsigned long)(vbuf + bytes)); ARM/PPC - * consistent_sync(vbuf, bytes, PCI_DMA_BIDIRECTIONAL); ARM/PPC + * dma_cache_maint(vbuf, bytes, PCI_DMA_BIDIRECTIONAL); ARM/PPC * dma_cache_wback_inv((unsigned long)vbuf, (unsigned long)bytes); MIPS/PPC/SH/x86 */ flush_dcache_range ((unsigned long)vbuf, (unsigned long)(vbuf + bytes)); @@ -1191,7 +1191,7 @@ /* Write (if dirty) contents of 'vbuf' from CPU D-cache to RAM. * Possible options: * clean_dcache_range((unsigned long)vbuf, (unsigned long)(vbuf + bytes)); ARM/PPC - * consistent_sync(vbuf, bytes, PCI_DMA_TODEVICE); ARM/PPC + * dma_cache_maint(vbuf, bytes, PCI_DMA_TODEVICE); ARM/PPC * dma_cache_wback((unsigned long)vbuf, (unsigned long)bytes); MIPS/PPC/SH/x86 */ clean_dcache_range ((unsigned long)vbuf, (unsigned long)(vbuf + bytes)); @@ -1787,7 +1787,7 @@ /* Write (if dirty) and purge contents of 'vbuf' from CPU cache(s) */ /* Possible options: - * consistent_sync(vbuf, bytes, DMA_FROM_DEVICE); ARM/SH + * dma_cache_maint(vbuf, bytes, DMA_FROM_DEVICE); ARM/SH * dma_cache_inv((unsigned long)vbuf, (unsigned long)bytes); MIPS/PPC/x86 */ #ifdef OMAP2420_DCACHE_BUG_WORKAROUND @@ -1796,9 +1796,9 @@ * range [vbuf..vbuf+bytes] by 32 bytes. It also appears to write some * bogus data into this RAM address range while invalidating it in D-cache. */ - consistent_sync (vbuf, bytes - 1, DMA_FROM_DEVICE); + dma_cache_maint (vbuf, bytes - 1, DMA_FROM_DEVICE); #else - consistent_sync (vbuf, bytes, DMA_FROM_DEVICE); + dma_cache_maint (vbuf, bytes, DMA_FROM_DEVICE); #endif } @@ -1926,10 +1926,10 @@ { /* Write (if dirty) contents of 'vbuf' from CPU D-cache to RAM. * Possible options: - * consistent_sync(vbuf, bytes, DMA_TO_DEVICE); ARM/SH + * dma_cache_maint(vbuf, bytes, DMA_TO_DEVICE); ARM/SH * dma_cache_wback((unsigned long)vbuf, (unsigned long)bytes); MIPS/PPC/x86 */ - consistent_sync (vbuf, bytes, DMA_TO_DEVICE); + dma_cache_maint (vbuf, bytes, DMA_TO_DEVICE); if (virt_addr_valid((unsigned long)vbuf)) /* 'vbuf' is in low memory */ { diff -BburN doc110beta-linux26-src/tffsdrv26.c mDOC/tffsdrv26.c --- doc110beta-linux26-src/tffsdrv26.c 2007-10-16 15:15:22.000000000 -0400 +++ mDOC/tffsdrv26.c 2008-04-07 16:00:59.000000000 -0400 @@ -1183,7 +1183,8 @@ int do_write_request ( struct request * r ) { DeviceInfo * pdisk = (DeviceInfo *) r->rq_disk->private_data; - struct bio * bio; + struct bio_vec *bv; + struct req_iterator iter; struct gather_t gather; unsigned long total_sectors = r->nr_sectors; int success = 1; @@ -1201,9 +1202,9 @@ } /* do all bio's of this request */ - rq_for_each_bio (bio, r) + rq_for_each_segment(bv, r, iter) { - if( write_bio(bio, &gather, pdisk) < 0) + if( write_bio(iter.bio, &gather, pdisk) < 0) success = 0; /* I/O error */ } @@ -1246,7 +1247,8 @@ int do_read_request ( struct request * r ) { DeviceInfo * pdisk = (DeviceInfo *) r->rq_disk->private_data; - struct bio * bio; + struct bio_vec *bv; + strict req_iterator iter; struct scatter_t scatter; unsigned long total_sectors = r->nr_sectors; int success = 1; @@ -1272,9 +1274,9 @@ } /* do all bio's of this request */ - rq_for_each_bio (bio, r) + rq_for_each_segment(bv, r, iter) { - if( read_bio(bio, &scatter, pdisk) < 0) + if( read_bio(iter.bio, &scatter, pdisk) < 0) success = 0; /* I/O error */ }