TianoCore EDK2 master
Loading...
Searching...
No Matches
UfsHostControllerPlatform.h
Go to the documentation of this file.
1
9#ifndef __EDKII_UFS_HC_PLATFORM_PROTOCOL_H__
10#define __EDKII_UFS_HC_PLATFORM_PROTOCOL_H__
11
13
14#define EDKII_UFS_HC_PLATFORM_PROTOCOL_VERSION 2
15
16extern EFI_GUID gEdkiiUfsHcPlatformProtocolGuid;
17
19
21
22typedef struct {
23 UINT32 Opcode;
24 UINT32 Arg1;
25 UINT32 Arg2;
26 UINT32 Arg3;
28
39typedef
43 IN OUT EDKII_UIC_COMMAND *UicCommand
44 );
45
55};
56
57typedef struct {
58 UINT32 Capabilities;
59 UINT32 Version;
61
72typedef
75 IN EFI_HANDLE ControllerHandle,
77 );
78
79typedef enum {
80 EdkiiUfsHcPreHce,
81 EdkiiUfsHcPostHce,
82 EdkiiUfsHcPreLinkStartup,
83 EdkiiUfsHcPostLinkStartup
84} EDKII_UFS_HC_PLATFORM_CALLBACK_PHASE;
85
86typedef enum {
87 EdkiiUfsCardRefClkFreq19p2Mhz,
88 EdkiiUfsCardRefClkFreq26Mhz,
89 EdkiiUfsCardRefClkFreq38p4Mhz,
90 EdkiiUfsCardRefClkFreqObsolete
91} EDKII_UFS_CARD_REF_CLK_FREQ_ATTRIBUTE;
92
106typedef
109 IN EFI_HANDLE ControllerHandle,
110 IN EDKII_UFS_HC_PLATFORM_CALLBACK_PHASE CallbackPhase,
111 IN OUT VOID *CallbackData
112 );
113
118 UINT32 Version;
131 EDKII_UFS_CARD_REF_CLK_FREQ_ATTRIBUTE RefClkFreq;
132};
133
134#endif
#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_OVERRIDE_HC_INFO)(IN EFI_HANDLE ControllerHandle, IN OUT EDKII_UFS_HC_INFO *HcInfo)
EFI_STATUS(EFIAPI * EDKII_UFS_EXEC_UIC_COMMAND)(IN EDKII_UFS_HC_DRIVER_INTERFACE *This, IN OUT EDKII_UIC_COMMAND *UicCommand)
EFI_STATUS(EFIAPI * EDKII_UFS_HC_PLATFORM_CALLBACK)(IN EFI_HANDLE ControllerHandle, IN EDKII_UFS_HC_PLATFORM_CALLBACK_PHASE CallbackPhase, IN OUT VOID *CallbackData)
EDKII_UFS_EXEC_UIC_COMMAND UfsExecUicCommand
EDKII_UFS_HOST_CONTROLLER_PROTOCOL * UfsHcProtocol
EDKII_UFS_HC_PLATFORM_OVERRIDE_HC_INFO OverrideHcInfo
EDKII_UFS_CARD_REF_CLK_FREQ_ATTRIBUTE RefClkFreq
EDKII_UFS_HC_PLATFORM_CALLBACK Callback
Definition: Base.h:213