[svn-commits] fjoe: freebsd/trunk r8715 - /freebsd/trunk/drivers/dahdi/wcte11xp.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Mon May 31 22:24:00 CDT 2010
Author: fjoe
Date: Mon May 31 22:23:59 2010
New Revision: 8715
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=8715
Log:
Add missing bus_dmamap_sync() calls.
Modified:
freebsd/trunk/drivers/dahdi/wcte11xp.c
Modified: freebsd/trunk/drivers/dahdi/wcte11xp.c
URL: http://svnview.digium.com/svn/dahdi/freebsd/trunk/drivers/dahdi/wcte11xp.c?view=diff&rev=8715&r1=8714&r2=8715
==============================================================================
--- freebsd/trunk/drivers/dahdi/wcte11xp.c (original)
+++ freebsd/trunk/drivers/dahdi/wcte11xp.c Mon May 31 22:23:59 2010
@@ -1160,6 +1160,9 @@
wc->tempo[pos - 32 * DAHDI_CHUNKSIZE] = wc->chans[x]->writechunk[y];
}
}
+#if defined(__FreeBSD__)
+ bus_dmamap_sync(wc->write_dma_tag, wc->write_dma_map, BUS_DMASYNC_PREWRITE);
+#endif
}
static void t1xxp_receiveprep(struct t1 *wc, int ints)
@@ -1169,6 +1172,9 @@
int x;
int y;
unsigned int oldcan;
+#if defined(__FreeBSD__)
+ bus_dmamap_sync(wc->read_dma_tag, wc->read_dma_map, BUS_DMASYNC_POSTREAD);
+#endif
if (ints & 0x04) {
/* Just received first buffer */
rxbuf = wc->readchunk;
More information about the svn-commits
mailing list