]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmbeddedPkg/Drivers/FdtPlatformDxe/FdtPlatform.h
EmbeddedPkg: import Lan91x Ethernet controller driver
[mirror_edk2.git] / EmbeddedPkg / Drivers / FdtPlatformDxe / FdtPlatform.h
index 297927aaacf998ee76fc08675f423ab82d0bab9d..a631f2847bf5584f6043bcf365fb323218caa087 100644 (file)
@@ -19,8 +19,8 @@
 \r
 #include <Protocol/DevicePathToText.h>\r
 #include <Protocol/DevicePathFromText.h>\r
 \r
 #include <Protocol/DevicePathToText.h>\r
 #include <Protocol/DevicePathFromText.h>\r
-#include <Protocol/EfiShell.h>\r
-#include <Protocol/EfiShellDynamicCommand.h>\r
+#include <Protocol/Shell.h>\r
+#include <Protocol/ShellDynamicCommand.h>\r
 \r
 #include <Library/DebugLib.h>\r
 #include <Library/HiiLib.h>\r
 \r
 #include <Library/DebugLib.h>\r
 #include <Library/HiiLib.h>\r
@@ -127,4 +127,48 @@ ShellDynCmdSetFdtGetHelp (
   IN CONST CHAR8                         *Language\r
   );\r
 \r
   IN CONST CHAR8                         *Language\r
   );\r
 \r
+/**\r
+  This is the shell command "dumpfdt" handler function. This function handles\r
+  the command when it is invoked in the shell.\r
+\r
+  @param[in]  This             The instance of the\r
+                               EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL.\r
+  @param[in]  SystemTable      The pointer to the UEFI system table.\r
+  @param[in]  ShellParameters  The parameters associated with the command.\r
+  @param[in]  Shell            The instance of the shell protocol used in the\r
+                               context of processing this command.\r
+\r
+  @return  SHELL_SUCCESS            The operation was successful.\r
+  @return  SHELL_ABORTED            Operation aborted due to internal error.\r
+  @return  SHELL_NOT_FOUND          Failed to locate the Device Tree into the EFI Configuration Table\r
+  @return  SHELL_OUT_OF_RESOURCES   A memory allocation failed.\r
+\r
+**/\r
+SHELL_STATUS\r
+EFIAPI\r
+ShellDynCmdDumpFdtHandler (\r
+  IN EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL  *This,\r
+  IN EFI_SYSTEM_TABLE                    *SystemTable,\r
+  IN EFI_SHELL_PARAMETERS_PROTOCOL       *ShellParameters,\r
+  IN EFI_SHELL_PROTOCOL                  *Shell\r
+  );\r
+\r
+/**\r
+  This is the shell command "dumpfdt" help handler function. This\r
+  function returns the formatted help for the "dumpfdt" command.\r
+  The format matchs that in Appendix B of the revision 2.1 of the\r
+  UEFI Shell Specification.\r
+\r
+  @param[in]  This      The instance of the EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL.\r
+  @param[in]  Language  The pointer to the language string to use.\r
+\r
+  @return  CHAR16*  Pool allocated help string, must be freed by caller.\r
+**/\r
+CHAR16*\r
+EFIAPI\r
+ShellDynCmdDumpFdtGetHelp (\r
+  IN EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL  *This,\r
+  IN CONST CHAR8                         *Language\r
+  );\r
+\r
 #endif /* __FDT_PLATFORM_DXE_H__ */\r
 #endif /* __FDT_PLATFORM_DXE_H__ */\r