]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Rename UsbLib to UefiUsbLib
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 13 Nov 2008 08:36:51 +0000 (08:36 +0000)
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 13 Nov 2008 08:36:51 +0000 (08:36 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6499 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Include/Library/UefiUsbLib.h [new file with mode: 0644]
MdePkg/Include/Library/UsbLib.h [deleted file]

diff --git a/MdePkg/Include/Library/UefiUsbLib.h b/MdePkg/Include/Library/UefiUsbLib.h
new file mode 100644 (file)
index 0000000..ad48218
--- /dev/null
@@ -0,0 +1,427 @@
+/** @file\r
+  Common Dxe Libarary  for USB.\r
+\r
+  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  All rights reserved. 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
+  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
+\r
+\r
+#ifndef __USB_DXE_LIB_H__\r
+#define __USB_DXE_LIB_H__\r
+\r
+#include <Protocol/UsbIo.h>\r
+\r
+///\r
+/// define the timeout time as 3ms\r
+///\r
+#define TIMEOUT_VALUE 3 * 1000\r
+\r
+/**\r
+  Get Hid Descriptor.\r
+\r
+  @param  UsbIo             A pointer to EFI_USB_IO_PROTOCOL.\r
+  @param  InterfaceNum      Hid interface number.\r
+  @param  HidDescriptor     Caller allocated buffer to store Usb hid descriptor if\r
+                            successfully returned.\r
+\r
+  @return Status of getting HID descriptor through USB I/O\r
+          protocol's UsbControlTransfer().\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+UsbGetHidDescriptor (\r
+  IN  EFI_USB_IO_PROTOCOL        *UsbIo,\r
+  IN  UINT8                      InterfaceNum,\r
+  OUT EFI_USB_HID_DESCRIPTOR     *HidDescriptor\r
+  );\r
+\r
+\r
+/**\r
+  get Report Class descriptor.\r
+\r
+  @param  UsbIo             A pointer to EFI_USB_IO_PROTOCOL.\r
+  @param  InterfaceNum      Report interface number.\r
+  @param  DescriptorSize    Length of DescriptorBuffer.\r
+  @param  DescriptorBuffer  Caller allocated buffer to store Usb report descriptor\r
+                            if successfully returned.\r
+\r
+  @return Status of getting Report Class descriptor through USB\r
+          I/O protocol's UsbControlTransfer().\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+UsbGetReportDescriptor (\r
+  IN  EFI_USB_IO_PROTOCOL     *UsbIo,\r
+  IN  UINT8                   InterfaceNum,\r
+  IN  UINT16                  DescriptorSize,\r
+  OUT UINT8                   *DescriptorBuffer\r
+  );\r
+\r
+/**\r
+  Get Hid Protocol Request.\r
+\r
+  @param  UsbIo             A pointer to EFI_USB_IO_PROTOCOL.\r
+  @param  Interface         Which interface the caller wants to get protocol.\r
+  @param  Protocol          Protocol value returned.\r
+\r
+  @return Status of getting Protocol Request through USB I/O\r
+          protocol's UsbControlTransfer().\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+UsbGetProtocolRequest (\r
+  IN EFI_USB_IO_PROTOCOL     *UsbIo,\r
+  IN UINT8                   Interface,\r
+  IN UINT8                   *Protocol\r
+  );\r
+\r
+/**\r
+  Set Hid Protocol Request.\r
+\r
+  @param  UsbIo             A pointer to EFI_USB_IO_PROTOCOL.\r
+  @param  Interface         Which interface the caller wants to set protocol.\r
+  @param  Protocol          Protocol value the caller wants to set.\r
+\r
+  @return Status of setting Protocol Request through USB I/O\r
+          protocol's UsbControlTransfer().\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+UsbSetProtocolRequest (\r
+  IN EFI_USB_IO_PROTOCOL     *UsbIo,\r
+  IN UINT8                   Interface,\r
+  IN UINT8                   Protocol\r
+  );\r
+\r
+/**\r
+  Set Idel request.\r
+\r
+  @param  UsbIo             A pointer to EFI_USB_IO_PROTOCOL.\r
+  @param  Interface         Which interface the caller wants to set.\r
+  @param  ReportId          Which report the caller wants to set.\r
+  @param  Duration          Idle rate the caller wants to set.\r
+\r
+  @return Status of setting IDLE Request through USB I/O\r
+          protocol's UsbControlTransfer().\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+UsbSetIdleRequest (\r
+  IN EFI_USB_IO_PROTOCOL     *UsbIo,\r
+  IN UINT8                   Interface,\r
+  IN UINT8                   ReportId,\r
+  IN UINT8                   Duration\r
+  );\r
+\r
+/**\r
+  Get Idel request.\r
+\r
+  @param  UsbIo             A pointer to EFI_USB_IO_PROTOCOL.\r
+  @param  Interface         Which interface the caller wants to get.\r
+  @param  ReportId          Which report the caller wants to get.\r
+  @param  Duration          Idle rate the caller wants to get.\r
+\r
+  @return Status of getting IDLE Request through USB I/O\r
+          protocol's UsbControlTransfer().\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+UsbGetIdleRequest (\r
+  IN  EFI_USB_IO_PROTOCOL     *UsbIo,\r
+  IN  UINT8                   Interface,\r
+  IN  UINT8                   ReportId,\r
+  OUT UINT8                   *Duration\r
+  );\r
+\r
+/**\r
+  Hid Set Report request.\r
+\r
+  @param  UsbIo             A pointer to EFI_USB_IO_PROTOCOL.\r
+  @param  Interface         Which interface the caller wants to set.\r
+  @param  ReportId          Which report the caller wants to set.\r
+  @param  ReportType        Type of report.\r
+  @param  ReportLen         Length of report descriptor.\r
+  @param  Report            Report Descriptor buffer.\r
+\r
+  @return Status of setting Report Request through USB I/O\r
+          protocol's UsbControlTransfer().\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+UsbSetReportRequest (\r
+  IN EFI_USB_IO_PROTOCOL     *UsbIo,\r
+  IN UINT8                   Interface,\r
+  IN UINT8                   ReportId,\r
+  IN UINT8                   ReportType,\r
+  IN UINT16                  ReportLen,\r
+  IN UINT8                   *Report\r
+  );\r
+\r
+/**\r
+  Hid Set Report request.\r
+\r
+  @param  UsbIo             A pointer to EFI_USB_IO_PROTOCOL.\r
+  @param  Interface         Which interface the caller wants to set.\r
+  @param  ReportId          Which report the caller wants to set.\r
+  @param  ReportType        Type of report.\r
+  @param  ReportLen         Length of report descriptor.\r
+  @param  Report            Caller allocated buffer to store Report Descriptor.\r
+\r
+  @return Status of getting Report Request through USB I/O\r
+          protocol's UsbControlTransfer().\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+UsbGetReportRequest (\r
+  IN EFI_USB_IO_PROTOCOL     *UsbIo,\r
+  IN UINT8                   Interface,\r
+  IN UINT8                   ReportId,\r
+  IN UINT8                   ReportType,\r
+  IN UINT16                  ReportLen,\r
+  IN UINT8                   *Report\r
+  );\r
+\r
+/**\r
+  Usb Get Descriptor.\r
+\r
+  @param  UsbIo                  A pointer to EFI_USB_IO_PROTOCOL.\r
+  @param  Value                  Device Request Value.\r
+  @param  Index                  Device Request Index.\r
+  @param  DescriptorLength       Descriptor Length.\r
+  @param  Descriptor             Descriptor buffer to contain result.\r
+  @param  Status                 Transfer Status.\r
+\r
+  @retval EFI_INVALID_PARAMETER  Parameter is error.\r
+  @retval EFI_SUCCESS            Success.\r
+  @retval EFI_TIMEOUT            Device has no response.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+UsbGetDescriptor (\r
+  IN  EFI_USB_IO_PROTOCOL     *UsbIo,\r
+  IN  UINT16                  Value,\r
+  IN  UINT16                  Index,\r
+  IN  UINT16                  DescriptorLength,\r
+  OUT VOID                    *Descriptor,\r
+  OUT UINT32                  *Status\r
+  );\r
+\r
+/**\r
+  Usb Set Descriptor.\r
+\r
+  @param  UsbIo                  A pointer to EFI_USB_IO_PROTOCOL.\r
+  @param  Value                  Device Request Value.\r
+  @param  Index                  Device Request Index.\r
+  @param  DescriptorLength       Descriptor Length.\r
+  @param  Descriptor             Descriptor buffer to set.\r
+  @param  Status                 Transfer Status.\r
+\r
+  @retval EFI_INVALID_PARAMETER  Parameter is error.\r
+  @retval EFI_SUCCESS            Success.\r
+  @retval EFI_TIMEOUT            Device has no response.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+UsbSetDescriptor (\r
+  IN  EFI_USB_IO_PROTOCOL     *UsbIo,\r
+  IN  UINT16                  Value,\r
+  IN  UINT16                  Index,\r
+  IN  UINT16                  DescriptorLength,\r
+  IN  VOID                    *Descriptor,\r
+  OUT UINT32                  *Status\r
+  );\r
+\r
+/**\r
+  Usb Get Device Interface.\r
+\r
+  @param  UsbIo                  A pointer to EFI_USB_IO_PROTOCOL.\r
+  @param  Index                  Interface index value.\r
+  @param  AltSetting             Alternate setting.\r
+  @param  Status                 Trasnsfer status.\r
+\r
+  @retval EFI_INVALID_PARAMETER  Parameter is error.\r
+  @retval EFI_SUCCESS            Success.\r
+  @retval EFI_TIMEOUT            Device has no response.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+UsbGetInterface (\r
+  IN  EFI_USB_IO_PROTOCOL     *UsbIo,\r
+  IN  UINT16                  Index,\r
+  OUT UINT8                   *AltSetting,\r
+  OUT UINT32                  *Status\r
+  );\r
+\r
+/**\r
+  Usb Set Device Interface.\r
+\r
+  @param  UsbIo                  A pointer to EFI_USB_IO_PROTOCOL.\r
+  @param  InterfaceNo            Interface Number.\r
+  @param  AltSetting             Alternate setting.\r
+  @param  Status                 Trasnsfer status.\r
+\r
+  @retval EFI_INVALID_PARAMETER  Parameter is error.\r
+  @retval EFI_SUCCESS            Success.\r
+  @retval EFI_TIMEOUT            Device has no response.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+UsbSetInterface (\r
+  IN  EFI_USB_IO_PROTOCOL     *UsbIo,\r
+  IN  UINT16                  InterfaceNo,\r
+  IN  UINT16                  AltSetting,\r
+  OUT UINT32                  *Status\r
+  );\r
+\r
+/**\r
+  Usb Get Device Configuration.\r
+\r
+  @param  UsbIo                  A pointer to EFI_USB_IO_PROTOCOL.\r
+  @param  ConfigValue            Config Value.\r
+  @param  Status                 Transfer Status.\r
+\r
+  @retval EFI_INVALID_PARAMETER  Parameter is error.\r
+  @retval EFI_SUCCESS            Success.\r
+  @retval EFI_TIMEOUT            Device has no response.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+UsbGetConfiguration (\r
+  IN  EFI_USB_IO_PROTOCOL     *UsbIo,\r
+  OUT UINT8                   *ConfigValue,\r
+  OUT UINT32                  *Status\r
+  );\r
+\r
+/**\r
+  Usb Set Device Configuration.\r
+\r
+  @param  UsbIo                  A pointer to EFI_USB_IO_PROTOCOL.\r
+  @param  Value                  Configuration Value to set.\r
+  @param  Status                 Transfer status.\r
+\r
+  @retval EFI_INVALID_PARAMETER  Parameter is error.\r
+  @retval EFI_SUCCESS            Success.\r
+  @retval EFI_TIMEOUT            Device has no response.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+UsbSetConfiguration (\r
+  IN  EFI_USB_IO_PROTOCOL     *UsbIo,\r
+  IN  UINT16                  Value,\r
+  OUT UINT32                  *Status\r
+  );\r
+\r
+/**\r
+  Usb Set Device Feature.\r
+\r
+  @param  UsbIo                  A pointer to EFI_USB_IO_PROTOCOL.\r
+  @param  Recipient              Interface/Device/Endpoint.\r
+  @param  Value                  Request value.\r
+  @param  Target                 Request Index.\r
+  @param  Status                 Transfer status.\r
+\r
+  @retval EFI_INVALID_PARAMETER  Parameter is error.\r
+  @retval EFI_SUCCESS            Success.\r
+  @retval EFI_TIMEOUT            Device has no response.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+UsbSetFeature (\r
+  IN  EFI_USB_IO_PROTOCOL     *UsbIo,\r
+  IN  UINTN                   Recipient,\r
+  IN  UINT16                  Value,\r
+  IN  UINT16                  Target,\r
+  OUT UINT32                  *Status\r
+  );\r
+\r
+/**\r
+  Usb Clear Device Feature.\r
+\r
+  @param  UsbIo                  A pointer to EFI_USB_IO_PROTOCOL.\r
+  @param  Recipient              Interface/Device/Endpoint.\r
+  @param  Value                  Request value.\r
+  @param  Target                 Request Index.\r
+  @param  Status                 Transfer status.\r
+\r
+  @retval EFI_INVALID_PARAMETER  Parameter is error.\r
+  @retval EFI_SUCCESS            Success.\r
+  @retval EFI_TIMEOUT            Device has no response.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+UsbClearFeature (\r
+  IN  EFI_USB_IO_PROTOCOL     *UsbIo,\r
+  IN  UINTN                   Recipient,\r
+  IN  UINT16                  Value,\r
+  IN  UINT16                  Target,\r
+  OUT UINT32                  *Status\r
+  );\r
+\r
+/**\r
+  Usb Get Device Status.\r
+\r
+  @param  UsbIo                  A pointer to EFI_USB_IO_PROTOCOL.\r
+  @param  Recipient              Interface/Device/Endpoint.\r
+  @param  Target                 Request index.\r
+  @param  DevStatus              Device status.\r
+  @param  Status                 Transfer status.\r
+\r
+  @retval EFI_INVALID_PARAMETER  Parameter is error.\r
+  @retval EFI_SUCCESS            Success.\r
+  @retval EFI_TIMEOUT            Device has no response.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+UsbGetStatus (\r
+  IN  EFI_USB_IO_PROTOCOL     *UsbIo,\r
+  IN  UINTN                   Recipient,\r
+  IN  UINT16                  Target,\r
+  OUT UINT16                  *DevStatus,\r
+  OUT UINT32                  *Status\r
+  );\r
+\r
+/**\r
+  Clear endpoint stall.\r
+\r
+  @param  UsbIo                  A pointer to EFI_USB_IO_PROTOCOL.\r
+  @param  EndpointNo             Endpoint Number.\r
+  @param  Status                 Transfer Status.\r
+\r
+  @retval EFI_NOT_FOUND          Can't find the Endpoint.\r
+  @retval EFI_DEVICE_ERROR       Hardware error.\r
+  @retval EFI_SUCCESS            Success.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+UsbClearEndpointHalt (\r
+  IN  EFI_USB_IO_PROTOCOL     *UsbIo,\r
+  IN  UINT8                   EndpointNo,\r
+  OUT UINT32                  *Status\r
+  );\r
+\r
+#endif\r
diff --git a/MdePkg/Include/Library/UsbLib.h b/MdePkg/Include/Library/UsbLib.h
deleted file mode 100644 (file)
index ad48218..0000000
+++ /dev/null
@@ -1,427 +0,0 @@
-/** @file\r
-  Common Dxe Libarary  for USB.\r
-\r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
-  All rights reserved. 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
-  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
-\r
-\r
-#ifndef __USB_DXE_LIB_H__\r
-#define __USB_DXE_LIB_H__\r
-\r
-#include <Protocol/UsbIo.h>\r
-\r
-///\r
-/// define the timeout time as 3ms\r
-///\r
-#define TIMEOUT_VALUE 3 * 1000\r
-\r
-/**\r
-  Get Hid Descriptor.\r
-\r
-  @param  UsbIo             A pointer to EFI_USB_IO_PROTOCOL.\r
-  @param  InterfaceNum      Hid interface number.\r
-  @param  HidDescriptor     Caller allocated buffer to store Usb hid descriptor if\r
-                            successfully returned.\r
-\r
-  @return Status of getting HID descriptor through USB I/O\r
-          protocol's UsbControlTransfer().\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-UsbGetHidDescriptor (\r
-  IN  EFI_USB_IO_PROTOCOL        *UsbIo,\r
-  IN  UINT8                      InterfaceNum,\r
-  OUT EFI_USB_HID_DESCRIPTOR     *HidDescriptor\r
-  );\r
-\r
-\r
-/**\r
-  get Report Class descriptor.\r
-\r
-  @param  UsbIo             A pointer to EFI_USB_IO_PROTOCOL.\r
-  @param  InterfaceNum      Report interface number.\r
-  @param  DescriptorSize    Length of DescriptorBuffer.\r
-  @param  DescriptorBuffer  Caller allocated buffer to store Usb report descriptor\r
-                            if successfully returned.\r
-\r
-  @return Status of getting Report Class descriptor through USB\r
-          I/O protocol's UsbControlTransfer().\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-UsbGetReportDescriptor (\r
-  IN  EFI_USB_IO_PROTOCOL     *UsbIo,\r
-  IN  UINT8                   InterfaceNum,\r
-  IN  UINT16                  DescriptorSize,\r
-  OUT UINT8                   *DescriptorBuffer\r
-  );\r
-\r
-/**\r
-  Get Hid Protocol Request.\r
-\r
-  @param  UsbIo             A pointer to EFI_USB_IO_PROTOCOL.\r
-  @param  Interface         Which interface the caller wants to get protocol.\r
-  @param  Protocol          Protocol value returned.\r
-\r
-  @return Status of getting Protocol Request through USB I/O\r
-          protocol's UsbControlTransfer().\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-UsbGetProtocolRequest (\r
-  IN EFI_USB_IO_PROTOCOL     *UsbIo,\r
-  IN UINT8                   Interface,\r
-  IN UINT8                   *Protocol\r
-  );\r
-\r
-/**\r
-  Set Hid Protocol Request.\r
-\r
-  @param  UsbIo             A pointer to EFI_USB_IO_PROTOCOL.\r
-  @param  Interface         Which interface the caller wants to set protocol.\r
-  @param  Protocol          Protocol value the caller wants to set.\r
-\r
-  @return Status of setting Protocol Request through USB I/O\r
-          protocol's UsbControlTransfer().\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-UsbSetProtocolRequest (\r
-  IN EFI_USB_IO_PROTOCOL     *UsbIo,\r
-  IN UINT8                   Interface,\r
-  IN UINT8                   Protocol\r
-  );\r
-\r
-/**\r
-  Set Idel request.\r
-\r
-  @param  UsbIo             A pointer to EFI_USB_IO_PROTOCOL.\r
-  @param  Interface         Which interface the caller wants to set.\r
-  @param  ReportId          Which report the caller wants to set.\r
-  @param  Duration          Idle rate the caller wants to set.\r
-\r
-  @return Status of setting IDLE Request through USB I/O\r
-          protocol's UsbControlTransfer().\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-UsbSetIdleRequest (\r
-  IN EFI_USB_IO_PROTOCOL     *UsbIo,\r
-  IN UINT8                   Interface,\r
-  IN UINT8                   ReportId,\r
-  IN UINT8                   Duration\r
-  );\r
-\r
-/**\r
-  Get Idel request.\r
-\r
-  @param  UsbIo             A pointer to EFI_USB_IO_PROTOCOL.\r
-  @param  Interface         Which interface the caller wants to get.\r
-  @param  ReportId          Which report the caller wants to get.\r
-  @param  Duration          Idle rate the caller wants to get.\r
-\r
-  @return Status of getting IDLE Request through USB I/O\r
-          protocol's UsbControlTransfer().\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-UsbGetIdleRequest (\r
-  IN  EFI_USB_IO_PROTOCOL     *UsbIo,\r
-  IN  UINT8                   Interface,\r
-  IN  UINT8                   ReportId,\r
-  OUT UINT8                   *Duration\r
-  );\r
-\r
-/**\r
-  Hid Set Report request.\r
-\r
-  @param  UsbIo             A pointer to EFI_USB_IO_PROTOCOL.\r
-  @param  Interface         Which interface the caller wants to set.\r
-  @param  ReportId          Which report the caller wants to set.\r
-  @param  ReportType        Type of report.\r
-  @param  ReportLen         Length of report descriptor.\r
-  @param  Report            Report Descriptor buffer.\r
-\r
-  @return Status of setting Report Request through USB I/O\r
-          protocol's UsbControlTransfer().\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-UsbSetReportRequest (\r
-  IN EFI_USB_IO_PROTOCOL     *UsbIo,\r
-  IN UINT8                   Interface,\r
-  IN UINT8                   ReportId,\r
-  IN UINT8                   ReportType,\r
-  IN UINT16                  ReportLen,\r
-  IN UINT8                   *Report\r
-  );\r
-\r
-/**\r
-  Hid Set Report request.\r
-\r
-  @param  UsbIo             A pointer to EFI_USB_IO_PROTOCOL.\r
-  @param  Interface         Which interface the caller wants to set.\r
-  @param  ReportId          Which report the caller wants to set.\r
-  @param  ReportType        Type of report.\r
-  @param  ReportLen         Length of report descriptor.\r
-  @param  Report            Caller allocated buffer to store Report Descriptor.\r
-\r
-  @return Status of getting Report Request through USB I/O\r
-          protocol's UsbControlTransfer().\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-UsbGetReportRequest (\r
-  IN EFI_USB_IO_PROTOCOL     *UsbIo,\r
-  IN UINT8                   Interface,\r
-  IN UINT8                   ReportId,\r
-  IN UINT8                   ReportType,\r
-  IN UINT16                  ReportLen,\r
-  IN UINT8                   *Report\r
-  );\r
-\r
-/**\r
-  Usb Get Descriptor.\r
-\r
-  @param  UsbIo                  A pointer to EFI_USB_IO_PROTOCOL.\r
-  @param  Value                  Device Request Value.\r
-  @param  Index                  Device Request Index.\r
-  @param  DescriptorLength       Descriptor Length.\r
-  @param  Descriptor             Descriptor buffer to contain result.\r
-  @param  Status                 Transfer Status.\r
-\r
-  @retval EFI_INVALID_PARAMETER  Parameter is error.\r
-  @retval EFI_SUCCESS            Success.\r
-  @retval EFI_TIMEOUT            Device has no response.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-UsbGetDescriptor (\r
-  IN  EFI_USB_IO_PROTOCOL     *UsbIo,\r
-  IN  UINT16                  Value,\r
-  IN  UINT16                  Index,\r
-  IN  UINT16                  DescriptorLength,\r
-  OUT VOID                    *Descriptor,\r
-  OUT UINT32                  *Status\r
-  );\r
-\r
-/**\r
-  Usb Set Descriptor.\r
-\r
-  @param  UsbIo                  A pointer to EFI_USB_IO_PROTOCOL.\r
-  @param  Value                  Device Request Value.\r
-  @param  Index                  Device Request Index.\r
-  @param  DescriptorLength       Descriptor Length.\r
-  @param  Descriptor             Descriptor buffer to set.\r
-  @param  Status                 Transfer Status.\r
-\r
-  @retval EFI_INVALID_PARAMETER  Parameter is error.\r
-  @retval EFI_SUCCESS            Success.\r
-  @retval EFI_TIMEOUT            Device has no response.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-UsbSetDescriptor (\r
-  IN  EFI_USB_IO_PROTOCOL     *UsbIo,\r
-  IN  UINT16                  Value,\r
-  IN  UINT16                  Index,\r
-  IN  UINT16                  DescriptorLength,\r
-  IN  VOID                    *Descriptor,\r
-  OUT UINT32                  *Status\r
-  );\r
-\r
-/**\r
-  Usb Get Device Interface.\r
-\r
-  @param  UsbIo                  A pointer to EFI_USB_IO_PROTOCOL.\r
-  @param  Index                  Interface index value.\r
-  @param  AltSetting             Alternate setting.\r
-  @param  Status                 Trasnsfer status.\r
-\r
-  @retval EFI_INVALID_PARAMETER  Parameter is error.\r
-  @retval EFI_SUCCESS            Success.\r
-  @retval EFI_TIMEOUT            Device has no response.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-UsbGetInterface (\r
-  IN  EFI_USB_IO_PROTOCOL     *UsbIo,\r
-  IN  UINT16                  Index,\r
-  OUT UINT8                   *AltSetting,\r
-  OUT UINT32                  *Status\r
-  );\r
-\r
-/**\r
-  Usb Set Device Interface.\r
-\r
-  @param  UsbIo                  A pointer to EFI_USB_IO_PROTOCOL.\r
-  @param  InterfaceNo            Interface Number.\r
-  @param  AltSetting             Alternate setting.\r
-  @param  Status                 Trasnsfer status.\r
-\r
-  @retval EFI_INVALID_PARAMETER  Parameter is error.\r
-  @retval EFI_SUCCESS            Success.\r
-  @retval EFI_TIMEOUT            Device has no response.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-UsbSetInterface (\r
-  IN  EFI_USB_IO_PROTOCOL     *UsbIo,\r
-  IN  UINT16                  InterfaceNo,\r
-  IN  UINT16                  AltSetting,\r
-  OUT UINT32                  *Status\r
-  );\r
-\r
-/**\r
-  Usb Get Device Configuration.\r
-\r
-  @param  UsbIo                  A pointer to EFI_USB_IO_PROTOCOL.\r
-  @param  ConfigValue            Config Value.\r
-  @param  Status                 Transfer Status.\r
-\r
-  @retval EFI_INVALID_PARAMETER  Parameter is error.\r
-  @retval EFI_SUCCESS            Success.\r
-  @retval EFI_TIMEOUT            Device has no response.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-UsbGetConfiguration (\r
-  IN  EFI_USB_IO_PROTOCOL     *UsbIo,\r
-  OUT UINT8                   *ConfigValue,\r
-  OUT UINT32                  *Status\r
-  );\r
-\r
-/**\r
-  Usb Set Device Configuration.\r
-\r
-  @param  UsbIo                  A pointer to EFI_USB_IO_PROTOCOL.\r
-  @param  Value                  Configuration Value to set.\r
-  @param  Status                 Transfer status.\r
-\r
-  @retval EFI_INVALID_PARAMETER  Parameter is error.\r
-  @retval EFI_SUCCESS            Success.\r
-  @retval EFI_TIMEOUT            Device has no response.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-UsbSetConfiguration (\r
-  IN  EFI_USB_IO_PROTOCOL     *UsbIo,\r
-  IN  UINT16                  Value,\r
-  OUT UINT32                  *Status\r
-  );\r
-\r
-/**\r
-  Usb Set Device Feature.\r
-\r
-  @param  UsbIo                  A pointer to EFI_USB_IO_PROTOCOL.\r
-  @param  Recipient              Interface/Device/Endpoint.\r
-  @param  Value                  Request value.\r
-  @param  Target                 Request Index.\r
-  @param  Status                 Transfer status.\r
-\r
-  @retval EFI_INVALID_PARAMETER  Parameter is error.\r
-  @retval EFI_SUCCESS            Success.\r
-  @retval EFI_TIMEOUT            Device has no response.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-UsbSetFeature (\r
-  IN  EFI_USB_IO_PROTOCOL     *UsbIo,\r
-  IN  UINTN                   Recipient,\r
-  IN  UINT16                  Value,\r
-  IN  UINT16                  Target,\r
-  OUT UINT32                  *Status\r
-  );\r
-\r
-/**\r
-  Usb Clear Device Feature.\r
-\r
-  @param  UsbIo                  A pointer to EFI_USB_IO_PROTOCOL.\r
-  @param  Recipient              Interface/Device/Endpoint.\r
-  @param  Value                  Request value.\r
-  @param  Target                 Request Index.\r
-  @param  Status                 Transfer status.\r
-\r
-  @retval EFI_INVALID_PARAMETER  Parameter is error.\r
-  @retval EFI_SUCCESS            Success.\r
-  @retval EFI_TIMEOUT            Device has no response.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-UsbClearFeature (\r
-  IN  EFI_USB_IO_PROTOCOL     *UsbIo,\r
-  IN  UINTN                   Recipient,\r
-  IN  UINT16                  Value,\r
-  IN  UINT16                  Target,\r
-  OUT UINT32                  *Status\r
-  );\r
-\r
-/**\r
-  Usb Get Device Status.\r
-\r
-  @param  UsbIo                  A pointer to EFI_USB_IO_PROTOCOL.\r
-  @param  Recipient              Interface/Device/Endpoint.\r
-  @param  Target                 Request index.\r
-  @param  DevStatus              Device status.\r
-  @param  Status                 Transfer status.\r
-\r
-  @retval EFI_INVALID_PARAMETER  Parameter is error.\r
-  @retval EFI_SUCCESS            Success.\r
-  @retval EFI_TIMEOUT            Device has no response.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-UsbGetStatus (\r
-  IN  EFI_USB_IO_PROTOCOL     *UsbIo,\r
-  IN  UINTN                   Recipient,\r
-  IN  UINT16                  Target,\r
-  OUT UINT16                  *DevStatus,\r
-  OUT UINT32                  *Status\r
-  );\r
-\r
-/**\r
-  Clear endpoint stall.\r
-\r
-  @param  UsbIo                  A pointer to EFI_USB_IO_PROTOCOL.\r
-  @param  EndpointNo             Endpoint Number.\r
-  @param  Status                 Transfer Status.\r
-\r
-  @retval EFI_NOT_FOUND          Can't find the Endpoint.\r
-  @retval EFI_DEVICE_ERROR       Hardware error.\r
-  @retval EFI_SUCCESS            Success.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-UsbClearEndpointHalt (\r
-  IN  EFI_USB_IO_PROTOCOL     *UsbIo,\r
-  IN  UINT8                   EndpointNo,\r
-  OUT UINT32                  *Status\r
-  );\r
-\r
-#endif\r