summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_sfreg.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/pci/if_sfreg.h')
-rw-r--r--sys/pci/if_sfreg.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/pci/if_sfreg.h b/sys/pci/if_sfreg.h
index 49fdd5a..c2dc20e 100644
--- a/sys/pci/if_sfreg.h
+++ b/sys/pci/if_sfreg.h
@@ -1044,8 +1044,13 @@ struct sf_softc {
u_int8_t sf_link;
int sf_if_flags;
struct callout_handle sf_stat_ch;
+ struct mtx sf_mtx;
};
+
+#define SF_LOCK(_sc) mtx_enter(&(_sc)->sf_mtx, MTX_DEF)
+#define SF_UNLOCK(_sc) mtx_exit(&(_sc)->sf_mtx, MTX_DEF)
+
#define SF_TIMEOUT 1000
#ifdef __alpha__
OpenPOWER on IntegriCloud