]>
Commit | Line | Data |
---|---|---|
fb3df220 | 1 | /** @file\r |
50a64e5b | 2 | Provides a service to publish discovered system resources.\r |
fb3df220 | 3 | \r |
9df063a0 HT |
4 | Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r |
5 | This program and the accompanying materials\r | |
50a64e5b | 6 | are licensed and made available under the terms and conditions of the BSD License\r |
7 | which accompanies this distribution. The full text of the license may be found at\r | |
8 | http://opensource.org/licenses/bsd-license.php\r | |
fb3df220 | 9 | \r |
50a64e5b | 10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
fb3df220 | 12 | \r |
fb3df220 | 13 | **/\r |
14 | \r | |
15 | #ifndef __RESOURCE_PUBLICATION_LIB__\r | |
16 | #define __RESOURCE_PUBLICATION_LIB__\r | |
17 | \r | |
18 | /**\r | |
fb3df220 | 19 | Declares the presence of permanent system memory in the platform.\r |
20 | \r | |
21 | Declares that the system memory buffer specified by MemoryBegin and MemoryLength\r | |
22 | as permanent memory that may be used for general purpose use by software.\r | |
23 | The amount of memory available to software may be less than MemoryLength\r | |
e934a741 | 24 | if published memory has alignment restrictions. \r |
25 | If MemoryLength is 0, then ASSERT().\r | |
26 | If MemoryLength is greater than (MAX_ADDRESS - MemoryBegin + 1), then ASSERT(). \r | |
fb3df220 | 27 | \r |
28 | @param MemoryBegin The start address of the memory being declared.\r | |
29 | @param MemoryLength The number of bytes of memory being declared.\r | |
30 | \r | |
31 | @retval RETURN_SUCCESS The memory buffer was published.\r | |
32 | @retval RETURN_OUT_OF_RESOURCES There are not enough resources to publish the memory buffer\r | |
33 | \r | |
34 | **/\r | |
35 | RETURN_STATUS\r | |
36 | EFIAPI\r | |
37 | PublishSystemMemory (\r | |
38 | IN PHYSICAL_ADDRESS MemoryBegin,\r | |
39 | IN UINT64 MemoryLength\r | |
ed66e1bc | 40 | );\r |
fb3df220 | 41 | \r |
42 | #endif\r |