TianoCore EDK2 master
Loading...
Searching...
No Matches
UfsHostControllerPlatformPpi.h File Reference

Go to the source code of this file.

Data Structures

struct  EDKII_UFS_HC_INFO
 
struct  _EDKII_UFS_HC_PLATFORM_PPI
 

Macros

#define EDKII_UFS_HC_PLATFORM_PPI_VERSION   1
 

Typedefs

typedef struct _EDKII_UFS_HC_PLATFORM_PPI EDKII_UFS_HC_PLATFORM_PPI
 
typedef EFI_STATUS(EFIAPI * EDKII_UFS_HC_PLATFORM_OVERRIDE_HC_INFO) (IN EFI_HANDLE ControllerHandle, IN OUT EDKII_UFS_HC_INFO *HcInfo)
 
typedef EFI_STATUS(EFIAPI * EDKII_UFS_HC_PLATFORM_PEI_CALLBACK) (IN UINTN *UfsHcBaseAddr, IN EDKII_UFS_HC_PLATFORM_CALLBACK_PHASE CallbackPhase)
 

Enumerations

enum  EDKII_UFS_HC_PLATFORM_CALLBACK_PHASE {
  EdkiiUfsHcPreHce , EdkiiUfsHcPostHce , EdkiiUfsHcPreLinkStartup , EdkiiUfsHcPostLinkStartup ,
  EdkiiUfsHcPreHce , EdkiiUfsHcPostHce , EdkiiUfsHcPreLinkStartup , EdkiiUfsHcPostLinkStartup
}
 
enum  EDKII_UFS_CARD_REF_CLK_FREQ_ATTRIBUTE {
  EdkiiUfsCardRefClkFreq19p2Mhz , EdkiiUfsCardRefClkFreq26Mhz , EdkiiUfsCardRefClkFreq38p4Mhz , EdkiiUfsCardRefClkFreqObsolete ,
  EdkiiUfsCardRefClkFreq19p2Mhz , EdkiiUfsCardRefClkFreq26Mhz , EdkiiUfsCardRefClkFreq38p4Mhz , EdkiiUfsCardRefClkFreqObsolete
}
 

Variables

EFI_GUID gEdkiiUfsHcPlatformPpiGuid
 

Detailed Description

EDKII_UFS_HC_PLATFORM_PPI definition.

Copyright (c) 2024, American Megatrends International LLC. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file UfsHostControllerPlatformPpi.h.

Macro Definition Documentation

◆ EDKII_UFS_HC_PLATFORM_PPI_VERSION

#define EDKII_UFS_HC_PLATFORM_PPI_VERSION   1

Definition at line 12 of file UfsHostControllerPlatformPpi.h.

Typedef Documentation

◆ EDKII_UFS_HC_PLATFORM_OVERRIDE_HC_INFO

typedef EFI_STATUS(EFIAPI * EDKII_UFS_HC_PLATFORM_OVERRIDE_HC_INFO) (IN EFI_HANDLE ControllerHandle, IN OUT EDKII_UFS_HC_INFO *HcInfo)

Allows platform PPI to override host controller information

Parameters
[in]ControllerHandleHandle of the UFS controller.
[in,out]HcInfoPointer EDKII_UFS_HC_INFO associated with host controller.
Return values
EFI_SUCCESSFunction completed successfully.
EFI_INVALID_PARAMETERHcInfo is NULL.
OthersFunction failed to complete.

Definition at line 37 of file UfsHostControllerPlatformPpi.h.

◆ EDKII_UFS_HC_PLATFORM_PEI_CALLBACK

typedef EFI_STATUS(EFIAPI * EDKII_UFS_HC_PLATFORM_PEI_CALLBACK) (IN UINTN *UfsHcBaseAddr, IN EDKII_UFS_HC_PLATFORM_CALLBACK_PHASE CallbackPhase)

Callback function for platform driver.

Parameters
[in]UfsHcBaseddrThe pointer to UfsHcBase address.
[in]CallbackPhaseSpecifies when the platform ppi is called
Return values
EFI_SUCCESSOverride function completed successfully.
EFI_INVALID_PARAMETERCallbackPhase is invalid or CallbackData is NULL when phase expects valid data.
OthersFunction failed to complete.

Definition at line 68 of file UfsHostControllerPlatformPpi.h.

◆ EDKII_UFS_HC_PLATFORM_PPI

Forward declaration for the UFS_HOST_CONTROLLER_PPI.

Definition at line 19 of file UfsHostControllerPlatformPpi.h.

Enumeration Type Documentation

◆ EDKII_UFS_CARD_REF_CLK_FREQ_ATTRIBUTE

enum EDKII_UFS_CARD_REF_CLK_FREQ_ATTRIBUTE

Definition at line 50 of file UfsHostControllerPlatformPpi.h.

◆ EDKII_UFS_HC_PLATFORM_CALLBACK_PHASE

enum EDKII_UFS_HC_PLATFORM_CALLBACK_PHASE

Definition at line 43 of file UfsHostControllerPlatformPpi.h.