1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-29 12:03:03 +00:00

Put the BUS_DMASYNC_PREWRITE in the rigth position.

This commit is contained in:
Søren Schmidt 2005-04-08 12:16:51 +00:00
parent a049d7b097
commit 3c8b1aa784
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=144800

View File

@ -241,12 +241,12 @@ ata_dmaload(struct ata_device *atadev, caddr_t data, int32_t count, int dir)
cba.dmatab = ch->dma->sg;
bus_dmamap_sync(ch->dma->sg_tag, ch->dma->sg_map, BUS_DMASYNC_PREWRITE);
if (bus_dmamap_load(ch->dma->data_tag, ch->dma->data_map, data, count,
ch->dma->setprd, &cba, 0) || cba.error)
return -1;
bus_dmamap_sync(ch->dma->sg_tag, ch->dma->sg_map, BUS_DMASYNC_PREWRITE);
bus_dmamap_sync(ch->dma->data_tag, ch->dma->data_map,
dir ? BUS_DMASYNC_PREREAD : BUS_DMASYNC_PREWRITE);