summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_tireg.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/pci/if_tireg.h')
-rw-r--r--sys/pci/if_tireg.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/pci/if_tireg.h b/sys/pci/if_tireg.h
index 6346c67..d64cc7a 100644
--- a/sys/pci/if_tireg.h
+++ b/sys/pci/if_tireg.h
@@ -1148,8 +1148,12 @@ struct ti_softc {
u_int32_t ti_tx_buf_ratio;
int ti_if_flags;
int ti_txcnt;
+ struct mtx ti_mtx;
};
+#define TI_LOCK(_sc) mtx_enter(&(_sc)->ti_mtx, MTX_DEF)
+#define TI_UNLOCK(_sc) mtx_exit(&(_sc)->ti_mtx, MTX_DEF)
+
/*
* Microchip Technology 24Cxx EEPROM control bytes
*/
OpenPOWER on IntegriCloud