summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_rlreg.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/pci/if_rlreg.h')
-rw-r--r--sys/pci/if_rlreg.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/pci/if_rlreg.h b/sys/pci/if_rlreg.h
index 0bb9ffc..2f08768 100644
--- a/sys/pci/if_rlreg.h
+++ b/sys/pci/if_rlreg.h
@@ -368,8 +368,12 @@ struct rl_softc {
int rl_txthresh;
struct rl_chain_data rl_cdata;
struct callout_handle rl_stat_ch;
+ struct mtx rl_mtx;
};
+#define RL_LOCK(_sc) mtx_enter(&(_sc)->rl_mtx, MTX_DEF)
+#define RL_UNLOCK(_sc) mtx_exit(&(_sc)->rl_mtx, MTX_DEF)
+
/*
* register space access macros
*/
OpenPOWER on IntegriCloud