aboutsummaryrefslogtreecommitdiffstats
path: root/src/hw/usb-ehci.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2014-12-31 17:41:14 -0500
committerKevin O'Connor <kevin@koconnor.net>2015-01-07 10:13:46 -0500
commit2891a8323d4397a912123c066165ef9297b51607 (patch)
treeabf9dfba3fb232cb62bd5f46cd2a381e7a0f5ae0 /src/hw/usb-ehci.c
parent65034a41325937681ea5c5db510b3193c129b62b (diff)
downloadseabios-2891a8323d4397a912123c066165ef9297b51607.tar.gz
usb: Control transfers always have an 8 byte command size
There is no need to pass 'cmdsize' to the usb drivers as the cmdsize is always 8 bytes. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/hw/usb-ehci.c')
-rw-r--r--src/hw/usb-ehci.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hw/usb-ehci.c b/src/hw/usb-ehci.c
index a7383166..41f8579c 100644
--- a/src/hw/usb-ehci.c
+++ b/src/hw/usb-ehci.c
@@ -542,7 +542,7 @@ ehci_fill_tdbuf(struct ehci_qtd *td, u32 dest, int transfer)
#define STACKQTDS 6
int
-ehci_send_pipe(struct usb_pipe *p, int dir, const void *cmd, int cmdsize
+ehci_send_pipe(struct usb_pipe *p, int dir, const void *cmd
, void *data, int datasize)
{
if (! CONFIG_USB_EHCI)
@@ -563,9 +563,9 @@ ehci_send_pipe(struct usb_pipe *p, int dir, const void *cmd, int cmdsize
// Send setup pid on control transfers
td->qtd_next = (u32)MAKE_FLATPTR(GET_SEG(SS), td+1);
td->alt_next = EHCI_PTR_TERM;
- td->token = (ehci_explen(cmdsize) | QTD_STS_ACTIVE
+ td->token = (ehci_explen(USB_CONTROL_SETUP_SIZE) | QTD_STS_ACTIVE
| QTD_PID_SETUP | ehci_maxerr(3));
- ehci_fill_tdbuf(td, (u32)cmd, cmdsize);
+ ehci_fill_tdbuf(td, (u32)cmd, USB_CONTROL_SETUP_SIZE);
td++;
toggle = QTD_TOGGLE;
}