\r
The library provides USB HID Class standard and specific requests defined\r
in USB HID Firmware Specification 7 section : Requests.\r
- \r
- Copyright (c) 2004 - 2008, Intel Corporation\r
- All rights reserved. This program and the accompanying materials\r
+\r
+ Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>\r
+ This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
- \r
+ http://opensource.org/licenses/bsd-license.php.\r
+\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
\r
#include "UefiUsbLibInternal.h"\r
\r
-// \r
+//\r
// Hid RequestType Bits specifying characteristics of request.\r
// Valid values are 10100001b (0xa1) or 00100001b (0x21).\r
// The following description:\r
\r
@param UsbIo A pointer to the USB I/O Protocol instance for the specific USB target.\r
@param Interface The index of the HID interface on the USB target.\r
- @param HidDescriptor Pointer to the USB HID descriptor that was retrieved from\r
+ @param HidDescriptor The pointer to the USB HID descriptor that was retrieved from\r
the specified USB target and interface. Type EFI_USB_HID_DESCRIPTOR\r
is defined in the MDE Package Industry Standard include file Usb.h.\r
\r
Request.Request = USB_REQ_GET_DESCRIPTOR;\r
Request.Value = (UINT16) (USB_DESC_TYPE_HID << 8);\r
Request.Index = Interface;\r
- Request.Length = sizeof (EFI_USB_HID_DESCRIPTOR);\r
+ Request.Length = (UINT16) sizeof (EFI_USB_HID_DESCRIPTOR);\r
\r
Result = UsbIo->UsbControlTransfer (\r
UsbIo,\r
EFI_USB_DEVICE_REQUEST Request;\r
\r
ASSERT (UsbIo != NULL);\r
- \r
+\r
//\r
// Fill Device request packet\r
//\r
UINT32 Status;\r
EFI_STATUS Result;\r
EFI_USB_DEVICE_REQUEST Request;\r
- \r
+\r
ASSERT (UsbIo != NULL);\r
ASSERT (Duration != NULL);\r
//\r