mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-01 12:19:28 +00:00
Put the BUS_DMASYNC_PREWRITE in the rigth position.
This commit is contained in:
parent
a049d7b097
commit
3c8b1aa784
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=144800
@ -241,12 +241,12 @@ ata_dmaload(struct ata_device *atadev, caddr_t data, int32_t count, int dir)
|
|||||||
|
|
||||||
cba.dmatab = ch->dma->sg;
|
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,
|
if (bus_dmamap_load(ch->dma->data_tag, ch->dma->data_map, data, count,
|
||||||
ch->dma->setprd, &cba, 0) || cba.error)
|
ch->dma->setprd, &cba, 0) || cba.error)
|
||||||
return -1;
|
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,
|
bus_dmamap_sync(ch->dma->data_tag, ch->dma->data_map,
|
||||||
dir ? BUS_DMASYNC_PREREAD : BUS_DMASYNC_PREWRITE);
|
dir ? BUS_DMASYNC_PREREAD : BUS_DMASYNC_PREWRITE);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user