aboutsummaryrefslogtreecommitdiff
path: root/src/usb-hub.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2010-03-09 19:43:52 -0500
committerKevin O'Connor <kevin@koconnor.net>2010-03-09 20:00:28 -0500
commit190cc622a2f57ca21d8ffc85be94c32fb518b04d (patch)
tree440314fb21fd62aea4a050335beea2b0e452f538 /src/usb-hub.c
parent0770d676b392dc6c79bf4ab560b7171987b8d025 (diff)
downloadseabios-hppa-190cc622a2f57ca21d8ffc85be94c32fb518b04d.zip
seabios-hppa-190cc622a2f57ca21d8ffc85be94c32fb518b04d.tar.gz
seabios-hppa-190cc622a2f57ca21d8ffc85be94c32fb518b04d.tar.bz2
Add USB EHCI controller support.
Initial support for EHCI high-speed USB controllers.
Diffstat (limited to 'src/usb-hub.c')
-rw-r--r--src/usb-hub.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/usb-hub.c b/src/usb-hub.c
index ce40099..9effbc3 100644
--- a/src/usb-hub.c
+++ b/src/usb-hub.c
@@ -126,7 +126,8 @@ init_hub_port(void *data)
// Set address of port
struct usb_pipe *pipe = usb_set_address(
- hub->cntl, !!(sts.wPortStatus & USB_PORT_STAT_LOW_SPEED));
+ hub, port, ((sts.wPortStatus & USB_PORT_STAT_SPEED_MASK)
+ >> USB_PORT_STAT_SPEED_SHIFT));
if (!pipe)
goto resetfail;
mutex_unlock(&hub->cntl->resetlock);