diff options
| author | christos <christos@NetBSD.org> | 2013-04-03 14:40:41 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2013-04-03 14:40:41 +0000 |
| commit | f5c7236419e46edaf0f287c43634a1208ccadd11 (patch) | |
| tree | e9e1a6e6b3d33a7c88c01ed2fbafb32cf7c8ae4d /sys/dev | |
| parent | 961eaa548a9d412e13f276b16c4476a7f55d1547 (diff) | |
undo previous commit of unrelated debugging.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/ic/aic79xx_inline.h | 4 | ||||
| -rw-r--r-- | sys/dev/ic/aic79xx_osm.h | 30 |
2 files changed, 7 insertions, 27 deletions
diff --git a/sys/dev/ic/aic79xx_inline.h b/sys/dev/ic/aic79xx_inline.h index 7ea573a15c4..ec999d129d2 100644 --- a/sys/dev/ic/aic79xx_inline.h +++ b/sys/dev/ic/aic79xx_inline.h @@ -1,4 +1,4 @@ -/* $NetBSD: aic79xx_inline.h,v 1.20 2013/04/03 14:20:02 christos Exp $ */ +/* $NetBSD: aic79xx_inline.h,v 1.21 2013/04/03 14:40:41 christos Exp $ */ /* * Inline routines shareable across OS platforms. @@ -854,7 +854,7 @@ ahd_check_cmdcmpltqueues(struct ahd_softc *ahd) u_int retval; retval = 0; - ahd_dmamap_sync1(ahd, ahd->parent_dmat /*shared_data_dmat*/, ahd->shared_data_map.dmamap, + ahd_dmamap_sync(ahd, ahd->parent_dmat /*shared_data_dmat*/, ahd->shared_data_map.dmamap, /*offset*/ahd->qoutfifonext, /*len*/2, BUS_DMASYNC_POSTREAD); if ((ahd->qoutfifo[ahd->qoutfifonext] diff --git a/sys/dev/ic/aic79xx_osm.h b/sys/dev/ic/aic79xx_osm.h index 2bb89eb534b..e03fc2830c7 100644 --- a/sys/dev/ic/aic79xx_osm.h +++ b/sys/dev/ic/aic79xx_osm.h @@ -1,4 +1,4 @@ -/* $NetBSD: aic79xx_osm.h,v 1.22 2013/04/03 14:20:02 christos Exp $ */ +/* $NetBSD: aic79xx_osm.h,v 1.23 2013/04/03 14:40:41 christos Exp $ */ /* * NetBSD platform specific driver option settings, data structures, @@ -32,9 +32,9 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $NetBSD: aic79xx_osm.h,v 1.22 2013/04/03 14:20:02 christos Exp $ + * $NetBSD: aic79xx_osm.h,v 1.23 2013/04/03 14:40:41 christos Exp $ * - * //depot/aic7xxx/freebsd/dev/aic7xxx/aic79xx_osm.h#19 $$NetBSD: aic79xx_osm.h,v 1.22 2013/04/03 14:20:02 christos Exp $ + * //depot/aic7xxx/freebsd/dev/aic7xxx/aic79xx_osm.h#19 $$NetBSD: aic79xx_osm.h,v 1.23 2013/04/03 14:40:41 christos Exp $ * * $FreeBSD: src/sys/dev/aic7xxx/aic79xx_osm.h,v 1.9 2003/05/26 21:43:29 gibbs Exp $ */ @@ -129,28 +129,8 @@ typedef pcireg_t ahd_dev_softc_t; bus_dmamap_unload(tag, map) /* XXX Need to update Bus DMA for partial map syncs */ -#define ahd_dmamap_sync(ahd, dma_tag, dmamap, offset, len, op) \ - do { \ - if (((op) & (BUS_DMASYNC_PREWRITE|BUS_DMASYNC_POSTREAD)) != 0)\ - if ((offset) >= (dmamap)->dm_mapsize) { \ - printf("%s, %d: %s: %x >= %x[%x]\n", __FILE__, \ - __LINE__, __func__, (int)(offset), \ - (int)(dmamap)->dm_mapsize, (int)(len)); \ - return; \ - } \ - bus_dmamap_sync(dma_tag, dmamap, offset, len, op); \ - } while (/*CONSTCOND*/0) -#define ahd_dmamap_sync1(ahd, dma_tag, dmamap, offset, len, op) \ - do { \ - if (((op) & (BUS_DMASYNC_PREWRITE|BUS_DMASYNC_POSTREAD)) != 0)\ - if ((offset) >= (dmamap)->dm_mapsize) { \ - printf("%s, %d: %s: %x >= %x[%x]\n", __FILE__, \ - __LINE__, __func__, (int)(offset), \ - (int)(dmamap)->dm_mapsize, (int)(len)); \ - return 0; \ - } \ - bus_dmamap_sync(dma_tag, dmamap, offset, len, op); \ - } while (/*CONSTCOND*/0) +#define ahd_dmamap_sync(ahd, dma_tag, dmamap, offset, len, op) \ + bus_dmamap_sync(dma_tag, dmamap, offset, len, op) /************************ Tunable Driver Parameters **************************/ /* |
