diff options
| author | Hidetoshi Shimokawa <simokawa@FreeBSD.org> | 2007-06-06 14:31:36 +0000 |
|---|---|---|
| committer | Hidetoshi Shimokawa <simokawa@FreeBSD.org> | 2007-06-06 14:31:36 +0000 |
| commit | 9950b741e91ab7a7e26badccc0d82f2e103a1f1e (patch) | |
| tree | bda94d3de727b214eea64936b54deb3b46a61f52 /sys/dev/firewire/if_fwevar.h | |
| parent | e9bf9fb67c4e86cd24d4132b20c40af5ec4a983d (diff) | |
Notes
Diffstat (limited to 'sys/dev/firewire/if_fwevar.h')
| -rw-r--r-- | sys/dev/firewire/if_fwevar.h | 5 |
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_ */ |
