diff options
author | sos <sos@FreeBSD.org> | 2003-10-07 13:48:55 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 2003-10-07 13:48:55 +0000 |
commit | 93a92c1266311444a1058482a428106431367842 (patch) | |
tree | 9879744d94a30f14fdb4a52671ed3b82f5bc9ab4 /sys/dev/ata | |
parent | 5efe096026ae312d9c43e0f7a233190c09af371c (diff) | |
download | FreeBSD-src-93a92c1266311444a1058482a428106431367842.zip FreeBSD-src-93a92c1266311444a1058482a428106431367842.tar.gz |
Give more correct params to busdma_*
Diffstat (limited to 'sys/dev/ata')
-rw-r--r-- | sys/dev/ata/ata-dma.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/sys/dev/ata/ata-dma.c b/sys/dev/ata/ata-dma.c index a6a3be4..d625ab1 100644 --- a/sys/dev/ata/ata-dma.c +++ b/sys/dev/ata/ata-dma.c @@ -93,19 +93,20 @@ ata_dmaalloc(struct ata_channel *ch) { struct ata_dc_cb_args ccba; - if (bus_dma_tag_create(NULL, 1, 0, BUS_SPACE_MAXADDR_32BIT, - BUS_SPACE_MAXADDR, NULL, NULL, MAXCTLDMASZ, - ATA_DMA_ENTRIES, BUS_SPACE_MAXSIZE_32BIT, 0, - NULL, NULL, &ch->dma->dmatag)) + if (bus_dma_tag_create(NULL, 1, 0, + BUS_SPACE_MAXADDR_32BIT, BUS_SPACE_MAXADDR, + NULL, NULL, MAXCTLDMASZ, + ATA_DMA_ENTRIES, BUS_SPACE_MAXSIZE_32BIT, + BUS_DMA_ALLOCNOW, NULL, NULL, &ch->dma->dmatag)) goto error; - if (bus_dma_tag_create(ch->dma->dmatag, 1, PAGE_SIZE, + 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)) + NULL, NULL, MAXTABSZ, 1, MAXTABSZ, + BUS_DMA_ALLOCNOW, NULL, NULL, &ch->dma->cdmatag)) goto error; - if (bus_dma_tag_create(ch->dma->dmatag, ch->dma->alignment, 0, + if (bus_dma_tag_create(ch->dma->dmatag, ch->dma->alignment, 64*1024, BUS_SPACE_MAXADDR_32BIT, BUS_SPACE_MAXADDR, NULL, NULL, MAXPHYS, ATA_DMA_ENTRIES, MAXSEGSZ, BUS_DMA_ALLOCNOW, NULL, NULL, &ch->dma->ddmatag)) |