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

Go to the source code of this file.

Functions

CHAR16 MakePrintable (IN CONST CHAR16 Char)
 
SHELL_STATUS DisplayMmioMemory (IN CONST VOID *Address, IN CONST UINTN Size)
 
SHELL_STATUS DisplayRtProperties (IN UINT64 Address)
 
EFI_STATUS GetBaseName (IN CHAR16 *FileName, OUT CHAR16 **BaseName)
 
EFI_STATUS GetImageExecutionInfo ()
 
SHELL_STATUS DisplayImageExecutionEntries (IN UINT64 Address)
 
SHELL_STATUS DisplayConformanceProfiles (IN UINT64 Address)
 
SHELL_STATUS EFIAPI ShellCommandRunDmem (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Variables

STATIC CONST SHELL_PARAM_ITEM ParamList []
 

Detailed Description

Main file for Dmem shell Debug1 function.

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

Definition in file Dmem.c.

Function Documentation

◆ DisplayConformanceProfiles()

SHELL_STATUS DisplayConformanceProfiles ( IN UINT64  Address)

Display the ConformanceProfileTable entries

Parameters
[in]AddressThe pointer to the ConformanceProfileTable.

Definition at line 279 of file Dmem.c.

◆ DisplayImageExecutionEntries()

SHELL_STATUS DisplayImageExecutionEntries ( IN UINT64  Address)

Display the ImageExecutionTable entries

Parameters
[in]AddressThe pointer to the ImageExecutionTable.

Definition at line 250 of file Dmem.c.

◆ DisplayMmioMemory()

SHELL_STATUS DisplayMmioMemory ( IN CONST VOID *  Address,
IN CONST UINTN  Size 
)

Display some Memory-Mapped-IO memory.

Parameters
[in]AddressThe starting address to display.
[in]SizeThe length of memory to display.

Definition at line 52 of file Dmem.c.

◆ DisplayRtProperties()

SHELL_STATUS DisplayRtProperties ( IN UINT64  Address)

Display the RtPropertiesTable entries

Parameters
[in]AddressThe pointer to the RtPropertiesTable.

Definition at line 94 of file Dmem.c.

◆ GetBaseName()

EFI_STATUS GetBaseName ( IN CHAR16 *  FileName,
OUT CHAR16 **  BaseName 
)

Retrieve the ImageExecutionTable Entry ImageName from ImagePath

Parameters
[in]FileNameThe full path of the image.
[out]BaseNameThe name of the image.

Definition at line 150 of file Dmem.c.

◆ GetImageExecutionInfo()

EFI_STATUS GetImageExecutionInfo ( )

Retrieve the ImageExecutionTable entries.

Definition at line 176 of file Dmem.c.

◆ MakePrintable()

CHAR16 MakePrintable ( IN CONST CHAR16  Char)

Make a printable character.

If Char is printable then return it, otherwise return a question mark.

Parameters
[in]CharThe character to make printable.
Returns
A printable character representing Char.

Definition at line 34 of file Dmem.c.

◆ ShellCommandRunDmem()

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

Function for 'dmem' command.

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

Definition at line 359 of file Dmem.c.

Variable Documentation

◆ ParamList

Initial value:
= {
{ L"-mmio", TypeFlag },
{ L"-verbose", TypeFlag },
{ NULL, TypeMax }
}
#define NULL
Definition: Base.h:319
@ TypeFlag
A flag that is present or not present only (IE "-a").
Definition: ShellLib.h:699

Definition at line 345 of file Dmem.c.