diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2014-12-31 02:07:37 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2015-01-07 10:13:46 -0500 |
commit | b33e31d17b42eaaccbf3a3b4a6f6e0ef49152ae2 (patch) | |
tree | 4b3b27a224e7d5ade6c646550a60a512c6b29610 /src/hw/usb.c | |
parent | eb9f3ae5e652d24ff36f45dda80b013417f81f23 (diff) | |
download | seabios-hppa-b33e31d17b42eaaccbf3a3b4a6f6e0ef49152ae2.zip seabios-hppa-b33e31d17b42eaaccbf3a3b4a6f6e0ef49152ae2.tar.gz seabios-hppa-b33e31d17b42eaaccbf3a3b4a6f6e0ef49152ae2.tar.bz2 |
xhci: Merge xhci_send_control with xhci_send_bulk
Merge both the control and bulk pipe sending functions into one new
function: xhci_send_pipe(). This makes the xhci interface similar to
the other usb drivers.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/hw/usb.c')
-rw-r--r-- | src/hw/usb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hw/usb.c b/src/hw/usb.c index 053440c..a262a98 100644 --- a/src/hw/usb.c +++ b/src/hw/usb.c @@ -59,7 +59,7 @@ usb_send_control(struct usb_pipe *pipe, int dir, const void *cmd, int cmdsize case USB_TYPE_EHCI: return ehci_send_pipe(pipe, dir, cmd, cmdsize, data, datasize); case USB_TYPE_XHCI: - return xhci_send_control(pipe, dir, cmd, cmdsize, data, datasize); + return xhci_send_pipe(pipe, dir, cmd, cmdsize, data, datasize); } } @@ -79,7 +79,7 @@ usb_send_bulk(struct usb_pipe *pipe_fl, int dir, void *data, int datasize) case USB_TYPE_XHCI: if (MODESEGMENT) return -1; - return xhci_send_bulk(pipe_fl, dir, data, datasize); + return xhci_send_pipe(pipe_fl, dir, NULL, 0, data, datasize); } } |