The library provides the USB Standard Device Requests defined \r
in Usb specification 9.4 section.\r
\r
- Copyright (c) 2004 - 2008, Intel Corporation All rights\r
- reserved. This program and the accompanying materials are\r
+ Copyright (c) 2004 - 2008, Intel Corporation. All rights reserved.<BR>\r
+ This program and the accompanying materials are\r
licensed and made available under the terms and conditions of\r
the BSD License which accompanies this distribution. The full\r
text of the license may be found at\r
\r
@retval EFI_SUCCESS The request executed successfully.\r
@retval EFI_OUT_OF_RESOURCES The request could not be completed because the\r
- buffer specifed by DescriptorLength and Descriptor\r
+ buffer specified by DescriptorLength and Descriptor\r
is not large enough to hold the result of the request.\r
@retval EFI_TIMEOUT A timeout occurred executing the request.\r
@retval EFI_DEVICE_ERROR The request failed due to a device error. The transfer\r
ASSERT (AlternateSetting != NULL);\r
ASSERT (Status != NULL);\r
\r
+ *AlternateSetting = 0;\r
+\r
ZeroMem (&DevReq, sizeof (EFI_USB_DEVICE_REQUEST));\r
\r
DevReq.RequestType = USB_DEV_GET_INTERFACE_REQ_TYPE;\r
EfiUsbDataIn,\r
PcdGet32 (PcdUsbTransferTimeoutValue),\r
AlternateSetting,\r
- 2,\r
+ 1,\r
Status\r
);\r
}\r
ASSERT (ConfigurationValue != NULL);\r
ASSERT (Status != NULL);\r
\r
+ *ConfigurationValue = 0;\r
+\r
ZeroMem (&DevReq, sizeof (EFI_USB_DEVICE_REQUEST));\r
\r
DevReq.RequestType = USB_DEV_GET_CONFIGURATION_REQ_TYPE;\r
EfiUsbDataIn,\r
PcdGet32 (PcdUsbTransferTimeoutValue),\r
ConfigurationValue,\r
- 2,\r
+ 1,\r
Status\r
);\r
}\r