]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmbeddedPkg/Ebl/HwDebug.c
ARM Packages: Fixed missing braces (the warning was disabled by GCC)
[mirror_edk2.git] / EmbeddedPkg / Ebl / HwDebug.c
index 20f0a72d95bebc7f3e9011f90c6d875f528ca3fe..c87d1c4d1ab6dcac8349d3179482b84be8826517 100644 (file)
@@ -1,10 +1,10 @@
 /** @file\r
   Basic command line parser for EBL (Embedded Boot Loader)\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
 \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
@@ -24,7 +24,7 @@
 /**\r
   Dump memory\r
 \r
-  Argv[0] - "md"[.#] # is optiona width 1, 2, 4, or 8. Default 1\r
+  Argv[0] - "md"[.#] # is optional width 1, 2, 4, or 8. Default 1\r
   Argv[1] - Hex Address to dump\r
   Argv[2] - Number of hex bytes to dump (0x20 is default)\r
 \r
@@ -34,7 +34,7 @@
 \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
+                 Argv[0] is the command name\r
 \r
   @return EFI_SUCCESS\r
 \r
@@ -71,7 +71,7 @@ EblMdCmd (
 /**\r
   Fill Memory with data\r
 \r
-  Argv[0] - "mfill"[.#] # is optiona width 1, 2, 4, or 8. Default 4\r
+  Argv[0] - "mfill"[.#] # is optional width 1, 2, 4, or 8. Default 4\r
   Argv[1] - Hex Address to fill\r
   Argv[2] - Data to write (0x00 is default)\r
   Argv[3] - Number of units to dump.\r
@@ -83,7 +83,7 @@ EblMdCmd (
 \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
+                 Argv[0] is the command name\r
 \r
   @return EFI_SUCCESS\r
 \r
@@ -114,9 +114,9 @@ EblMfillCmd (
     if (Width == 4) {\r
       MmioWrite32 (Address, Data);\r
     } else if (Width == 2) {\r
-      MmioWrite32 (Address, (UINT16)Data);\r
+      MmioWrite16 (Address, (UINT16)Data);\r
     } else {\r
-      MmioWrite32 (Address, (UINT8)Data);\r
+      MmioWrite8 (Address, (UINT8)Data);\r
     }\r
   }\r
   \r
@@ -163,7 +163,7 @@ CHAR8 *gPciSerialClassCodes[] = {
 \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
+                 Argv[0] is the command name\r
 \r
   @return EFI_SUCCESS\r
 \r
@@ -255,7 +255,7 @@ EblPciCmd (
         Pci->GetLocation (Pci, &Seg, &Bus, &Dev, &Func);\r
         if ((Bus == BusArg) && (Dev == DevArg) && (Func == FuncArg)) {\r
           // Only print Segment if it is non zero. If you only have one PCI segment it is \r
-          // redundent to print it out\r
+          // redundant to print it out\r
           if (Seg != 0) {\r
             AsciiPrint ("Seg:%d ", Seg);\r
           }\r
@@ -297,10 +297,12 @@ EblPciCmd (
 \r
 \r
 GLOBAL_REMOVE_IF_UNREFERENCED const EBL_COMMAND_TABLE mCmdPciDebugTemplate[] = {\r
-  "pci",\r
-  " [bus] [dev] [func]; Dump PCI",\r
-  NULL,\r
-  EblPciCmd\r
+  {\r
+    "pci",\r
+    " [bus] [dev] [func]; Dump PCI",\r
+    NULL,\r
+    EblPciCmd\r
+  }\r
 };\r
 \r
 \r