This function is the main entry point for an MM handler dispatch\r
or communicate-based callback.\r
\r
- @param DispatchHandle The unique handle assigned to this handler by MmiHandlerRegister().\r
- @param Context Points to an optional handler context which was specified when the handler was registered.\r
+ @param DispatchHandle The unique handle assigned to this handler by\r
+ MmiHandlerRegister().\r
+ @param Context Points to an optional handler context which was\r
+ specified when the handler was registered.\r
@param CommBuffer A pointer to a collection of data in memory that will\r
- be conveyed from a non-MM environment into an MM environment.\r
+ be conveyed from a non-MM environment into an\r
+ MM environment.\r
@param CommBufferSize The size of the CommBuffer.\r
\r
@return Status Code\r
//\r
STATIC EFI_HANDLE mMmCpuHandle = NULL;\r
\r
+/** Returns the HOB data for the matching HOB GUID.\r
+\r
+ @param [in] HobList Pointer to the HOB list.\r
+ @param [in] HobGuid The GUID for the HOB.\r
+ @param [out] HobData Pointer to the HOB data.\r
+\r
+ @retval EFI_SUCCESS The function completed successfully.\r
+ @retval EFI_INVALID_PARAMETER Invalid parameter.\r
+ @retval EFI_NOT_FOUND Could not find HOB with matching GUID.\r
+**/\r
EFI_STATUS\r
GetGuidedHobData (\r
IN VOID *HobList,\r
return EFI_SUCCESS;\r
}\r
\r
+/** Entry point for the Standalone MM CPU driver.\r
+\r
+ @param [in] ImageHandle Unused. Not actual image handle.\r
+ @param [in] SystemTable Pointer to MM System table.\r
+\r
+ @retval EFI_SUCCESS The function completed successfully.\r
+ @retval EFI_INVALID_PARAMETER Invalid parameter.\r
+ @retval EFI_OUT_OF_RESOURCES Out of resources.\r
+ @retval EFI_NOT_FOUND Failed to find the HOB for the CPU\r
+ driver endpoint descriptor.\r
+**/\r
EFI_STATUS\r
StandaloneMmCpuInitialize (\r
- IN EFI_HANDLE ImageHandle, // not actual imagehandle\r
+ IN EFI_HANDLE ImageHandle, // not actual imagehandle\r
IN EFI_MM_SYSTEM_TABLE *SystemTable // not actual systemtable\r
)\r
{\r
Private header with declarations and definitions specific to the MM Standalone\r
CPU driver\r
\r
- Copyright (c) 2017 - 2018, ARM Limited. All rights reserved.\r
+ Copyright (c) 2017 - 2021, Arm Limited. All rights reserved.\r
SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
extern MP_INFORMATION_HOB_DATA *mMpInformationHobData;\r
extern EFI_MM_CONFIGURATION_PROTOCOL mMmConfig;\r
\r
+/**\r
+ The PI Standalone MM entry point for the TF-A CPU driver.\r
+\r
+ @param [in] EventId The event Id.\r
+ @param [in] CpuNumber The CPU number.\r
+ @param [in] NsCommBufferAddr Address of the NS common buffer.\r
+\r
+ @retval EFI_SUCCESS Success.\r
+ @retval EFI_INVALID_PARAMETER A parameter was invalid.\r
+ @retval EFI_ACCESS_DENIED Access not permitted.\r
+ @retval EFI_OUT_OF_RESOURCES Out of resources.\r
+ @retval EFI_UNSUPPORTED Operation not supported.\r
+**/\r
EFI_STATUS\r
PiMmStandaloneArmTfCpuDriverEntry (\r
IN UINTN EventId,\r
IN UINTN NsCommBufferAddr\r
);\r
\r
+/**\r
+ This function is the main entry point for an MM handler dispatch\r
+ or communicate-based callback.\r
+\r
+ @param DispatchHandle The unique handle assigned to this handler by\r
+ MmiHandlerRegister().\r
+ @param Context Points to an optional handler context which was\r
+ specified when the handler was registered.\r
+ @param CommBuffer A pointer to a collection of data in memory that will\r
+ be conveyed from a non-MM environment into an\r
+ MM environment.\r
+ @param CommBufferSize The size of the CommBuffer.\r
+\r
+ @return Status Code\r
+\r
+**/\r
EFI_STATUS\r
EFIAPI\r
PiMmCpuTpFwRootMmiHandler (\r