Date: Wed, 11 Jun 2008 07:35:22 GMT From: Weongyo Jeong <weongyo@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 143279 for review Message-ID: <200806110735.m5B7ZM4p055895@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=143279 Change 143279 by weongyo@weongyo_ws on 2008/06/11 07:35:08 handle USBD_CANCELLED which is a value returned by USB framework. Without this we were always returned USBD_STATUS_NOT_SUPPORTED which is the incorrect return value. Affected files ... .. //depot/projects/ndisusb/sys/compat/ndis/subr_usbd.c#4 edit .. //depot/projects/ndisusb/sys/compat/ndis/usbd_var.h#3 edit Differences ... ==== //depot/projects/ndisusb/sys/compat/ndis/subr_usbd.c#4 (text+ko) ==== @@ -245,6 +245,8 @@ return (STATUS_NO_MEMORY); case USBD_STATUS_REQUEST_FAILED: return (STATUS_NOT_SUPPORTED); + case USBD_STATUS_CANCELED: + return (STATUS_CANCELLED); default: break; } @@ -276,6 +278,8 @@ case USBD_TOO_DEEP: case USBD_NO_POWER: return (USBD_STATUS_DEVICE_GONE); + case USBD_CANCELLED: + return (USBD_STATUS_CANCELED); default: break; } ==== //depot/projects/ndisusb/sys/compat/ndis/usbd_var.h#3 (text+ko) ==== @@ -50,6 +50,7 @@ #define URB_FUNCTION_VENDOR_OTHER 0x0020 #define USBD_STATUS_SUCCESS 0x00000000 +#define USBD_STATUS_CANCELED 0x00010000 #define USBD_STATUS_PENDING 0x40000000 #define USBD_STATUS_NO_MEMORY 0x80000100 #define USBD_STATUS_REQUEST_FAILED 0x80000500
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200806110735.m5B7ZM4p055895>