]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/UefiUsbLib/Hid.c
Update comments in BaseExtractGuidedSectionLib library instance to say its used memor...
[mirror_edk2.git] / MdePkg / Library / UefiUsbLib / Hid.c
index 153c03b7b0c720229f78cd0df0b9697a950e3e07..29d4e9dcf76698ac23639485c5c99ce716787944 100644 (file)
@@ -3,11 +3,11 @@
   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
+  Copyright (c) 2004 - 2010, 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
+  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
@@ -39,7 +39,7 @@
 \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
@@ -67,7 +67,7 @@ UsbGetHidDescriptor (
   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
@@ -163,8 +163,8 @@ UsbGetReportDescriptor (
 EFI_STATUS\r
 EFIAPI\r
 UsbGetProtocolRequest (\r
-  IN  EFI_USB_IO_PROTOCOL     *UsbIo,\r
-  IN  UINT8                   Interface,\r
+  IN EFI_USB_IO_PROTOCOL     *UsbIo,\r
+  IN UINT8                   Interface,\r
   OUT UINT8                   *Protocol\r
   )\r
 {\r
@@ -441,7 +441,7 @@ UsbSetReportRequest (
 \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 ReportLength and Report is not\r
+                                 buffer specified by ReportLength and Report is not\r
                                  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.\r