diff options
| author | Scott Long <scottl@FreeBSD.org> | 2003-07-01 15:52:06 +0000 |
|---|---|---|
| committer | Scott Long <scottl@FreeBSD.org> | 2003-07-01 15:52:06 +0000 |
| commit | f6b1c44d1f70d5f298b911f2c1dcd802b0d11339 (patch) | |
| tree | 1bbd76935b6d5917753df7328c69bd2f3c75f15a /sys/dev/ips/ips.c | |
| parent | dfebdcdf7ca22f2767534b7df4b828f55b6e754f (diff) | |
Notes
Diffstat (limited to 'sys/dev/ips/ips.c')
| -rw-r--r-- | sys/dev/ips/ips.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/ips/ips.c b/sys/dev/ips/ips.c index bd329d60e37f6..98a09d342984d 100644 --- a/sys/dev/ips/ips.c +++ b/sys/dev/ips/ips.c @@ -337,6 +337,8 @@ int ips_adapter_init(ips_softc_t *sc) /* maxsegsize*/ IPS_COMMAND_LEN + IPS_MAX_SG_LEN, /* flags */ 0, + /* lockfunc */ busdma_lock_mutex, + /* lockarg */ &Giant, &sc->command_dmatag) != 0) { device_printf(sc->dev, "can't alloc command dma tag\n"); goto error; @@ -352,6 +354,8 @@ int ips_adapter_init(ips_softc_t *sc) /* numsegs */ IPS_MAX_SG_ELEMENTS, /* maxsegsize*/ IPS_MAX_IOBUF_SIZE, /* flags */ 0, + /* lockfunc */ busdma_lock_mutex, + /* lockarg */ &Giant, &sc->sg_dmatag) != 0) { device_printf(sc->dev, "can't alloc SG dma tag\n"); goto error; @@ -546,6 +550,8 @@ static int ips_copperhead_queue_init(ips_softc_t *sc) /* numsegs */ 1, /* maxsegsize*/ sizeof(ips_copper_queue_t), /* flags */ 0, + /* lockfunc */ busdma_lock_mutex, + /* lockarg */ &Giant, &dmatag) != 0) { device_printf(sc->dev, "can't alloc dma tag for statue queue\n"); error = ENOMEM; |
