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/ahb | |
| parent | dfebdcdf7ca22f2767534b7df4b828f55b6e754f (diff) | |
Notes
Diffstat (limited to 'sys/dev/ahb')
| -rw-r--r-- | sys/dev/ahb/ahb.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/ahb/ahb.c b/sys/dev/ahb/ahb.c index a3902aeb0745..2d2d3731d3be 100644 --- a/sys/dev/ahb/ahb.c +++ b/sys/dev/ahb/ahb.c @@ -33,6 +33,8 @@ #include <sys/kernel.h> #include <sys/malloc.h> #include <sys/module.h> +#include <sys/lock.h> +#include <sys/mutex.h> #include <sys/bus.h> #include <machine/bus_pio.h> @@ -303,6 +305,8 @@ ahbattach(device_t dev) /* nsegments */ AHB_NSEG, /* maxsegsz */ BUS_SPACE_MAXSIZE_32BIT, /* flags */ BUS_DMA_ALLOCNOW, + /* lockfunc */ busdma_lock_mutex, + /* lockarg */ &Giant, &ahb->buffer_dmat) != 0) goto error_exit; @@ -322,6 +326,8 @@ ahbattach(device_t dev) /* nsegments */ 1, /* maxsegsz */ BUS_SPACE_MAXSIZE_32BIT, /* flags */ 0, + /* lockfunc */ busdma_lock_mutex, + /* lockarg */ &Giant, &ahb->ecb_dmat) != 0) goto error_exit; |
