]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Library/ResourcePublicationLib.h
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / MdePkg / Include / Library / ResourcePublicationLib.h
CommitLineData
fb3df220 1/** @file\r
50a64e5b 2 Provides a service to publish discovered system resources.\r
fb3df220 3\r
9095d37b 4Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
9344f092 5SPDX-License-Identifier: BSD-2-Clause-Patent\r
fb3df220 6\r
fb3df220 7**/\r
8\r
9#ifndef __RESOURCE_PUBLICATION_LIB__\r
10#define __RESOURCE_PUBLICATION_LIB__\r
11\r
12/**\r
fb3df220 13 Declares the presence of permanent system memory in the platform.\r
14\r
15 Declares that the system memory buffer specified by MemoryBegin and MemoryLength\r
16 as permanent memory that may be used for general purpose use by software.\r
17 The amount of memory available to software may be less than MemoryLength\r
9095d37b 18 if published memory has alignment restrictions.\r
e934a741 19 If MemoryLength is 0, then ASSERT().\r
9095d37b 20 If MemoryLength is greater than (MAX_ADDRESS - MemoryBegin + 1), then ASSERT().\r
fb3df220 21\r
22 @param MemoryBegin The start address of the memory being declared.\r
23 @param MemoryLength The number of bytes of memory being declared.\r
24\r
25 @retval RETURN_SUCCESS The memory buffer was published.\r
26 @retval RETURN_OUT_OF_RESOURCES There are not enough resources to publish the memory buffer\r
27\r
28**/\r
29RETURN_STATUS\r
30EFIAPI\r
31PublishSystemMemory (\r
2f88bd3a
MK
32 IN PHYSICAL_ADDRESS MemoryBegin,\r
33 IN UINT64 MemoryLength\r
ed66e1bc 34 );\r
fb3df220 35\r
36#endif\r