summaryrefslogtreecommitdiffstats
path: root/sys/dev/advansys/advansys.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/advansys/advansys.c')
-rw-r--r--sys/dev/advansys/advansys.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/advansys/advansys.c b/sys/dev/advansys/advansys.c
index 3a50c3e..b581625 100644
--- a/sys/dev/advansys/advansys.c
+++ b/sys/dev/advansys/advansys.c
@@ -51,6 +51,8 @@
#include <sys/systm.h>
#include <sys/malloc.h>
#include <sys/kernel.h>
+#include <sys/lock.h>
+#include <sys/mutex.h>
#include <machine/bus_pio.h>
#include <machine/bus.h>
@@ -1331,6 +1333,8 @@ adv_attach(adv)
/* nsegments */ max_sg,
/* maxsegsz */ BUS_SPACE_MAXSIZE_32BIT,
/* flags */ BUS_DMA_ALLOCNOW,
+ /* lockfunc */ busdma_lock_mutex,
+ /* lockarg */ &Giant,
&adv->buffer_dmat) != 0) {
return (ENXIO);
}
@@ -1350,6 +1354,8 @@ adv_attach(adv)
/* nsegments */ 1,
/* maxsegsz */ BUS_SPACE_MAXSIZE_32BIT,
/* flags */ 0,
+ /* lockfunc */ busdma_lock_mutex,
+ /* lockarg */ &Giant,
&adv->sense_dmat) != 0) {
return (ENXIO);
}
OpenPOWER on IntegriCloud