diff options
author | Per Fogelstrom <pefo@cvs.openbsd.org> | 2002-01-23 13:34:39 +0000 |
---|---|---|
committer | Per Fogelstrom <pefo@cvs.openbsd.org> | 2002-01-23 13:34:39 +0000 |
commit | d692870fbe15419944d8d08e81d05c4c90b5559f (patch) | |
tree | 428d24635914c2a66f8327fa29fd739c2bcc6dd9 /sys/dev | |
parent | 67a6b62998d9a9a5ea233abf0f26fb4d0964a646 (diff) |
Use the size of the cmd dmamap when syncing the scsi command, not data size.
OK krw@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ic/siop.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/siop.c b/sys/dev/ic/siop.c index e7c167075fb..7da8bd3e999 100644 --- a/sys/dev/ic/siop.c +++ b/sys/dev/ic/siop.c @@ -1,4 +1,4 @@ -/* $OpenBSD: siop.c,v 1.17 2001/11/05 17:25:58 art Exp $ */ +/* $OpenBSD: siop.c,v 1.18 2002/01/23 13:34:38 pefo Exp $ */ /* $NetBSD: siop.c,v 1.39 2001/02/11 18:04:49 bouyer Exp $ */ /* @@ -1090,7 +1090,7 @@ siop_scsicmd_end(siop_cmd) 0, siop_cmd->dmamap_data->dm_mapsize, BUS_DMASYNC_PREREAD); bus_dmamap_sync(sc->sc_dmat, siop_cmd->dmamap_cmd, - 0, siop_cmd->dmamap_data->dm_mapsize, + 0, siop_cmd->dmamap_cmd->dm_mapsize, BUS_DMASYNC_PREWRITE); siop_setuptables(siop_cmd); @@ -1354,7 +1354,7 @@ siop_scsicmd(xs) BUS_DMASYNC_PREREAD : BUS_DMASYNC_PREWRITE); } bus_dmamap_sync(sc->sc_dmat, siop_cmd->dmamap_cmd, - 0, siop_cmd->dmamap_data->dm_mapsize, + 0, siop_cmd->dmamap_cmd->dm_mapsize, BUS_DMASYNC_PREWRITE); siop_setuptables(siop_cmd); |