MdeModulePkg[all]  0.98
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
UfsHostControllerPlatform.h File Reference

Data Structures

struct  EDKII_UIC_COMMAND
 
struct  _EDKII_UFS_HC_DRIVER_INTERFACE
 
struct  EDKII_UFS_HC_INFO
 
struct  _EDKII_UFS_HC_PLATFORM_PROTOCOL
 

Macros

#define EDKII_UFS_HC_PLATFORM_PROTOCOL_VERSION   1
 

Typedefs

typedef struct
_EDKII_UFS_HC_PLATFORM_PROTOCOL 
EDKII_UFS_HC_PLATFORM_PROTOCOL
 
typedef struct
_EDKII_UFS_HC_DRIVER_INTERFACE 
EDKII_UFS_HC_DRIVER_INTERFACE
 
typedef IN OUT EDKII_UIC_COMMANDUicCommand
 
typedef IN OUT EDKII_UFS_HC_INFOHcInfo
 
typedef IN
EDKII_UFS_HC_PLATFORM_CALLBACK_PHASE 
CallbackPhase
 
typedef IN
EDKII_UFS_HC_PLATFORM_CALLBACK_PHASE
IN OUT VOID
CallbackData
 

Enumerations

enum  EDKII_UFS_HC_PLATFORM_CALLBACK_PHASE { EdkiiUfsHcPreHce, EdkiiUfsHcPostHce, EdkiiUfsHcPreLinkStartup, EdkiiUfsHcPostLinkStartup }
 

Functions

typedef EFI_STATUS (EFIAPI *EDKII_UFS_EXEC_UIC_COMMAND)(IN EDKII_UFS_HC_DRIVER_INTERFACE *This
 

Variables

EFI_GUID gEdkiiUfsHcPlatformProtocolGuid
 

Detailed Description

EDKII_UFS_HC_PLATFORM_PROTOCOL definition.

Copyright (c) 2019, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Macro Definition Documentation

#define EDKII_UFS_HC_PLATFORM_PROTOCOL_VERSION   1

Typedef Documentation

typedef IN OUT EDKII_UFS_HC_INFO* HcInfo
typedef IN OUT EDKII_UIC_COMMAND* UicCommand

Enumeration Type Documentation

Enumerator
EdkiiUfsHcPreHce 
EdkiiUfsHcPostHce 
EdkiiUfsHcPreLinkStartup 
EdkiiUfsHcPostLinkStartup 

Function Documentation

typedef EFI_STATUS ( EFIAPI *  EDKII_UFS_HC_PLATFORM_CALLBACK)

Execute UIC command

Parameters
[in]ThisPointer to driver interface produced by the UFS controller.
[in,out]UicCommandDescriptor of the command that will be executed.
Return values
EFI_SUCCESSCommand executed successfully.
EFI_INVALID_PARAMETERThis or UicCommand is NULL.
OthersCommand failed to execute.

Allows platform protocol 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.

Callback function for platform driver.

Parameters
[in]ControllerHandleHandle of the UFS controller.
[in]CallbackPhaseSpecifies when the platform protocol is called
[in,out]CallbackDataData specific to the callback phase. For PreHce and PostHce - EDKII_UFS_HC_DRIVER_INTERFACE. For PreLinkStartup and PostLinkStartup - EDKII_UFS_HC_DRIVER_INTERFACE.
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.

Variable Documentation

EFI_GUID gEdkiiUfsHcPlatformProtocolGuid