TianoCore EDK2 master
Loading...
Searching...
No Matches
UfsHostControllerPlatformPpi.h
Go to the documentation of this file.
1
9#ifndef _EDKII_PEI_UFS_HC_PLATFORM_PPI_H_
10#define _EDKII_PEI_UFS_HC_PLATFORM_PPI_H_
11
12#define EDKII_UFS_HC_PLATFORM_PPI_VERSION 1
13
14extern EFI_GUID gEdkiiUfsHcPlatformPpiGuid;
15
20
21typedef struct {
22 UINT32 Capabilities;
23 UINT32 Version;
25
36typedef
39 IN EFI_HANDLE ControllerHandle,
41 );
42
43typedef enum {
44 EdkiiUfsHcPreHce,
45 EdkiiUfsHcPostHce,
46 EdkiiUfsHcPreLinkStartup,
47 EdkiiUfsHcPostLinkStartup
48} EDKII_UFS_HC_PLATFORM_CALLBACK_PHASE;
49
50typedef enum {
51 EdkiiUfsCardRefClkFreq19p2Mhz,
52 EdkiiUfsCardRefClkFreq26Mhz,
53 EdkiiUfsCardRefClkFreq38p4Mhz,
54 EdkiiUfsCardRefClkFreqObsolete
55} EDKII_UFS_CARD_REF_CLK_FREQ_ATTRIBUTE;
56
67typedef
70 IN UINTN *UfsHcBaseAddr,
71 IN EDKII_UFS_HC_PLATFORM_CALLBACK_PHASE CallbackPhase
72 );
73
81 UINT32 Version;
94 EDKII_UFS_CARD_REF_CLK_FREQ_ATTRIBUTE RefClkFreq;
95};
96
97#endif
UINT64 UINTN
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
VOID * EFI_HANDLE
Definition: UefiBaseType.h:33
EFI_STATUS(EFIAPI * EDKII_UFS_HC_PLATFORM_PEI_CALLBACK)(IN UINTN *UfsHcBaseAddr, IN EDKII_UFS_HC_PLATFORM_CALLBACK_PHASE CallbackPhase)
EFI_STATUS(EFIAPI * EDKII_UFS_HC_PLATFORM_OVERRIDE_HC_INFO)(IN EFI_HANDLE ControllerHandle, IN OUT EDKII_UFS_HC_INFO *HcInfo)
EDKII_UFS_CARD_REF_CLK_FREQ_ATTRIBUTE RefClkFreq
EDKII_UFS_HC_PLATFORM_OVERRIDE_HC_INFO OverrideHcInfo
EDKII_UFS_HC_PLATFORM_PEI_CALLBACK Callback
Definition: Base.h:213