summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_stereg.h
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>2000-10-13 18:35:49 +0000
committerwpaul <wpaul@FreeBSD.org>2000-10-13 18:35:49 +0000
commit8e0abe4cc479954f239d4623eb511af27738df8c (patch)
treefff6a7e2bdedaad22a27ef128d69bb1169c24bfb /sys/pci/if_stereg.h
parent9ddccb55057ef3b64d80b6d90cb2b25b56238ba3 (diff)
downloadFreeBSD-src-8e0abe4cc479954f239d4623eb511af27738df8c.zip
FreeBSD-src-8e0abe4cc479954f239d4623eb511af27738df8c.tar.gz
Use device_get_nameunit(dev) as the mutex string when calling
mtx_init() instead of hard-coded string constant. Also remember to do the mutex changes to the ste driver, which I forgot in the first commit.
Diffstat (limited to 'sys/pci/if_stereg.h')
-rw-r--r--sys/pci/if_stereg.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/pci/if_stereg.h b/sys/pci/if_stereg.h
index 7a0b487..7a5ad7a 100644
--- a/sys/pci/if_stereg.h
+++ b/sys/pci/if_stereg.h
@@ -514,8 +514,12 @@ struct ste_softc {
struct ste_list_data *ste_ldata;
struct ste_chain_data ste_cdata;
struct callout_handle ste_stat_ch;
+ struct mtx ste_mtx;
};
+#define STE_LOCK(_sc) mtx_enter(&(_sc)->ste_mtx, MTX_DEF)
+#define STE_UNLOCK(_sc) mtx_exit(&(_sc)->ste_mtx, MTX_DEF)
+
struct ste_mii_frame {
u_int8_t mii_stdelim;
u_int8_t mii_opcode;
OpenPOWER on IntegriCloud