]> git.proxmox.com Git - mirror_edk2.git/blame - EmulatorPkg/Include/Library/EmuMagicPageLib.h
EmulatorPkg: Apply uncrustify changes
[mirror_edk2.git] / EmulatorPkg / Include / Library / EmuMagicPageLib.h
CommitLineData
79e4f2a5
RN
1/*++ @file\r
2The PCD, gEmulatorPkgTokenSpaceGuid.PcdPeiServicesTablePage, points to a magic page\r
3of memory that is like SRAM on an embedded system. This file defines what goes\r
4where in the magic page.\r
5\r
6Copyright (c) 2011, Apple Inc. All rights reserved.<BR>\r
e3ba31da 7SPDX-License-Identifier: BSD-2-Clause-Patent\r
79e4f2a5
RN
8\r
9**/\r
10\r
11#ifndef __EMU_MAGIC_PAGE_LIB_H__\r
12#define __EMU_MAGIC_PAGE_LIB_H__\r
13\r
14#include <PiPei.h>\r
15#include <Library/PcdLib.h>\r
16#include <Protocol/EmuThunk.h>\r
17\r
18typedef struct {\r
19 // Used by PEI Core and PEIMs to store the PEI Services pointer.\r
20 // Privilege issues prevent using the PI mechanism in the emulator.\r
a550d468 21 CONST EFI_PEI_SERVICES **PeiServicesTablePointer;\r
79e4f2a5
RN
22\r
23 // Used by SecPeiServicesLib\r
a550d468 24 EFI_PEI_PPI_DESCRIPTOR *PpiList;\r
79e4f2a5
RN
25\r
26 // Needed by PEI PEI PeCoffLoaderExtraActionLib\r
a550d468 27 EMU_THUNK_PROTOCOL *Thunk;\r
79e4f2a5
RN
28} EMU_MAGIC_PAGE_LAYOUT;\r
29\r
a550d468 30#define EMU_MAGIC_PAGE() ((EMU_MAGIC_PAGE_LAYOUT *)((UINTN)PcdGet64 (PcdPeiServicesTablePage)))\r
79e4f2a5
RN
31\r
32#endif\r