Warning: This file is not a C or C++ file. It does not have highlighting.
| 1 | //===-- Definition of EFI_MEMORY_DESCRIPTOR type --------------------------===// |
|---|---|
| 2 | // |
| 3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 | // See https://llvm.org/LICENSE.txt for license information. |
| 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | |
| 9 | #ifndef LLVM_LIBC_TYPES_EFI_MEMORY_DESCRIPTOR_H |
| 10 | #define LLVM_LIBC_TYPES_EFI_MEMORY_DESCRIPTOR_H |
| 11 | |
| 12 | #include "../llvm-libc-macros/stdint-macros.h" |
| 13 | #include "EFI_PHYSICAL_ADDRESS.h" |
| 14 | #include "EFI_VIRTUAL_ADDRESS.h" |
| 15 | |
| 16 | #define EFI_MEMORY_DESCRIPTOR_VERSION 1 |
| 17 | |
| 18 | #define EFI_MEMORY_UC 0x0000000000000001 |
| 19 | #define EFI_MEMORY_WC 0x0000000000000002 |
| 20 | #define EFI_MEMORY_WT 0x0000000000000004 |
| 21 | #define EFI_MEMORY_WB 0x0000000000000008 |
| 22 | #define EFI_MEMORY_UCE 0x0000000000000010 |
| 23 | #define EFI_MEMORY_WP 0x0000000000001000 |
| 24 | #define EFI_MEMORY_RP 0x0000000000002000 |
| 25 | #define EFI_MEMORY_XP 0x0000000000004000 |
| 26 | #define EFI_MEMORY_NV 0x0000000000008000 |
| 27 | #define EFI_MEMORY_MORE_RELIABLE 0x0000000000010000 |
| 28 | #define EFI_MEMORY_RO 0x0000000000020000 |
| 29 | #define EFI_MEMORY_SP 0x0000000000040000 |
| 30 | #define EFI_MEMORY_CPU_CRYPTO 0x0000000000080000 |
| 31 | #define EFI_MEMORY_RUNTIME 0x8000000000000000 |
| 32 | #define EFI_MEMORY_ISA_VALID 0x4000000000000000 |
| 33 | #define EFI_MEMORY_ISA_MASK 0x0FFFF00000000000 |
| 34 | |
| 35 | typedef struct { |
| 36 | uint32_t Type; |
| 37 | EFI_PHYSICAL_ADDRESS PhysicalStart; |
| 38 | EFI_VIRTUAL_ADDRESS VirtualStart; |
| 39 | uint64_t NumberOfPages; |
| 40 | uint64_t Attribute; |
| 41 | } EFI_MEMORY_DESCRIPTOR; |
| 42 | |
| 43 | #endif // LLVM_LIBC_TYPES_EFI_MEMORY_DESCRIPTOR_H |
| 44 |
Warning: This file is not a C or C++ file. It does not have highlighting.
