diff options
author | raywu <raywu0301@gmail.com> | 2018-06-15 00:00:50 +0800 |
---|---|---|
committer | raywu <raywu0301@gmail.com> | 2018-06-15 00:00:50 +0800 |
commit | b7c51c9cf4864df6aabb99a1ae843becd577237c (patch) | |
tree | eebe9b0d0ca03062955223097e57da84dd618b9a /EDK/Foundation/Guid/MemoryTypeInformation | |
download | zprj-master.tar.xz |
Diffstat (limited to 'EDK/Foundation/Guid/MemoryTypeInformation')
-rw-r--r-- | EDK/Foundation/Guid/MemoryTypeInformation/MemoryTypeInformation.c | 29 | ||||
-rw-r--r-- | EDK/Foundation/Guid/MemoryTypeInformation/MemoryTypeInformation.h | 37 |
2 files changed, 66 insertions, 0 deletions
diff --git a/EDK/Foundation/Guid/MemoryTypeInformation/MemoryTypeInformation.c b/EDK/Foundation/Guid/MemoryTypeInformation/MemoryTypeInformation.c new file mode 100644 index 0000000..c1a5cb1 --- /dev/null +++ b/EDK/Foundation/Guid/MemoryTypeInformation/MemoryTypeInformation.c @@ -0,0 +1,29 @@ +/*++ + +Copyright (c) 2004, Intel Corporation +All rights reserved. This program and the accompanying materials +are licensed and made available under the terms and conditions of the BSD License +which accompanies this distribution. The full text of the license may be found at +http://opensource.org/licenses/bsd-license.php + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + +Module Name: + + MemoryTypeInformation.c + +Abstract: + + GUID used for Memory Type Information entries in the HOB list. + +--*/ + +#include "Tiano.h" +#include EFI_GUID_DEFINITION(MemoryTypeInformation) + +EFI_GUID gEfiMemoryTypeInformationGuid = EFI_MEMORY_TYPE_INFORMATION_GUID; + +EFI_GUID_STRING(&gEfiMemoryTypeInformationGuid, "Memory Type Information", + "Memory Type Information HOB GUID for HOB list."); + diff --git a/EDK/Foundation/Guid/MemoryTypeInformation/MemoryTypeInformation.h b/EDK/Foundation/Guid/MemoryTypeInformation/MemoryTypeInformation.h new file mode 100644 index 0000000..79f02b0 --- /dev/null +++ b/EDK/Foundation/Guid/MemoryTypeInformation/MemoryTypeInformation.h @@ -0,0 +1,37 @@ +/*++ + +Copyright (c) 2004, Intel Corporation +All rights reserved. This program and the accompanying materials +are licensed and made available under the terms and conditions of the BSD License +which accompanies this distribution. The full text of the license may be found at +http://opensource.org/licenses/bsd-license.php + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + +Module Name: + + MemoryTypeInformation.h + +Abstract: + + GUID used for Memory Type Information entries in the HOB list. + +--*/ + +#ifndef _MEMORY_TYPE_INFORMATION_GUID_H_ +#define _MEMORY_TYPE_INFORMATION_GUID_H_ + +#define EFI_MEMORY_TYPE_INFORMATION_GUID \ + { 0x4c19049f,0x4137,0x4dd3,0x9c,0x10,0x8b,0x97,0xa8,0x3f,0xfd,0xfa } + +#define EFI_MEMORY_TYPE_INFORMATION_VARIABLE_NAME L"MemoryTypeInformation" + +extern EFI_GUID gEfiMemoryTypeInformationGuid; + +typedef struct { + UINT32 Type; + UINT32 NumberOfPages; +} EFI_MEMORY_TYPE_INFORMATION; + +#endif |