]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Bus/Usb/UsbBusPei/HubPeim.h
MdeModulePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdeModulePkg / Bus / Usb / UsbBusPei / HubPeim.h
index 273a26c1aeb452714878c8e52128c6caf7a832d2..a78a1652ff4a016014ee6a021837b4bc9822c4c5 100644 (file)
@@ -1,16 +1,9 @@
 /** @file\r
 Constants definitions for Usb Hub Peim\r
 \r
-Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
-  \r
-This program and the accompanying materials\r
-are licensed and made available under the terms and conditions\r
-of the BSD License which accompanies this distribution.  The\r
-full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\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
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 \r
@@ -80,6 +73,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #define USB_RT_HUB        (USB_TYPE_CLASS | USB_RECIP_DEVICE)\r
 #define USB_RT_PORT       (USB_TYPE_CLASS | USB_RECIP_OTHER)\r
 \r
+#define USB_HUB_REQ_SET_DEPTH               12\r
+\r
 #define MAXBYTES  8\r
 #pragma pack(1)\r
 //\r
@@ -143,24 +138,6 @@ PeiHubSetPortFeature (
   IN  UINT8                 Value\r
   );\r
 \r
-/**\r
-  Set specified feature to a given hub.\r
-\r
-  @param  PeiServices   General-purpose services that are available to every PEIM.\r
-  @param  UsbIoPpi      Indicates the PEI_USB_IO_PPI instance.\r
-  @param  Value         New feature value.\r
-\r
-  @retval EFI_SUCCESS       Port feature is set successfully.\r
-  @retval EFI_DEVICE_ERROR  Cannot set the port feature due to a hardware error.\r
-  @retval Others            Other failure occurs.\r
-\r
-**/\r
-EFI_STATUS\r
-PeiHubSetHubFeature (\r
-  IN EFI_PEI_SERVICES       **PeiServices,\r
-  IN PEI_USB_IO_PPI         *UsbIoPpi,\r
-  IN  UINT8                 Value\r
-  );\r
 \r
 /**\r
   Get a given hub status.\r
@@ -225,6 +202,7 @@ PeiHubClearHubFeature (
   Get a given hub descriptor.\r
 \r
   @param  PeiServices    General-purpose services that are available to every PEIM.\r
+  @param  PeiUsbDevice   Indicates the hub controller device.\r
   @param  UsbIoPpi       Indicates the PEI_USB_IO_PPI instance.\r
   @param  DescriptorSize The length of Hub Descriptor buffer.\r
   @param  HubDescriptor  Caller allocated buffer to store the hub descriptor if\r
@@ -238,6 +216,7 @@ PeiHubClearHubFeature (
 EFI_STATUS\r
 PeiGetHubDescriptor (\r
   IN EFI_PEI_SERVICES         **PeiServices,\r
+  IN PEI_USB_DEVICE           *PeiUsbDevice,\r
   IN PEI_USB_IO_PPI           *UsbIoPpi,\r
   IN UINTN                    DescriptorSize,\r
   OUT EFI_USB_HUB_DESCRIPTOR  *HubDescriptor\r