summaryrefslogtreecommitdiffstats
path: root/sys/dev/buslogic/bt_pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/buslogic/bt_pci.c')
-rw-r--r--sys/dev/buslogic/bt_pci.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/buslogic/bt_pci.c b/sys/dev/buslogic/bt_pci.c
index f2f6158..2e10020 100644
--- a/sys/dev/buslogic/bt_pci.c
+++ b/sys/dev/buslogic/bt_pci.c
@@ -32,6 +32,8 @@
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
+#include <sys/lock.h>
+#include <sys/mutex.h>
#include <sys/bus.h>
#include <pci/pcireg.h>
@@ -184,6 +186,8 @@ bt_pci_attach(device_t dev)
/* nsegments */ ~0,
/* maxsegsz */ BUS_SPACE_MAXSIZE_32BIT,
/* flags */ 0,
+ /* lockfunc */ busdma_lock_mutex,
+ /* lockarg */ &Giant,
&bt->parent_dmat) != 0) {
bt_pci_release_resources(dev);
return (ENOMEM);
OpenPOWER on IntegriCloud