diff options
author | mdodd <mdodd@FreeBSD.org> | 2003-03-29 09:46:10 +0000 |
---|---|---|
committer | mdodd <mdodd@FreeBSD.org> | 2003-03-29 09:46:10 +0000 |
commit | 04e6064fe970390a9363780e9c15d5fba762ca44 (patch) | |
tree | f31998e10af8e27e734ada82aa7170e33e1c2719 /sys/dev/ahb | |
parent | 98b3db7ecaedf32ca9c418f3d2e1b18d911b8864 (diff) | |
download | FreeBSD-src-04e6064fe970390a9363780e9c15d5fba762ca44.zip FreeBSD-src-04e6064fe970390a9363780e9c15d5fba762ca44.tar.gz |
Clean up argument comments for bus_dma_tag_create() calls.
Diffstat (limited to 'sys/dev/ahb')
-rw-r--r-- | sys/dev/ahb/ahb.c | 43 |
1 files changed, 26 insertions, 17 deletions
diff --git a/sys/dev/ahb/ahb.c b/sys/dev/ahb/ahb.c index ec5d138..e6d715b 100644 --- a/sys/dev/ahb/ahb.c +++ b/sys/dev/ahb/ahb.c @@ -292,28 +292,37 @@ ahbattach(device_t dev) */ /* DMA tag for mapping buffers into device visible space. */ /* XXX Should be a child of the EISA bus dma tag */ - if (bus_dma_tag_create(/*parent*/NULL, /*alignment*/1, /*boundary*/0, - /*lowaddr*/BUS_SPACE_MAXADDR_32BIT, - /*highaddr*/BUS_SPACE_MAXADDR, - /*filter*/NULL, /*filterarg*/NULL, - /*maxsize*/MAXBSIZE, /*nsegments*/AHB_NSEG, - /*maxsegsz*/BUS_SPACE_MAXSIZE_32BIT, - /*flags*/BUS_DMA_ALLOCNOW, - &ahb->buffer_dmat) != 0) + if (bus_dma_tag_create( /* parent */ NULL, + /* alignment */ 1, + /* boundary */ 0, + /* lowaddr */ BUS_SPACE_MAXADDR_32BIT, + /* highaddr */ BUS_SPACE_MAXADDR, + /* filter */ NULL, + /* filterarg */ NULL, + /* maxsize */ MAXBSIZE, + /* nsegments */ AHB_NSEG, + /* maxsegsz */ BUS_SPACE_MAXSIZE_32BIT, + /* flags */ BUS_DMA_ALLOCNOW, + &ahb->buffer_dmat) != 0) goto error_exit; ahb->init_level++; /* DMA tag for our ccb structures and ha inquiry data */ - if (bus_dma_tag_create(/*parent*/NULL, /*alignment*/1, /*boundary*/0, - /*lowaddr*/BUS_SPACE_MAXADDR_32BIT, - /*highaddr*/BUS_SPACE_MAXADDR, - /*filter*/NULL, /*filterarg*/NULL, - (AHB_NECB * sizeof(struct ecb)) - + sizeof(*ahb->ha_inq_data), - /*nsegments*/1, - /*maxsegsz*/BUS_SPACE_MAXSIZE_32BIT, - /*flags*/0, &ahb->ecb_dmat) != 0) + if (bus_dma_tag_create( /* parent */ NULL, + /* alignment */ 1, + /* boundary */ 0, + /* lowaddr */ BUS_SPACE_MAXADDR_32BIT, + /* highaddr */ BUS_SPACE_MAXADDR, + /* filter */ NULL, + /* filterarg */ NULL, + /* maxsize */ (AHB_NECB * + sizeof(struct ecb)) + + sizeof(*ahb->ha_inq_data), + /* nsegments */ 1, + /* maxsegsz */ BUS_SPACE_MAXSIZE_32BIT, + /* flags */ 0, + &ahb->ecb_dmat) != 0) goto error_exit; ahb->init_level++; |