提交 2721dbf1 编写于 作者: V Vitaly Kuzmichev 提交者: Remy Bohmer

USB-CDC: Add lost 'qmult' definition

Add lost 'qmult' definition for High Speed devices and make it
configurable through CONFIG_USB_ETH_QMULT.
Signed-off-by: NVitaly Kuzmichev <vkuzmichev@mvista.com>
上级 7b2f3906
...@@ -140,6 +140,12 @@ static inline int is_cdc(struct eth_dev *dev) ...@@ -140,6 +140,12 @@ static inline int is_cdc(struct eth_dev *dev)
#ifdef CONFIG_USB_GADGET_DUALSPEED #ifdef CONFIG_USB_GADGET_DUALSPEED
#define DEVSPEED USB_SPEED_HIGH #define DEVSPEED USB_SPEED_HIGH
#ifdef CONFIG_USB_ETH_QMULT
#define qmult CONFIG_USB_ETH_QMULT
#else
#define qmult 5
#endif
/* for dual-speed hardware, use deeper queues at highspeed */ /* for dual-speed hardware, use deeper queues at highspeed */
#define qlen(gadget) \ #define qlen(gadget) \
(DEFAULT_QLEN*((gadget->speed == USB_SPEED_HIGH) ? qmult : 1)) (DEFAULT_QLEN*((gadget->speed == USB_SPEED_HIGH) ? qmult : 1))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册