summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/if_auereg.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/usb/if_auereg.h')
-rw-r--r--sys/dev/usb/if_auereg.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/usb/if_auereg.h b/sys/dev/usb/if_auereg.h
index 9e4d546..5558b50 100644
--- a/sys/dev/usb/if_auereg.h
+++ b/sys/dev/usb/if_auereg.h
@@ -246,8 +246,12 @@ struct aue_softc {
int aue_if_flags;
struct aue_cdata aue_cdata;
struct callout_handle aue_stat_ch;
+ struct mtx aue_mtx;
};
+#define AUE_LOCK(_sc) mtx_enter(&(_sc)->aue_mtx, MTX_DEF)
+#define AUE_UNLOCK(_sc) mtx_exit(&(_sc)->aue_mtx, MTX_DEF)
+
#define AUE_TIMEOUT 1000
#define ETHER_ALIGN 2
#define AUE_BUFSZ 1536
OpenPOWER on IntegriCloud