summaryrefslogtreecommitdiffstats
path: root/sys/dev/ata/ata-dma.c
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2004-11-17 11:27:30 +0000
committerscottl <scottl@FreeBSD.org>2004-11-17 11:27:30 +0000
commitdb12de4f40fceade11c1a9f90c670b666db6082d (patch)
treea33badf320b5dab572fe4296c952540aaa4068fa /sys/dev/ata/ata-dma.c
parent65c65c74d43a3f0631abd782bc74e25722f5571c (diff)
downloadFreeBSD-src-db12de4f40fceade11c1a9f90c670b666db6082d.zip
FreeBSD-src-db12de4f40fceade11c1a9f90c670b666db6082d.tar.gz
Don't set the BUS_DMA_ALLOCNOW flag for the parent tag or the tags that are
used for static memory allocations. Discussed with: sos
Diffstat (limited to 'sys/dev/ata/ata-dma.c')
-rw-r--r--sys/dev/ata/ata-dma.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ata/ata-dma.c b/sys/dev/ata/ata-dma.c
index 051d8c2..974fb7d 100644
--- a/sys/dev/ata/ata-dma.c
+++ b/sys/dev/ata/ata-dma.c
@@ -98,13 +98,13 @@ ata_dmaalloc(struct ata_channel *ch)
BUS_SPACE_MAXADDR_32BIT, BUS_SPACE_MAXADDR,
NULL, NULL, 256 * DEV_BSIZE,
ATA_DMA_ENTRIES, ch->dma->max_iosize,
- BUS_DMA_ALLOCNOW, NULL, NULL, &ch->dma->dmatag))
+ 0, NULL, NULL, &ch->dma->dmatag))
goto error;
if (bus_dma_tag_create(ch->dma->dmatag, PAGE_SIZE, PAGE_SIZE,
BUS_SPACE_MAXADDR_32BIT, BUS_SPACE_MAXADDR,
NULL, NULL, MAXTABSZ, 1, MAXTABSZ,
- BUS_DMA_ALLOCNOW, NULL, NULL, &ch->dma->cdmatag))
+ 0, NULL, NULL, &ch->dma->cdmatag))
goto error;
if (bus_dma_tag_create(ch->dma->dmatag,ch->dma->alignment,ch->dma->boundary,
@@ -131,7 +131,7 @@ ata_dmaalloc(struct ata_channel *ch)
if (bus_dma_tag_create(ch->dma->dmatag, PAGE_SIZE, PAGE_SIZE,
BUS_SPACE_MAXADDR_32BIT, BUS_SPACE_MAXADDR,
NULL, NULL, MAXWSPCSZ, 1, MAXWSPCSZ,
- BUS_DMA_ALLOCNOW, NULL, NULL, &ch->dma->wdmatag))
+ 0, NULL, NULL, &ch->dma->wdmatag))
goto error;
if (bus_dmamem_alloc(ch->dma->wdmatag, (void **)&ch->dma->workspace, 0,
OpenPOWER on IntegriCloud