]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmbeddedPkg/Ebl/HwIoDebug.c
MdeModulePkg Variable: Update GetNextVariableName to follow UEFI 2.7
[mirror_edk2.git] / EmbeddedPkg / Ebl / HwIoDebug.c
index d32aba6a2e45ea8dccc65755ca7d44a7274cad93..6c99e7af0e606f41dd391c03e12b9bd5cb98c655 100644 (file)
@@ -1,10 +1,11 @@
 /** @file\r
   Hardware IO based debug commands\r
 \r
-  Copyright (c) 2007, Intel Corporation<BR>\r
-  Portions copyright (c) 2008-2009, Apple Inc. All rights reserved.\r
+  Copyright (c) 2007, Intel Corporation. All rights reserved.<BR>\r
+  Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
+  (C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR>\r
 \r
-  All rights reserved. This program and the accompanying materials\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
@@ -12,7 +13,7 @@
   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
 \r
-  Commands useful for debugging hardware. IO commands seperated out as not all\r
+  Commands useful for debugging hardware. IO commands separated out as not all\r
   processor architectures support the IO command.\r
 \r
 **/\r
 /**\r
   Read from IO space\r
 \r
-  Argv[0] - "ioread"[.#] # is optiona width 1, 2, or 4. Default 1\r
+  Argv[0] - "ioread"[.#] # is optional width 1, 2, or 4. Default 1\r
   Argv[1] - Hex IO address\r
 \r
   ior.4 0x3f8  ;Do a 32-bit IO Read from 0x3f8\r
   ior   0x3f8  ;Do a  8-bit IO Read from 0x3f8\r
 \r
   @param  Argc   Number of command arguments in Argv\r
-  @param  Argv   Array of strings that represent the parsed command line. \r
-                 Argv[0] is the comamnd name\r
+  @param  Argv   Array of strings that represent the parsed command line.\r
+                 Argv[0] is the command name\r
 \r
   @return EFI_SUCCESS\r
 \r
 **/\r
 EFI_STATUS\r
+EFIAPI\r
 EblIoReadCmd (\r
   IN UINTN  Argc,\r
   IN CHAR8  **Argv\r
@@ -73,7 +75,7 @@ EblIoReadCmd (
 /**\r
   Write to IO space\r
 \r
-  Argv[0] - "iowrite"[.#] # is optiona width 1, 2, or 4. Default 1\r
+  Argv[0] - "iowrite"[.#] # is optional width 1, 2, or 4. Default 1\r
   Argv[1] - Hex IO address\r
   Argv[2] - Hex data to write\r
 \r
@@ -81,13 +83,14 @@ EblIoReadCmd (
   iow   0x3f8 af  ;Do an 8-bit IO write of af to 0x3f8\r
 \r
   @param  Argc   Number of command arguments in Argv\r
-  @param  Argv   Array of strings that represent the parsed command line. \r
-                 Argv[0] is the comamnd name\r
+  @param  Argv   Array of strings that represent the parsed command line.\r
+                 Argv[0] is the command name\r
 \r
   @return EFI_SUCCESS\r
 \r
 **/\r
 EFI_STATUS\r
+EFIAPI\r
 EblIoWriteCmd (\r
   IN UINTN  Argc,\r
   IN CHAR8  **Argv\r
@@ -104,7 +107,7 @@ EblIoWriteCmd (
   Port = AsciiStrHexToUintn (Argv[1]);\r
   Data = AsciiStrHexToUintn (Argv[2]);\r
   Width = WidthFromCommandName (Argv[0], 1);\r
\r
+\r
   if (Width == 1) {\r
     IoWrite8 (Port, (UINT8)Data);\r
   } else if (Width == 2) {\r