Dont zero out 64BIT flag on DMA ops.

This commit is contained in:
Søren Schmidt 2007-04-08 15:31:39 +00:00
parent 27f0ce0f2b
commit cd945eed47

View File

@ -259,7 +259,8 @@ ata_dmaload(device_t dev, caddr_t data, int32_t count, int dir,
dir ? BUS_DMASYNC_PREREAD : BUS_DMASYNC_PREWRITE);
ch->dma->cur_iosize = count;
ch->dma->flags = dir ? (ATA_DMA_LOADED | ATA_DMA_READ) : ATA_DMA_LOADED;
ch->dma->flags &= ATA_DMA_READ;
ch->dma->flags |= dir ? (ATA_DMA_LOADED | ATA_DMA_READ) : ATA_DMA_LOADED;
return 0;
}
@ -273,7 +274,7 @@ ata_dmaunload(device_t dev)
BUS_DMASYNC_POSTWRITE);
bus_dmamap_sync(ch->dma->data_tag, ch->dma->data_map,
(ch->dma->flags & ATA_DMA_READ) != 0 ?
(ch->dma->flags & ATA_DMA_READ) ?
BUS_DMASYNC_POSTREAD : BUS_DMASYNC_POSTWRITE);
bus_dmamap_unload(ch->dma->data_tag, ch->dma->data_map);