X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FBus%2FUsb%2FUsbBusPei%2FHubPeim.c;fp=MdeModulePkg%2FBus%2FUsb%2FUsbBusPei%2FHubPeim.c;h=5607c65b1330318934f9b2dbac23d0b69a87d0a5;hp=806602511c6fba2f20409655bbd271ed3c5c3a5f;hb=0ffa23c0f413fef1b1b35bac3ad328dcd20eafab;hpb=880cc3ebefa8bb126991c65dd2be916dab30d382 diff --git a/MdeModulePkg/Bus/Usb/UsbBusPei/HubPeim.c b/MdeModulePkg/Bus/Usb/UsbBusPei/HubPeim.c index 806602511c..5607c65b13 100644 --- a/MdeModulePkg/Bus/Usb/UsbBusPei/HubPeim.c +++ b/MdeModulePkg/Bus/Usb/UsbBusPei/HubPeim.c @@ -193,46 +193,7 @@ PeiHubGetHubStatus ( ); } -/** - Set specified feature to a given hub. - - @param PeiServices General-purpose services that are available to every PEIM. - @param UsbIoPpi Indicates the PEI_USB_IO_PPI instance. - @param Value New feature value. - - @retval EFI_SUCCESS Port feature is set successfully. - @retval EFI_DEVICE_ERROR Cannot set the port feature due to a hardware error. - @retval Others Other failure occurs. - -**/ -EFI_STATUS -PeiHubSetHubFeature ( - IN EFI_PEI_SERVICES **PeiServices, - IN PEI_USB_IO_PPI *UsbIoPpi, - IN UINT8 Value - ) -{ - EFI_USB_DEVICE_REQUEST DeviceRequest; - ZeroMem (&DeviceRequest, sizeof (EFI_USB_DEVICE_REQUEST)); - - // - // Fill Device request packet - // - DeviceRequest.RequestType = USB_HUB_SET_HUB_FEATURE_REQ_TYPE; - DeviceRequest.Request = USB_HUB_SET_HUB_FEATURE; - DeviceRequest.Value = Value; - - return UsbIoPpi->UsbControlTransfer ( - PeiServices, - UsbIoPpi, - &DeviceRequest, - EfiUsbNoData, - PcdGet32 (PcdUsbTransferTimeoutValue), - NULL, - 0 - ); -} /** Clear specified feature on a given hub.