TianoCore EDK2 master
Loading...
Searching...
No Matches
PeiUsbLib.c File Reference
#include "UsbPeim.h"
#include "PeiUsbLib.h"

Go to the source code of this file.

Functions

EFI_STATUS PeiUsbClearDeviceFeature (IN EFI_PEI_SERVICES **PeiServices, IN PEI_USB_IO_PPI *UsbIoPpi, IN EFI_USB_RECIPIENT Recipient, IN UINT16 Value, IN UINT16 Target)
 
EFI_STATUS PeiUsbClearEndpointHalt (IN EFI_PEI_SERVICES **PeiServices, IN PEI_USB_IO_PPI *UsbIoPpi, IN UINT8 EndpointAddress)
 

Detailed Description

Common Library for PEI USB.

Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file PeiUsbLib.c.

Function Documentation

◆ PeiUsbClearDeviceFeature()

EFI_STATUS PeiUsbClearDeviceFeature ( IN EFI_PEI_SERVICES **  PeiServices,
IN PEI_USB_IO_PPI UsbIoPpi,
IN EFI_USB_RECIPIENT  Recipient,
IN UINT16  Value,
IN UINT16  Target 
)

Clear a given usb feature.

Parameters
PeiServicesGeneral-purpose services that are available to every PEIM.
UsbIoPpiIndicates the PEI_USB_IO_PPI instance.
RecipientThe recipient of ClearFeature Request, should be one of Device/Interface/Endpoint.
ValueRequest Value.
TargetRequest Index.
Return values
EFI_SUCCESSUsb feature is cleared successfully.
EFI_DEVICE_ERRORCannot clear the usb feature due to a hardware error.
OthersOther failure occurs.

Definition at line 28 of file PeiUsbLib.c.

◆ PeiUsbClearEndpointHalt()

EFI_STATUS PeiUsbClearEndpointHalt ( IN EFI_PEI_SERVICES **  PeiServices,
IN PEI_USB_IO_PPI UsbIoPpi,
IN UINT8  EndpointAddress 
)

Clear Endpoint Halt.

Parameters
PeiServicesGeneral-purpose services that are available to every PEIM.
UsbIoPpiIndicates the PEI_USB_IO_PPI instance.
EndpointAddressThe endpoint address.
Return values
EFI_SUCCESSEndpoint halt is cleared successfully.
EFI_DEVICE_ERRORCannot clear the endpoint halt status due to a hardware error.
OthersOther failure occurs.

Definition at line 83 of file PeiUsbLib.c.