]> git.proxmox.com Git - mirror_edk2.git/blame - OvmfPkg/TdxDxe/TdxAcpiTable.h
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / OvmfPkg / TdxDxe / TdxAcpiTable.h
CommitLineData
fae5c146
MX
1/** @file\r
2\r
3 Copyright (c) 2008 - 2012, Intel Corporation. All rights reserved.<BR>\r
4 SPDX-License-Identifier: BSD-2-Clause-Patent\r
5\r
6**/\r
7\r
8#ifndef TDX_ACPI_TABLE_H_\r
9#define TDX_ACPI_TABLE_H_\r
10\r
11#include <PiDxe.h>\r
12\r
13#include <Protocol/AcpiTable.h>\r
14#include <Protocol/FirmwareVolume2.h>\r
15#include <Protocol/PciIo.h>\r
16\r
17#include <Library/BaseLib.h>\r
18#include <Library/UefiBootServicesTableLib.h>\r
19#include <Library/DebugLib.h>\r
20#include <Library/PcdLib.h>\r
21#include <IndustryStandard/IntelTdx.h>\r
22#include <IndustryStandard/Acpi.h>\r
23\r
24VOID\r
25EFIAPI\r
26AsmGetRelocationMap (\r
27 OUT MP_RELOCATION_MAP *AddressMap\r
28 );\r
29\r
30/**\r
31 At the beginning of system boot, a 4K-aligned, 4K-size memory (Td mailbox) is\r
32 pre-allocated by host VMM. BSP & APs do the page accept together in that memory\r
33 region.\r
34\r
35 After that TDVF is designed to relocate the mailbox to a 4K-aligned, 4K-size\r
36 memory block which is allocated in the ACPI Nvs memory. APs are waken up and\r
37 spin around the relocated mailbox for further command.\r
38\r
39 @return EFI_PHYSICAL_ADDRESS Address of the relocated mailbox\r
40**/\r
41EFI_PHYSICAL_ADDRESS\r
42EFIAPI\r
43RelocateMailbox (\r
44 VOID\r
45 );\r
46\r
47/**\r
48 Alter the MADT when ACPI Table from QEMU is available.\r
49\r
50 @param[in] Event Event whose notification function is being invoked\r
51 @param[in] Context Pointer to the notification function's context\r
52**/\r
53VOID\r
54EFIAPI\r
55AlterAcpiTable (\r
56 IN EFI_EVENT Event,\r
57 IN VOID *Context\r
58 );\r
59\r
60#endif\r