summaryrefslogtreecommitdiffstats
path: root/freebsd/sys/dev/usb/usb_hub.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-11-12 13:01:12 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-11-12 13:01:12 +0100
commit02279d6272b22e96ca418c5a2dd9d32c46d16ee1 (patch)
tree5d85f7010c479473520105484ded7f23394304ee /freebsd/sys/dev/usb/usb_hub.h
parentRename kernel space log() to _bsd_log() (diff)
downloadrtems-libbsd-02279d6272b22e96ca418c5a2dd9d32c46d16ee1.tar.bz2
USB: Update to FreeBSD trunk 2015-11-10
Diffstat (limited to 'freebsd/sys/dev/usb/usb_hub.h')
-rw-r--r--freebsd/sys/dev/usb/usb_hub.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/freebsd/sys/dev/usb/usb_hub.h b/freebsd/sys/dev/usb/usb_hub.h
index 557a0565..16430d9b 100644
--- a/freebsd/sys/dev/usb/usb_hub.h
+++ b/freebsd/sys/dev/usb/usb_hub.h
@@ -54,7 +54,11 @@ struct usb_hub {
uint16_t portpower; /* mA per USB port */
uint8_t isoc_last_time;
uint8_t nports;
+#if (USB_HAVE_FIXED_PORT == 0)
struct usb_port ports[0];
+#else
+ struct usb_port ports[USB_MAX_PORTS];
+#endif
};
/* function prototypes */