diff options
Diffstat (limited to 'sys/dev/vr/if_vrreg.h')
-rw-r--r-- | sys/dev/vr/if_vrreg.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/vr/if_vrreg.h b/sys/dev/vr/if_vrreg.h index 2f2ac97..8217a8c 100644 --- a/sys/dev/vr/if_vrreg.h +++ b/sys/dev/vr/if_vrreg.h @@ -411,8 +411,12 @@ struct vr_softc { struct vr_list_data *vr_ldata; struct vr_chain_data vr_cdata; struct callout_handle vr_stat_ch; + struct mtx vr_mtx; }; +#define VR_LOCK(_sc) mtx_enter(&(_sc)->vr_mtx, MTX_DEF) +#define VR_UNLOCK(_sc) mtx_exit(&(_sc)->vr_mtx, MTX_DEF) + /* * register space access macros */ |