TianoCore EDK2 master
Loading...
Searching...
No Matches
MemMap.c File Reference

Go to the source code of this file.

Data Structures

struct  MEMORY_LENGTH_ENTRY
 

Functions

VOID AddMemoryLength (LIST_ENTRY *List, UINT32 Type, UINT64 NumberOfPages)
 
SHELL_STATUS EFIAPI ShellCommandRunMemMap (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Variables

STATIC CONST CHAR16 NameEfiReservedMemoryType [] = L"Reserved"
 
STATIC CONST CHAR16 NameEfiLoaderCode [] = L"LoaderCode"
 
STATIC CONST CHAR16 NameEfiLoaderData [] = L"LoaderData"
 
STATIC CONST CHAR16 NameEfiBootServicesCode [] = L"BootServiceCode"
 
STATIC CONST CHAR16 NameEfiBootServicesData [] = L"BootServiceData"
 
STATIC CONST CHAR16 NameEfiRuntimeServicesCode [] = L"RuntimeCode"
 
STATIC CONST CHAR16 NameEfiRuntimeServicesData [] = L"RuntimeData"
 
STATIC CONST CHAR16 NameEfiConventionalMemory [] = L"Available"
 
STATIC CONST CHAR16 NameEfiPersistentMemory [] = L"Persistent"
 
STATIC CONST CHAR16 NameEfiUnusableMemory [] = L"UnusableMemory"
 
STATIC CONST CHAR16 NameEfiACPIReclaimMemory [] = L"ACPIReclaimMemory"
 
STATIC CONST CHAR16 NameEfiACPIMemoryNVS [] = L"ACPIMemoryNVS"
 
STATIC CONST CHAR16 NameEfiMemoryMappedIO [] = L"MemoryMappedIO"
 
STATIC CONST CHAR16 NameEfiMemoryMappedIOPortSpace [] = L"MemoryMappedIOPortSpace"
 
STATIC CONST CHAR16 NameEfiPalCode [] = L"PalCode"
 
STATIC CONST CHAR16 NameEfiUnacceptedMemoryType [] = L"Unaccepted"
 
STATIC CONST CHAR16 NameEfiBootServicesCodeShort [] = L"BS_Code"
 
STATIC CONST CHAR16 NameEfiBootServicesDataShort [] = L"BS_Data"
 
STATIC CONST CHAR16 NameEfiRuntimeServicesCodeShort [] = L"RT_Code"
 
STATIC CONST CHAR16 NameEfiRuntimeServicesDataShort [] = L"RT_Data"
 
STATIC CONST CHAR16 NameEfiUnusableMemoryShort [] = L"Unusable"
 
STATIC CONST CHAR16 NameEfiACPIReclaimMemoryShort [] = L"ACPI_Recl"
 
STATIC CONST CHAR16 NameEfiACPIMemoryNVSShort [] = L"ACPI_NVS"
 
STATIC CONST CHAR16 NameEfiMemoryMappedIOShort [] = L"MMIO"
 
STATIC CONST CHAR16 NameEfiMemoryMappedIOPortSpaceShort [] = L"MMIO_Port"
 

Detailed Description

Main file for Mode shell Debug1 function.

(C) Copyright 2016 Hewlett Packard Enterprise Development LP
(C) Copyright 2013-2015 Hewlett-Packard Development Company, L.P.
Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file MemMap.c.

Function Documentation

◆ AddMemoryLength()

VOID AddMemoryLength ( LIST_ENTRY List,
UINT32  Type,
UINT64  NumberOfPages 
)

Add the length of the specified type to List.

Parameters
ListA list to hold all pairs of <Type, NumberOfPages>.
TypeMemory type.
NumberOfPagesNumber of pages.

Definition at line 60 of file MemMap.c.

◆ ShellCommandRunMemMap()

SHELL_STATUS EFIAPI ShellCommandRunMemMap ( IN EFI_HANDLE  ImageHandle,
IN EFI_SYSTEM_TABLE SystemTable 
)

Function for 'memmap' command.

Parameters
[in]ImageHandleHandle to the Image (NULL if Internal).
[in]SystemTablePointer to the System Table (NULL if Internal).

Definition at line 110 of file MemMap.c.

Variable Documentation

◆ NameEfiACPIMemoryNVS

STATIC CONST CHAR16 NameEfiACPIMemoryNVS[] = L"ACPIMemoryNVS"

Definition at line 25 of file MemMap.c.

◆ NameEfiACPIMemoryNVSShort

STATIC CONST CHAR16 NameEfiACPIMemoryNVSShort[] = L"ACPI_NVS"

Definition at line 40 of file MemMap.c.

◆ NameEfiACPIReclaimMemory

STATIC CONST CHAR16 NameEfiACPIReclaimMemory[] = L"ACPIReclaimMemory"

Definition at line 24 of file MemMap.c.

◆ NameEfiACPIReclaimMemoryShort

STATIC CONST CHAR16 NameEfiACPIReclaimMemoryShort[] = L"ACPI_Recl"

Definition at line 39 of file MemMap.c.

◆ NameEfiBootServicesCode

STATIC CONST CHAR16 NameEfiBootServicesCode[] = L"BootServiceCode"

Definition at line 17 of file MemMap.c.

◆ NameEfiBootServicesCodeShort

STATIC CONST CHAR16 NameEfiBootServicesCodeShort[] = L"BS_Code"

Definition at line 34 of file MemMap.c.

◆ NameEfiBootServicesData

STATIC CONST CHAR16 NameEfiBootServicesData[] = L"BootServiceData"

Definition at line 18 of file MemMap.c.

◆ NameEfiBootServicesDataShort

STATIC CONST CHAR16 NameEfiBootServicesDataShort[] = L"BS_Data"

Definition at line 35 of file MemMap.c.

◆ NameEfiConventionalMemory

STATIC CONST CHAR16 NameEfiConventionalMemory[] = L"Available"

Definition at line 21 of file MemMap.c.

◆ NameEfiLoaderCode

STATIC CONST CHAR16 NameEfiLoaderCode[] = L"LoaderCode"

Definition at line 15 of file MemMap.c.

◆ NameEfiLoaderData

STATIC CONST CHAR16 NameEfiLoaderData[] = L"LoaderData"

Definition at line 16 of file MemMap.c.

◆ NameEfiMemoryMappedIO

STATIC CONST CHAR16 NameEfiMemoryMappedIO[] = L"MemoryMappedIO"

Definition at line 26 of file MemMap.c.

◆ NameEfiMemoryMappedIOPortSpace

STATIC CONST CHAR16 NameEfiMemoryMappedIOPortSpace[] = L"MemoryMappedIOPortSpace"

Definition at line 27 of file MemMap.c.

◆ NameEfiMemoryMappedIOPortSpaceShort

STATIC CONST CHAR16 NameEfiMemoryMappedIOPortSpaceShort[] = L"MMIO_Port"

Definition at line 42 of file MemMap.c.

◆ NameEfiMemoryMappedIOShort

STATIC CONST CHAR16 NameEfiMemoryMappedIOShort[] = L"MMIO"

Definition at line 41 of file MemMap.c.

◆ NameEfiPalCode

STATIC CONST CHAR16 NameEfiPalCode[] = L"PalCode"

Definition at line 28 of file MemMap.c.

◆ NameEfiPersistentMemory

STATIC CONST CHAR16 NameEfiPersistentMemory[] = L"Persistent"

Definition at line 22 of file MemMap.c.

◆ NameEfiReservedMemoryType

STATIC CONST CHAR16 NameEfiReservedMemoryType[] = L"Reserved"

Definition at line 14 of file MemMap.c.

◆ NameEfiRuntimeServicesCode

STATIC CONST CHAR16 NameEfiRuntimeServicesCode[] = L"RuntimeCode"

Definition at line 19 of file MemMap.c.

◆ NameEfiRuntimeServicesCodeShort

STATIC CONST CHAR16 NameEfiRuntimeServicesCodeShort[] = L"RT_Code"

Definition at line 36 of file MemMap.c.

◆ NameEfiRuntimeServicesData

STATIC CONST CHAR16 NameEfiRuntimeServicesData[] = L"RuntimeData"

Definition at line 20 of file MemMap.c.

◆ NameEfiRuntimeServicesDataShort

STATIC CONST CHAR16 NameEfiRuntimeServicesDataShort[] = L"RT_Data"

Definition at line 37 of file MemMap.c.

◆ NameEfiUnacceptedMemoryType

STATIC CONST CHAR16 NameEfiUnacceptedMemoryType[] = L"Unaccepted"

Definition at line 29 of file MemMap.c.

◆ NameEfiUnusableMemory

STATIC CONST CHAR16 NameEfiUnusableMemory[] = L"UnusableMemory"

Definition at line 23 of file MemMap.c.

◆ NameEfiUnusableMemoryShort

STATIC CONST CHAR16 NameEfiUnusableMemoryShort[] = L"Unusable"

Definition at line 38 of file MemMap.c.