diff options
author | sos <sos@FreeBSD.org> | 2004-08-20 19:05:22 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 2004-08-20 19:05:22 +0000 |
commit | 61ba3ee1cb4412c61a2c34f5ca0bdb4635a05dfe (patch) | |
tree | 95254afabc28b1d8c7803b2e2af35a84eb5aecf1 /sys | |
parent | fc631187fdecda27bd65a28c62a324e92e29d9f1 (diff) | |
download | FreeBSD-src-61ba3ee1cb4412c61a2c34f5ca0bdb4635a05dfe.zip FreeBSD-src-61ba3ee1cb4412c61a2c34f5ca0bdb4635a05dfe.tar.gz |
Correct the args to busdma, mostly cosmetic.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ata/ata-dma.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/dev/ata/ata-dma.c b/sys/dev/ata/ata-dma.c index cd719ee..644755d 100644 --- a/sys/dev/ata/ata-dma.c +++ b/sys/dev/ata/ata-dma.c @@ -59,7 +59,6 @@ static MALLOC_DEFINE(M_ATADMA, "ATA DMA", "ATA driver DMA"); /* misc defines */ #define MAXTABSZ PAGE_SIZE #define MAXWSPCSZ PAGE_SIZE -#define MAXCTLDMASZ (2 * (MAXTABSZ + MAXPHYS)) struct ata_dc_cb_args { bus_addr_t maddr; @@ -95,10 +94,10 @@ ata_dmaalloc(struct ata_channel *ch) { struct ata_dc_cb_args ccba; - if (bus_dma_tag_create(NULL, 1, 0, + if (bus_dma_tag_create(NULL, ch->dma->alignment, 0, BUS_SPACE_MAXADDR_32BIT, BUS_SPACE_MAXADDR, - NULL, NULL, MAXCTLDMASZ, - ATA_DMA_ENTRIES, BUS_SPACE_MAXSIZE_32BIT, + NULL, NULL, 16*1024*1024, + ATA_DMA_ENTRIES, ch->dma->max_iosize, BUS_DMA_ALLOCNOW, NULL, NULL, &ch->dma->dmatag)) goto error; @@ -110,8 +109,8 @@ ata_dmaalloc(struct ata_channel *ch) if (bus_dma_tag_create(ch->dma->dmatag,ch->dma->alignment,ch->dma->boundary, BUS_SPACE_MAXADDR_32BIT, BUS_SPACE_MAXADDR, - NULL, NULL, ch->dma->max_iosize, - ATA_DMA_ENTRIES, ch->dma->boundary, + NULL, NULL, 16*1024*1024, + ATA_DMA_ENTRIES, ch->dma->max_iosize, BUS_DMA_ALLOCNOW, NULL, NULL, &ch->dma->ddmatag)) goto error; |