Deleted Added
full compact
33c33
< * $FreeBSD: head/sys/dev/bge/if_bgereg.h 121810 2003-10-31 16:25:39Z wpaul $
---
> * $FreeBSD: head/sys/dev/bge/if_bgereg.h 122497 2003-11-11 17:57:03Z sam $
2261a2262
> struct mtx bge_mtx;
2297c2298
< struct callout_handle bge_stat_ch;
---
> struct callout bge_stat_ch;
2300a2302,2308
>
> #define BGE_LOCK_INIT(_sc, _name) \
> mtx_init(&(_sc)->bge_mtx, _name, MTX_NETWORK_LOCK, MTX_DEF)
> #define BGE_LOCK(_sc) mtx_lock(&(_sc)->bge_mtx)
> #define BGE_LOCK_ASSERT(_sc) mtx_assert(&(_sc)->bge_mtx, MA_OWNED)
> #define BGE_UNLOCK(_sc) mtx_unlock(&(_sc)->bge_mtx)
> #define BGE_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->bge_mtx)