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.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/dev/usb/if_auereg.h b/sys/dev/usb/if_auereg.h
index 2988314..57fce4a 100644
--- a/sys/dev/usb/if_auereg.h
+++ b/sys/dev/usb/if_auereg.h
@@ -240,6 +240,13 @@ struct aue_cdata {
#define AUE_INC(x, y) (x) = (x + 1) % y
struct aue_softc {
+#if defined(__FreeBSD__)
+#define GET_MII(sc) (device_get_softc((sc)->aue_miibus))
+#elif defined(__NetBSD__)
+#define GET_MII(sc) (&(sc)->aue_mii)
+#elif defined(__OpenBSD__)
+#define GET_MII(sc) (&(sc)->aue_mii)
+#endif
struct arpcom arpcom;
device_t aue_miibus;
usbd_device_handle aue_udev;
OpenPOWER on IntegriCloud