aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/firewire/if_fwevar.h
diff options
context:
space:
mode:
authorHidetoshi Shimokawa <simokawa@FreeBSD.org>2007-06-06 14:31:36 +0000
committerHidetoshi Shimokawa <simokawa@FreeBSD.org>2007-06-06 14:31:36 +0000
commit9950b741e91ab7a7e26badccc0d82f2e103a1f1e (patch)
treebda94d3de727b214eea64936b54deb3b46a61f52 /sys/dev/firewire/if_fwevar.h
parente9bf9fb67c4e86cd24d4132b20c40af5ec4a983d (diff)
Notes
Diffstat (limited to 'sys/dev/firewire/if_fwevar.h')
-rw-r--r--sys/dev/firewire/if_fwevar.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/firewire/if_fwevar.h b/sys/dev/firewire/if_fwevar.h
index 73fcb3df285c..4b8eb76d0605 100644
--- a/sys/dev/firewire/if_fwevar.h
+++ b/sys/dev/firewire/if_fwevar.h
@@ -38,7 +38,7 @@
#define _NET_IF_FWEVAR_H_
struct fwe_softc {
- /* XXX this must be first for fd.post_explore() */
+ /* XXX this must be the first for fd.post_explore() */
struct firewire_dev_comm fd;
short stream_ch;
short dma_ch;
@@ -48,5 +48,8 @@ struct fwe_softc {
struct ifnet *ifp;
struct fwe_softc *fwe;
} eth_softc;
+ struct mtx mtx;
};
+#define FWE_LOCK(fwe) mtx_lock(&(fwe)->mtx)
+#define FWE_UNLOCK(fwe) mtx_unlock(&(fwe)->mtx)
#endif /* !_NET_IF_FWEVAR_H_ */