diff options
Diffstat (limited to 'sys/pci/if_wbreg.h')
-rw-r--r-- | sys/pci/if_wbreg.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/pci/if_wbreg.h b/sys/pci/if_wbreg.h index 5bfccd8..6f58514 100644 --- a/sys/pci/if_wbreg.h +++ b/sys/pci/if_wbreg.h @@ -378,8 +378,12 @@ struct wb_softc { struct wb_list_data *wb_ldata; struct wb_chain_data wb_cdata; struct callout_handle wb_stat_ch; + struct mtx wb_mtx; }; +#define WB_LOCK(_sc) mtx_enter(&(_sc)->wb_mtx, MTX_DEF) +#define WB_UNLOCK(_sc) mtx_exit(&(_sc)->wb_mtx, MTX_DEF) + /* * register space access macros */ |