summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/if_axereg.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/usb/if_axereg.h')
-rw-r--r--sys/dev/usb/if_axereg.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/usb/if_axereg.h b/sys/dev/usb/if_axereg.h
index 955321c..daaca88 100644
--- a/sys/dev/usb/if_axereg.h
+++ b/sys/dev/usb/if_axereg.h
@@ -141,6 +141,7 @@ struct axe_softc {
#if __FreeBSD_version >= 500000
struct mtx axe_mtx;
#endif
+ struct sx axe_sleeplock;
char axe_dying;
int axe_link;
unsigned char axe_ipgs[3];
@@ -157,3 +158,6 @@ struct axe_softc {
#define AXE_LOCK(_sc)
#define AXE_UNLOCK(_sc)
#endif
+#define AXE_SLEEPLOCK(_sc) sx_xlock(&(_sc)->axe_sleeplock)
+#define AXE_SLEEPUNLOCK(_sc) sx_xunlock(&(_sc)->axe_sleeplock)
+#define AXE_SLEEPLOCKASSERT(_sc) sx_assert(&(_sc)->axe_sleeplock, SX_XLOCKED)
OpenPOWER on IntegriCloud