summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_wbreg.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/pci/if_wbreg.h')
-rw-r--r--sys/pci/if_wbreg.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/pci/if_wbreg.h b/sys/pci/if_wbreg.h
index 983886b..5467de6 100644
--- a/sys/pci/if_wbreg.h
+++ b/sys/pci/if_wbreg.h
@@ -383,6 +383,7 @@ struct wb_softc {
#define WB_LOCK(_sc) mtx_lock(&(_sc)->wb_mtx)
#define WB_UNLOCK(_sc) mtx_unlock(&(_sc)->wb_mtx)
+#define WB_LOCK_ASSERT(_sc) mtx_assert(&(_sc)->wb_mtx, MA_OWNED)
/*
* register space access macros
OpenPOWER on IntegriCloud