Struct uefi_raw::table::boot::MemoryType
source · #[repr(transparent)]pub struct MemoryType(pub u32);
Expand description
The type of a memory range.
UEFI allows firmwares and operating systems to introduce new memory types in the 0x70000000..0xFFFFFFFF range. Therefore, we don’t know the full set of memory types at compile time, and it is not safe to model this C enum as a Rust enum.
Tuple Fields§
§0: u32
Implementations§
source§impl MemoryType
impl MemoryType
sourcepub const RESERVED: MemoryType = _
pub const RESERVED: MemoryType = _
This enum variant is not used.
sourcepub const LOADER_CODE: MemoryType = _
pub const LOADER_CODE: MemoryType = _
The code portions of a loaded UEFI application.
sourcepub const LOADER_DATA: MemoryType = _
pub const LOADER_DATA: MemoryType = _
The data portions of a loaded UEFI applications, as well as any memory allocated by it.
sourcepub const BOOT_SERVICES_CODE: MemoryType = _
pub const BOOT_SERVICES_CODE: MemoryType = _
Code of the boot drivers.
Can be reused after OS is loaded.
sourcepub const BOOT_SERVICES_DATA: MemoryType = _
pub const BOOT_SERVICES_DATA: MemoryType = _
Memory used to store boot drivers’ data.
Can be reused after OS is loaded.
sourcepub const RUNTIME_SERVICES_CODE: MemoryType = _
pub const RUNTIME_SERVICES_CODE: MemoryType = _
Runtime drivers’ code.
sourcepub const RUNTIME_SERVICES_DATA: MemoryType = _
pub const RUNTIME_SERVICES_DATA: MemoryType = _
Runtime services’ code.
sourcepub const CONVENTIONAL: MemoryType = _
pub const CONVENTIONAL: MemoryType = _
Free usable memory.
sourcepub const UNUSABLE: MemoryType = _
pub const UNUSABLE: MemoryType = _
Memory in which errors have been detected.
sourcepub const ACPI_RECLAIM: MemoryType = _
pub const ACPI_RECLAIM: MemoryType = _
Memory that holds ACPI tables. Can be reclaimed after they are parsed.
sourcepub const ACPI_NON_VOLATILE: MemoryType = _
pub const ACPI_NON_VOLATILE: MemoryType = _
Firmware-reserved addresses.
sourcepub const MMIO: MemoryType = _
pub const MMIO: MemoryType = _
A region used for memory-mapped I/O.
sourcepub const MMIO_PORT_SPACE: MemoryType = _
pub const MMIO_PORT_SPACE: MemoryType = _
Address space used for memory-mapped port I/O.
sourcepub const PAL_CODE: MemoryType = _
pub const PAL_CODE: MemoryType = _
Address space which is part of the processor.
sourcepub const PERSISTENT_MEMORY: MemoryType = _
pub const PERSISTENT_MEMORY: MemoryType = _
Memory region which is usable and is also non-volatile.
source§impl MemoryType
impl MemoryType
sourcepub const fn custom(value: u32) -> MemoryType
pub const fn custom(value: u32) -> MemoryType
Construct a custom MemoryType
. Values in the range 0x80000000..=0xffffffff
are free for use if you are
an OS loader.
Trait Implementations§
source§impl Clone for MemoryType
impl Clone for MemoryType
source§fn clone(&self) -> MemoryType
fn clone(&self) -> MemoryType
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more