]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.h
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / ShellPkg / Library / UefiShellDebug1CommandsLib / UefiShellDebug1CommandsLib.h
index 4a4932eeb7329e19d6912e01b81f7aca86a3a914..e738b3449014cd8f8a88aed6c786957ee7d8d5d0 100644 (file)
@@ -1,14 +1,8 @@
 /** @file\r
   Main file for NULL named library for Profile1 shell command functions.\r
 \r
-  Copyright (c) 2010 - 2015, Intel Corporation. All rights reserved.<BR>\r
-  This program and the accompanying materials\r
-  are licensed and made available under the terms and conditions of the BSD License\r
-  which accompanies this distribution.  The full text of the license may be found at\r
-  http://opensource.org/licenses/bsd-license.php\r
-\r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+  Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
+  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 \r
@@ -16,7 +10,6 @@
 #define _UEFI_SHELL_DEBUG1_COMMANDS_LIB_H_\r
 \r
 #include <Uefi.h>\r
-#include <ShellBase.h>\r
 \r
 #include <Guid/GlobalVariable.h>\r
 #include <Guid/ConsoleInDevice.h>\r
@@ -24,8 +17,8 @@
 #include <Guid/FileSystemInfo.h>\r
 #include <Guid/ShellLibHiiGuid.h>\r
 \r
-#include <Protocol/EfiShell.h>\r
-#include <Protocol/EfiShellParameters.h>\r
+#include <Protocol/Shell.h>\r
+#include <Protocol/ShellParameters.h>\r
 #include <Protocol/DevicePath.h>\r
 #include <Protocol/LoadedImage.h>\r
 #include <Protocol/UnicodeCollation.h>\r
@@ -58,8 +51,7 @@
 #include <Library/PrintLib.h>\r
 #include <Library/HandleParsingLib.h>\r
 \r
-\r
-extern        EFI_HANDLE                        gShellDebug1HiiHandle;\r
+extern        EFI_HII_HANDLE  gShellDebug1HiiHandle;\r
 \r
 /**\r
   Function returns a system configuration table that is stored in the\r
@@ -73,38 +65,8 @@ extern        EFI_HANDLE                        gShellDebug1HiiHandle;
 **/\r
 EFI_STATUS\r
 GetSystemConfigurationTable (\r
-  IN EFI_GUID *TableGuid,\r
-  IN OUT VOID **Table\r
-  );\r
-\r
-/**\r
-  Convert a string representation of a GUID to the GUID value.\r
-\r
-  @param[in]  StringGuid   The pointer to the string containing a GUID printed.\r
-  @param[in, out] Guid     The pointer to the buffer to get the GUID value.\r
-**/\r
-EFI_STATUS\r
-ConvertStringToGuid (\r
-  IN CONST CHAR16 *StringGuid,\r
-  IN OUT EFI_GUID *Guid\r
-  );\r
-\r
-/**\r
-  Convert a Unicode character to numerical value.\r
-\r
-  This internal function only deal with Unicode character\r
-  which maps to a valid hexadecimal ASII character, i.e.\r
-  L'0' to L'9', L'a' to L'f' or L'A' to L'F'. For other\r
-  Unicode character, the value returned does not make sense.\r
-\r
-  @param  Char  The character to convert.\r
-\r
-  @return The numerical value converted.\r
-\r
-**/\r
-UINTN\r
-HexCharToUintn (\r
-  IN      CHAR16                    Char\r
+  IN EFI_GUID  *TableGuid,\r
+  IN OUT VOID  **Table\r
   );\r
 \r
 /**\r
@@ -343,21 +305,21 @@ ShellCommandRunHexEdit (
 \r
 /**\r
   Clear the line at the specified Row.\r
-  \r
+\r
   @param[in] Row                The row number to be cleared ( start from 1 )\r
   @param[in] LastCol            The last printable column.\r
   @param[in] LastRow            The last printable row.\r
 **/\r
 VOID\r
 EditorClearLine (\r
-  IN UINTN Row,\r
-  IN UINTN LastCol,\r
-  IN UINTN LastRow\r
+  IN UINTN  Row,\r
+  IN UINTN  LastCol,\r
+  IN UINTN  LastRow\r
   );\r
 \r
 /**\r
   Check if file name has illegal characters.\r
-  \r
+\r
   @param Name       The filename to check.\r
 \r
   @retval TRUE      The filename is ok.\r
@@ -365,7 +327,7 @@ EditorClearLine (
 **/\r
 BOOLEAN\r
 IsValidFileName (\r
-  IN CONST CHAR16 *Name\r
+  IN CONST CHAR16  *Name\r
   );\r
 \r
 /**\r
@@ -378,22 +340,22 @@ IsValidFileName (
 **/\r
 CHAR16 *\r
 EditGetDefaultFileName (\r
-  IN CONST CHAR16 *Extension\r
+  IN CONST CHAR16  *Extension\r
   );\r
 \r
 /**\r
-  Read a file into an allocated buffer.  The buffer is the responsibility \r
+  Read a file into an allocated buffer.  The buffer is the responsibility\r
   of the caller to free.\r
 \r
   @param[in]  FileName          The filename of the file to open.\r
-  @param[out] Buffer            Upon successful return, the pointer to the \r
-                                address of the allocated buffer.                                  \r
+  @param[out] Buffer            Upon successful return, the pointer to the\r
+                                address of the allocated buffer.\r
   @param[out] BufferSize        If not NULL, then the pointer to the size\r
                                 of the allocated buffer.\r
   @param[out] ReadOnly          Upon successful return TRUE if the file is\r
                                 read only.  FALSE otherwise.\r
 \r
-  @retval EFI_NOT_FOUND         The filename did not represent a file in the \r
+  @retval EFI_NOT_FOUND         The filename did not represent a file in the\r
                                 file system.  Directories cannot be read with\r
                                 this method.\r
   @retval EFI_SUCCESS           The file was read into the buffer.\r
@@ -405,10 +367,10 @@ EditGetDefaultFileName (
 **/\r
 EFI_STATUS\r
 ReadFileIntoBuffer (\r
-  IN CONST CHAR16 *FileName,\r
-  OUT VOID        **Buffer,\r
-  OUT UINTN       *BufferSize OPTIONAL,\r
-  OUT BOOLEAN     *ReadOnly\r
+  IN CONST CHAR16  *FileName,\r
+  OUT VOID         **Buffer,\r
+  OUT UINTN        *BufferSize OPTIONAL,\r
+  OUT BOOLEAN      *ReadOnly\r
   );\r
 \r
 #endif\r