summaryrefslogtreecommitdiff
path: root/components/drivers/include
diff options
context:
space:
mode:
authorWayne Lin <[email protected]>2022-01-26 14:54:14 +0800
committerWayne Lin <[email protected]>2022-01-26 14:54:14 +0800
commit648199808e598e0b35fa01c09a1909eeb857e0cd (patch)
tree98edafc6ded6e3886e8ab066229ff404824c1b87 /components/drivers/include
parent1577e91c50fb6cea131767163665a0640644fe96 (diff)
parente665bacf89c5901244cd43e195a7ae039b3c0463 (diff)
Merge branch 'master' of https://github.com/RT-Thread/rt-thread into nuvoton
Diffstat (limited to 'components/drivers/include')
-rw-r--r--components/drivers/include/drivers/usb_host.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/drivers/include/drivers/usb_host.h b/components/drivers/include/drivers/usb_host.h
index 2031e2cdc0..95dd1ff066 100644
--- a/components/drivers/include/drivers/usb_host.h
+++ b/components/drivers/include/drivers/usb_host.h
@@ -6,6 +6,7 @@
* Change Logs:
* Date Author Notes
* 2011-3-12 Yi Qiu first version
+ * 2021-02-23 Leslie Lee provide possibility for multi usb host
*/
#ifndef __RT_USB_HOST_H__
@@ -137,6 +138,7 @@ struct uhcd
uhcd_ops_t ops;
rt_uint8_t num_ports;
uhub_t roothub;
+ struct rt_messagequeue *usb_mq;
};
typedef struct uhcd* uhcd_t;
@@ -163,7 +165,7 @@ struct uhost_msg
typedef struct uhost_msg* uhost_msg_t;
/* usb host system interface */
-rt_err_t rt_usb_host_init(void);
+rt_err_t rt_usb_host_init(const char *name);
void rt_usbh_hub_init(struct uhcd *hcd);
/* usb host core interface */
@@ -203,7 +205,7 @@ rt_err_t rt_usbh_hub_clear_port_feature(uhub_t uhub, rt_uint16_t port,
rt_err_t rt_usbh_hub_set_port_feature(uhub_t uhub, rt_uint16_t port,
rt_uint16_t feature);
rt_err_t rt_usbh_hub_reset_port(uhub_t uhub, rt_uint16_t port);
-rt_err_t rt_usbh_event_signal(struct uhost_msg* msg);
+rt_err_t rt_usbh_event_signal(uhcd_t uhcd, struct uhost_msg* msg);
void rt_usbh_root_hub_connect_handler(struct uhcd *hcd, rt_uint8_t port, rt_bool_t isHS);
@@ -265,5 +267,3 @@ rt_inline int rt_usb_hcd_setup_xfer(uhcd_t hcd, upipe_t pipe, ureq_t setup, int
#endif
#endif
-
-