summaryrefslogtreecommitdiffstats
path: root/src/drivers/usb
diff options
context:
space:
mode:
authorMichael Brown2015-05-11 15:56:46 +0200
committerMichael Brown2015-05-11 15:56:46 +0200
commit0eaa3a34bffde2afb0b8f5f5e3b6ad6820564007 (patch)
tree59599531611c5bec20348ed47f830d988ac56c8e /src/drivers/usb
parent[ipv6] Disambiguate received ICMPv6 errors (diff)
downloadipxe-0eaa3a34bffde2afb0b8f5f5e3b6ad6820564007.tar.gz
ipxe-0eaa3a34bffde2afb0b8f5f5e3b6ad6820564007.tar.xz
ipxe-0eaa3a34bffde2afb0b8f5f5e3b6ad6820564007.zip
[usb] Add USB_INTERRUPT_OUT internal type
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/drivers/usb')
-rw-r--r--src/drivers/usb/usbhub.c2
-rw-r--r--src/drivers/usb/usbnet.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/usb/usbhub.c b/src/drivers/usb/usbhub.c
index 8b5fa9c4..bf2a2000 100644
--- a/src/drivers/usb/usbhub.c
+++ b/src/drivers/usb/usbhub.c
@@ -425,7 +425,7 @@ static int hub_probe ( struct usb_function *func,
/* Locate interrupt endpoint descriptor */
if ( ( rc = usb_endpoint_described ( &hubdev->intr, config, interface,
- USB_INTERRUPT, 0 ) ) != 0 ) {
+ USB_INTERRUPT_IN, 0 ) ) != 0 ) {
DBGC ( hubdev, "HUB %s could not describe interrupt endpoint: "
"%s\n", hubdev->name, strerror ( rc ) );
goto err_endpoint;
diff --git a/src/drivers/usb/usbnet.c b/src/drivers/usb/usbnet.c
index 60f58025..b92336d0 100644
--- a/src/drivers/usb/usbnet.c
+++ b/src/drivers/usb/usbnet.c
@@ -185,7 +185,7 @@ static int usbnet_comms_describe ( struct usbnet_device *usbnet,
/* Describe interrupt endpoint */
if ( ( rc = usb_endpoint_described ( &usbnet->intr, config,
- desc, USB_INTERRUPT,
+ desc, USB_INTERRUPT_IN,
0 ) ) != 0 )
continue;