Remove usb_drv_wait from the public usb api, and remove the implementation from usb-drv-arc.c, as it is not actually used

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19275 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Frank Gevaerts 2008-11-30 15:56:49 +00:00
parent b9c49fd474
commit f235f1d4c0
3 changed files with 15 additions and 27 deletions

View file

@ -581,17 +581,6 @@ int usb_drv_recv(int endpoint, void* ptr, int length)
return prime_transfer(endpoint&0x7f, ptr, length, false, false);
}
void usb_drv_wait(int endpoint, bool send)
{
int pipe = (endpoint&0x7f) * 2 + (send ? 1 : 0);
struct queue_head* qh = &qh_array[pipe];
while (qh->dtd.size_ioc_sts & QH_STATUS_ACTIVE) {
if (REG_USBSTS & USBSTS_RESET)
break;
}
}
int usb_drv_port_speed(void)
{
return (REG_PORTSC1 & 0x08000000) ? 1 : 0;