#[repr(C)]pub enum MemoryType {
Show 16 variants
EfiReservedMemoryType = 0,
EfiLoaderCode = 1,
EfiLoaderData = 2,
EfiBootServicesCode = 3,
EfiBootServicesData = 4,
EfiRuntimeServicesCode = 5,
EfiRuntimeServicesData = 6,
EfiConventionalMemory = 7,
EfiUnusableMemory = 8,
EfiACPIReclaimMemory = 9,
EfiACPIMemoryNVS = 10,
EfiMemoryMappedIO = 11,
EfiMemoryMappedIOPortSpace = 12,
EfiPalCode = 13,
EfiPersistentMemory = 14,
EfiMaxMemoryType = 15,
}
Variants§
EfiReservedMemoryType = 0
Not used.
EfiLoaderCode = 1
The code portions of a loaded application. (Note that UEFI OS loaders are UEFI applications.)
EfiLoaderData = 2
The data portions of a loaded application and the default data allocation type used by an application to allocate pool memory.
EfiBootServicesCode = 3
The code portions of a loaded Boot Services Driver.
EfiBootServicesData = 4
The data portions of a loaded Boot Serves Driver, and the default data allocation type used by a Boot Services Driver to allocate pool memory.
EfiRuntimeServicesCode = 5
The code portions of a loaded Runtime Services Driver.
EfiRuntimeServicesData = 6
The data portions of a loaded Runtime Services Driver and the default data allocation type used by a Runtime Services Driver to allocate pool memory.
EfiConventionalMemory = 7
Free (unallocated) memory.
EfiUnusableMemory = 8
Memory in which errors have been detected.
EfiACPIReclaimMemory = 9
Memory that holds the ACPI tables.
EfiACPIMemoryNVS = 10
Address space reserved for use by the firmware.
EfiMemoryMappedIO = 11
Used by system firmware to request that a memory-mapped IO region be mapped by the OS to a virtual address so it can be accessed by EFI runtime services.
EfiMemoryMappedIOPortSpace = 12
System memory-mapped IO region that is used to translate memory cycles to IO cycles by the processor.
EfiPalCode = 13
Address space reserved by the firmware for code that is part of the processor.
EfiPersistentMemory = 14
A memory region that operates as EfiConventionalMemory, however it happens to also support byte-addressable non-volatility.
EfiMaxMemoryType = 15
Trait Implementations§
Source§impl Clone for MemoryType
impl Clone for MemoryType
Source§fn clone(&self) -> MemoryType
fn clone(&self) -> MemoryType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more