aboutsummaryrefslogtreecommitdiffstats
path: root/src/hw/usb-xhci.h
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-xhci.h
parent2bfd170cc3c33d575eb61295312e695ac95643ef (diff)
downloadseabios-c427deff961c022d06bc3527e37dea654393e5cb.tar.gz
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-xhci.h')
-rw-r--r--src/hw/usb-xhci.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/hw/usb-xhci.h b/src/hw/usb-xhci.h
index 7639409b..807d5975 100644
--- a/src/hw/usb-xhci.h
+++ b/src/hw/usb-xhci.h
@@ -9,11 +9,9 @@ struct usb_pipe;
// usb-xhci.c
void xhci_setup(void);
-struct usb_pipe *xhci_alloc_pipe(struct usbdevice_s *usbdev
- , struct usb_endpoint_descriptor *epdesc);
-struct usb_pipe *xhci_update_pipe(struct usbdevice_s *usbdev
- , struct usb_pipe *pipe
- , struct usb_endpoint_descriptor *epdesc);
+struct usb_pipe *xhci_realloc_pipe(struct usbdevice_s *usbdev
+ , struct usb_pipe *upipe
+ , struct usb_endpoint_descriptor *epdesc);
int xhci_send_control(struct usb_pipe *p, int dir, const void *cmd, int cmdsize
, void *data, int datasize);
int xhci_send_bulk(struct usb_pipe *p, int dir, void *data, int datasize);