aboutsummaryrefslogtreecommitdiff
path: root/src/hw/usb.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2014-10-16 13:23:08 -0400
committerKevin O'Connor <kevin@koconnor.net>2014-10-16 16:30:10 -0400
commitc427deff961c022d06bc3527e37dea654393e5cb (patch)
tree0e1f8e2655f907bb34212173ae2a67ee6825c1ad /src/hw/usb.c
parent2bfd170cc3c33d575eb61295312e695ac95643ef (diff)
downloadseabios-hppa-c427deff961c022d06bc3527e37dea654393e5cb.zip
seabios-hppa-c427deff961c022d06bc3527e37dea654393e5cb.tar.gz
seabios-hppa-c427deff961c022d06bc3527e37dea654393e5cb.tar.bz2
xhci: Change xhci_update_pipe() to xhci_realloc_pipe() and use for alloc too
Instead of exporting both xhci_alloc_pipe() and xhci_update_pipe(), export only xhci_realloc_pipe() and support alloc, update, and free from it. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/hw/usb.c')
-rw-r--r--src/hw/usb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hw/usb.c b/src/hw/usb.c
index f7d5502..1fb5051 100644
--- a/src/hw/usb.c
+++ b/src/hw/usb.c
@@ -40,7 +40,7 @@ usb_alloc_pipe(struct usbdevice_s *usbdev
case USB_TYPE_EHCI:
return ehci_alloc_pipe(usbdev, epdesc);
case USB_TYPE_XHCI:
- return xhci_alloc_pipe(usbdev, epdesc);
+ return xhci_realloc_pipe(usbdev, NULL, epdesc);
}
}
@@ -51,7 +51,7 @@ usb_update_pipe(struct usbdevice_s *usbdev, struct usb_pipe *pipe
{
switch (usbdev->hub->cntl->type) {
case USB_TYPE_XHCI:
- return xhci_update_pipe(usbdev, pipe, epdesc);
+ return xhci_realloc_pipe(usbdev, pipe, epdesc);
default:
usb_free_pipe(usbdev, pipe);
return usb_alloc_pipe(usbdev, epdesc);