EmbeddedPkg/FdtPlatformDxe: Introduce EFI Shell command 'dumfdt'
This command dumps the Flat Device Tree currently installed in the EFI Configuration Table. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin <olivier.martin@arm.com> Reviewed-by: Ronald Cron <Ronald.Cron@arm.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17303 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
committed by
oliviermartin
parent
3d7f106085
commit
b0866ad398
@@ -127,4 +127,48 @@ ShellDynCmdSetFdtGetHelp (
|
||||
IN CONST CHAR8 *Language
|
||||
);
|
||||
|
||||
/**
|
||||
This is the shell command "dumpfdt" handler function. This function handles
|
||||
the command when it is invoked in the shell.
|
||||
|
||||
@param[in] This The instance of the
|
||||
EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL.
|
||||
@param[in] SystemTable The pointer to the UEFI system table.
|
||||
@param[in] ShellParameters The parameters associated with the command.
|
||||
@param[in] Shell The instance of the shell protocol used in the
|
||||
context of processing this command.
|
||||
|
||||
@return SHELL_SUCCESS The operation was successful.
|
||||
@return SHELL_ABORTED Operation aborted due to internal error.
|
||||
@return SHELL_NOT_FOUND Failed to locate the Device Tree into the EFI Configuration Table
|
||||
@return SHELL_OUT_OF_RESOURCES A memory allocation failed.
|
||||
|
||||
**/
|
||||
SHELL_STATUS
|
||||
EFIAPI
|
||||
ShellDynCmdDumpFdtHandler (
|
||||
IN EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL *This,
|
||||
IN EFI_SYSTEM_TABLE *SystemTable,
|
||||
IN EFI_SHELL_PARAMETERS_PROTOCOL *ShellParameters,
|
||||
IN EFI_SHELL_PROTOCOL *Shell
|
||||
);
|
||||
|
||||
/**
|
||||
This is the shell command "dumpfdt" help handler function. This
|
||||
function returns the formatted help for the "dumpfdt" command.
|
||||
The format matchs that in Appendix B of the revision 2.1 of the
|
||||
UEFI Shell Specification.
|
||||
|
||||
@param[in] This The instance of the EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL.
|
||||
@param[in] Language The pointer to the language string to use.
|
||||
|
||||
@return CHAR16* Pool allocated help string, must be freed by caller.
|
||||
**/
|
||||
CHAR16*
|
||||
EFIAPI
|
||||
ShellDynCmdDumpFdtGetHelp (
|
||||
IN EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL *This,
|
||||
IN CONST CHAR8 *Language
|
||||
);
|
||||
|
||||
#endif /* __FDT_PLATFORM_DXE_H__ */
|
||||
|
Reference in New Issue
Block a user