forked from xuos/xiuos
Modify usb core to call functions defined by xhci.
This commit is contained in:
parent
805cd766ea
commit
d2c1180cce
|
@ -1051,11 +1051,6 @@ int usbh_pipe_alloc(usbh_pipe_t *pipe, const struct usbh_endpoint_cfg *ep_cfg)
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
int usbh_get_xhci_devaddr(usbh_pipe_t *pipe)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
int usbh_get_devaddr(struct usbh_hubport *hport)
|
int usbh_get_devaddr(struct usbh_hubport *hport)
|
||||||
{
|
{
|
||||||
int dev_addr;
|
int dev_addr;
|
||||||
|
|
|
@ -111,6 +111,14 @@ int xhci_usbh_ep_pipe_reconfigure(struct usbh_bus *usb, usbh_pipe_t pipe, uint8_
|
||||||
*/
|
*/
|
||||||
int xhci_usbh_pipe_alloc(usbh_pipe_t *pipe, const struct usbh_endpoint_cfg *ep_cfg);
|
int xhci_usbh_pipe_alloc(usbh_pipe_t *pipe, const struct usbh_endpoint_cfg *ep_cfg);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief get device address.
|
||||||
|
*
|
||||||
|
* @param pipe A memory allocated for pipe.
|
||||||
|
* @return On success will return device address, and others indicate fail.
|
||||||
|
*/
|
||||||
|
int usbh_get_xhci_devaddr(usbh_pipe_t *pipe);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Free a pipe in which saves endpoint info.
|
* @brief Free a pipe in which saves endpoint info.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue