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/advansys/adwcam.c | |
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/advansys/adwcam.c')
-rw-r--r-- | sys/dev/advansys/adwcam.c | 87 |
1 files changed, 54 insertions, 33 deletions
diff --git a/sys/dev/advansys/adwcam.c b/sys/dev/advansys/adwcam.c index 5007413..4085f3b 100644 --- a/sys/dev/advansys/adwcam.c +++ b/sys/dev/advansys/adwcam.c @@ -1029,30 +1029,40 @@ adw_init(struct adw_softc *adw) printf("%s: SCSI ID %d, ", adw_name(adw), adw->initiator_id); /* DMA tag for mapping buffers into device visible space. */ - if (bus_dma_tag_create(adw->parent_dmat, /*alignment*/1, /*boundary*/0, - /*lowaddr*/BUS_SPACE_MAXADDR_32BIT, - /*highaddr*/BUS_SPACE_MAXADDR, - /*filter*/NULL, /*filterarg*/NULL, - /*maxsize*/MAXBSIZE, /*nsegments*/ADW_SGSIZE, - /*maxsegsz*/BUS_SPACE_MAXSIZE_32BIT, - /*flags*/BUS_DMA_ALLOCNOW, - &adw->buffer_dmat) != 0) { + if (bus_dma_tag_create( + /* parent */ adw->parent_dmat, + /* alignment */ 1, + /* boundary */ 0, + /* lowaddr */ BUS_SPACE_MAXADDR_32BIT, + /* highaddr */ BUS_SPACE_MAXADDR, + /* filter */ NULL, + /* filterarg */ NULL, + /* maxsize */ MAXBSIZE, + /* nsegments */ ADW_SGSIZE, + /* maxsegsz */ BUS_SPACE_MAXSIZE_32BIT, + /* flags */ BUS_DMA_ALLOCNOW, + &adw->buffer_dmat) != 0) { return (ENOMEM); } adw->init_level++; /* DMA tag for our ccb carrier structures */ - if (bus_dma_tag_create(adw->parent_dmat, /*alignment*/0x10, - /*boundary*/0, - /*lowaddr*/BUS_SPACE_MAXADDR_32BIT, - /*highaddr*/BUS_SPACE_MAXADDR, - /*filter*/NULL, /*filterarg*/NULL, - (adw->max_acbs + ADW_NUM_CARRIER_QUEUES + 1) - * sizeof(struct adw_carrier), - /*nsegments*/1, - /*maxsegsz*/BUS_SPACE_MAXSIZE_32BIT, - /*flags*/0, &adw->carrier_dmat) != 0) { + if (bus_dma_tag_create( + /* parent */ adw->parent_dmat, + /* alignment */ 0x10, + /* boundary */ 0, + /* lowaddr */ BUS_SPACE_MAXADDR_32BIT, + /* highaddr */ BUS_SPACE_MAXADDR, + /* filter */ NULL, + /* filterarg */ NULL, + /* maxsize */ (adw->max_acbs + + ADW_NUM_CARRIER_QUEUES + 1) * + sizeof(struct adw_carrier), + /* nsegments */ 1, + /* maxsegsz */ BUS_SPACE_MAXSIZE_32BIT, + /* flags */ 0, + &adw->carrier_dmat) != 0) { return (ENOMEM); } @@ -1099,14 +1109,19 @@ adw_init(struct adw_softc *adw) adw->init_level++; /* DMA tag for our acb structures */ - if (bus_dma_tag_create(adw->parent_dmat, /*alignment*/1, /*boundary*/0, - /*lowaddr*/BUS_SPACE_MAXADDR, - /*highaddr*/BUS_SPACE_MAXADDR, - /*filter*/NULL, /*filterarg*/NULL, - adw->max_acbs * sizeof(struct acb), - /*nsegments*/1, - /*maxsegsz*/BUS_SPACE_MAXSIZE_32BIT, - /*flags*/0, &adw->acb_dmat) != 0) { + if (bus_dma_tag_create( + /* parent */ adw->parent_dmat, + /* alignment */ 1, + /* boundary */ 0, + /* lowaddr */ BUS_SPACE_MAXADDR, + /* highaddr */ BUS_SPACE_MAXADDR, + /* filter */ NULL, + /* filterarg */ NULL, + /* maxsize */ adw->max_acbs * sizeof(struct acb), + /* nsegments */ 1, + /* maxsegsz */ BUS_SPACE_MAXSIZE_32BIT, + /* flags */ 0, + &adw->acb_dmat) != 0) { return (ENOMEM); } @@ -1129,13 +1144,19 @@ adw_init(struct adw_softc *adw) bzero(adw->acbs, adw->max_acbs * sizeof(struct acb)); /* DMA tag for our S/G structures. We allocate in page sized chunks */ - if (bus_dma_tag_create(adw->parent_dmat, /*alignment*/1, /*boundary*/0, - /*lowaddr*/BUS_SPACE_MAXADDR, - /*highaddr*/BUS_SPACE_MAXADDR, - /*filter*/NULL, /*filterarg*/NULL, - PAGE_SIZE, /*nsegments*/1, - /*maxsegsz*/BUS_SPACE_MAXSIZE_32BIT, - /*flags*/0, &adw->sg_dmat) != 0) { + if (bus_dma_tag_create( + /* parent */ adw->parent_dmat, + /* alignment */ 1, + /* boundary */ 0, + /* lowaddr */ BUS_SPACE_MAXADDR, + /* highaddr */ BUS_SPACE_MAXADDR, + /* filter */ NULL, + /* filterarg */ NULL, + /* maxsize */ PAGE_SIZE, + /* nsegments */ 1, + /* maxsegsz */ BUS_SPACE_MAXSIZE_32BIT, + /* flags */ 0, + &adw->sg_dmat) != 0) { return (ENOMEM); } |