diff options
Diffstat (limited to 'sys/dev/hme/if_hmevar.h')
-rw-r--r-- | sys/dev/hme/if_hmevar.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/dev/hme/if_hmevar.h b/sys/dev/hme/if_hmevar.h index 4482fd4..fe752b1 100644 --- a/sys/dev/hme/if_hmevar.h +++ b/sys/dev/hme/if_hmevar.h @@ -138,11 +138,16 @@ struct hme_softc { int sc_csum_features; /* Ring descriptor */ - struct hme_ring sc_rb; + struct hme_ring sc_rb; - int sc_debug; + int sc_debug; + struct mtx sc_lock; }; +#define HME_LOCK(_sc) mtx_lock(&(_sc)->sc_lock) +#define HME_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_lock) +#define HME_LOCK_ASSERT(_sc, _what) mtx_assert(&(_sc)->sc_lock, (_what)) + extern devclass_t hme_devclass; int hme_config(struct hme_softc *); |