/** @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
#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
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
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
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