2018-07-13 17:05:29 +02:00
|
|
|
/** @file
|
|
|
|
Private header with declarations and definitions specific to the MM Standalone
|
|
|
|
CPU driver
|
|
|
|
|
|
|
|
Copyright (c) 2017 - 2018, ARM Limited. All rights reserved.
|
2019-04-04 01:07:12 +02:00
|
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
2018-07-13 17:05:29 +02:00
|
|
|
|
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef _ARM_TF_CPU_DRIVER_H_
|
|
|
|
#define _ARM_TF_CPU_DRIVER_H_
|
|
|
|
|
|
|
|
#include <Protocol/MmCommunication.h>
|
|
|
|
#include <Protocol/MmConfiguration.h>
|
|
|
|
#include <Protocol/MmCpu.h>
|
|
|
|
#include <Guid/MpInformation.h>
|
|
|
|
|
|
|
|
//
|
|
|
|
// CPU driver initialization specific declarations
|
|
|
|
//
|
|
|
|
extern EFI_MM_SYSTEM_TABLE *mMmst;
|
|
|
|
|
|
|
|
//
|
|
|
|
// CPU State Save protocol specific declarations
|
|
|
|
//
|
|
|
|
extern EFI_MM_CPU_PROTOCOL mMmCpuState;
|
|
|
|
|
|
|
|
//
|
|
|
|
// MM event handling specific declarations
|
|
|
|
//
|
|
|
|
extern EFI_MM_COMMUNICATE_HEADER **PerCpuGuidedEventContext;
|
|
|
|
extern EFI_MMRAM_DESCRIPTOR mNsCommBuffer;
|
|
|
|
extern MP_INFORMATION_HOB_DATA *mMpInformationHobData;
|
|
|
|
extern EFI_MM_CONFIGURATION_PROTOCOL mMmConfig;
|
|
|
|
|
|
|
|
EFI_STATUS
|
2019-01-16 21:22:29 +01:00
|
|
|
PiMmStandaloneArmTfCpuDriverEntry (
|
2018-07-13 17:05:29 +02:00
|
|
|
IN UINTN EventId,
|
|
|
|
IN UINTN CpuNumber,
|
|
|
|
IN UINTN NsCommBufferAddr
|
|
|
|
);
|
|
|
|
|
|
|
|
EFI_STATUS
|
|
|
|
EFIAPI
|
|
|
|
PiMmCpuTpFwRootMmiHandler (
|
|
|
|
IN EFI_HANDLE DispatchHandle,
|
|
|
|
IN CONST VOID *Context, OPTIONAL
|
|
|
|
IN OUT VOID *CommBuffer, OPTIONAL
|
|
|
|
IN OUT UINTN *CommBufferSize OPTIONAL
|
|
|
|
);
|
|
|
|
|
|
|
|
#endif
|