diff options
Diffstat (limited to 'sys/dev/dc/if_dcreg.h')
-rw-r--r-- | sys/dev/dc/if_dcreg.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/dc/if_dcreg.h b/sys/dev/dc/if_dcreg.h index 9c6cfc4..e72d8b4 100644 --- a/sys/dev/dc/if_dcreg.h +++ b/sys/dev/dc/if_dcreg.h @@ -676,8 +676,13 @@ struct dc_softc { #ifdef SRM_MEDIA int dc_srm_media; #endif + struct mtx dc_mtx; }; + +#define DC_LOCK(_sc) mtx_enter(&(_sc)->dc_mtx, MTX_DEF) +#define DC_UNLOCK(_sc) mtx_exit(&(_sc)->dc_mtx, MTX_DEF) + #define DC_TX_POLL 0x00000001 #define DC_TX_COALESCE 0x00000002 #define DC_TX_ADMTEK_WAR 0x00000004 |