Modify xhci functions for USB core

This commit is contained in:
xj 2024-06-18 23:30:51 -07:00
parent a66824c9ad
commit 5d240f93ae
1 changed files with 8 additions and 0 deletions

View File

@ -852,6 +852,14 @@ failed:
}
int usbh_get_xhci_devaddr(usbh_pipe_t *pipe)
{
struct xhci_endpoint *ppipe = (struct xhci_endpoint *)pipe;
USB_ASSERT(ppipe && (ppipe->slot));
return ppipe->slot->id;
}
int xhci_usbh_pipe_free(usbh_pipe_t pipe){
return 0;
}