summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_pcnreg.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/pci/if_pcnreg.h')
-rw-r--r--sys/pci/if_pcnreg.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/pci/if_pcnreg.h b/sys/pci/if_pcnreg.h
index 79ef531..0f3b86d 100644
--- a/sys/pci/if_pcnreg.h
+++ b/sys/pci/if_pcnreg.h
@@ -453,6 +453,7 @@ struct pcn_softc {
#define PCN_LOCK(_sc) mtx_lock(&(_sc)->pcn_mtx)
#define PCN_UNLOCK(_sc) mtx_unlock(&(_sc)->pcn_mtx)
+#define PCN_LOCK_ASSERT(_sc) mtx_assert(&(_sc)->pcn_mtx, MA_OWNED)
/*
* register space access macros
OpenPOWER on IntegriCloud