]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmbeddedPkg/Ebl/HwDebug.c
ARM Packages: Removed trailing spaces
[mirror_edk2.git] / EmbeddedPkg / Ebl / HwDebug.c
index c87d1c4d1ab6dcac8349d3179482b84be8826517..226b24500ad4a9fa95d415b59faf337181afece4 100644 (file)
@@ -14,7 +14,7 @@
 \r
   Module Name:  HwDebug.c\r
 \r
-  Commands useful for debugging hardware. \r
+  Commands useful for debugging hardware.\r
 \r
 **/\r
 \r
@@ -33,7 +33,7 @@
   md   0x123445678    ; Dump 0x20 1 byte quantities starting at 0x123445678\r
 \r
   @param  Argc   Number of command arguments in Argv\r
-  @param  Argv   Array of strings that represent the parsed command line. \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
@@ -63,7 +63,7 @@ EblMdCmd (
   OutputData (Address, Length, Width, (UINTN)Address);\r
 \r
   Address += Length;\r
-  \r
+\r
   return EFI_SUCCESS;\r
 }\r
 \r
@@ -82,7 +82,7 @@ EblMdCmd (
   mf 0x123445678          ; Start at 0x123445678 and write 00 (4 byte) to the next 1 byte\r
 \r
   @param  Argc   Number of command arguments in Argv\r
-  @param  Argv   Array of strings that represent the parsed command line. \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
@@ -119,7 +119,7 @@ EblMfillCmd (
       MmioWrite8 (Address, (UINT8)Data);\r
     }\r
   }\r
-  \r
+\r
   return EFI_SUCCESS;\r
 }\r
 \r
@@ -162,7 +162,7 @@ CHAR8 *gPciSerialClassCodes[] = {
   Argv[3] - func\r
 \r
   @param  Argc   Number of command arguments in Argv\r
-  @param  Argv   Array of strings that represent the parsed command line. \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
@@ -195,13 +195,13 @@ EblPciCmd (
   CHAR8                         *Str;\r
   UINTN                         ThisBus;\r
 \r
-  \r
+\r
   BusArg  = (Argc > 1) ? AsciiStrDecimalToUintn (Argv[1]) : 0;\r
   DevArg  = (Argc > 2) ? AsciiStrDecimalToUintn (Argv[2]) : 0;\r
   FuncArg = (Argc > 3) ? AsciiStrDecimalToUintn (Argv[3]) : 0;\r
 \r
   Header = &PciHeader;\r
-  \r
+\r
   Status = gBS->LocateHandleBuffer (ByProtocol, &gEfiPciIoProtocolGuid, NULL, &HandleCount, &HandleBuffer);\r
   if (EFI_ERROR (Status)) {\r
     AsciiPrint ("No PCI devices found in the system\n");\r
@@ -224,7 +224,7 @@ EblPciCmd (
           Status = Pci->Pci.Read (Pci, EfiPciIoWidthUint32, 0, sizeof (PciHeader)/sizeof (UINT32), &PciHeader);\r
           if (!EFI_ERROR (Status)) {\r
             Hdr = &PciHeader.Bridge.Hdr;\r
-            \r
+\r
             if (Hdr->ClassCode[2] < sizeof (gPciDevClass)/sizeof (VOID *)) {\r
               Str = gPciDevClass[Hdr->ClassCode[2]];\r
               if (Hdr->ClassCode[2] == PCI_CLASS_SERIAL) {\r
@@ -239,7 +239,7 @@ EblPciCmd (
             AsciiPrint ("  0x%04x   0x%04x    %a 0x%02x", Hdr->VendorId, Hdr->DeviceId, Str, Hdr->ClassCode[1]);\r
           }\r
           if (Seg != 0) {\r
-            // Only print Segment if it is non zero. If you only have one PCI segment it is \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
             AsciiPrint (" Seg:%d", Seg);\r
           }\r
@@ -254,20 +254,20 @@ EblPciCmd (
       if (!EFI_ERROR (Status)) {\r
         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
+          // Only print Segment if it is non zero. If you only have one PCI segment it is\r
           // redundant to print it out\r
           if (Seg != 0) {\r
             AsciiPrint ("Seg:%d ", Seg);\r
           }\r
           AsciiPrint ("Bus:%d Dev:%d Func:%d ", Bus, Dev, Func);\r
-          \r
+\r
           Status = Pci->Pci.Read (Pci, EfiPciIoWidthUint32, 0, sizeof (PciHeader)/sizeof (UINT32), Header);\r
           if (!EFI_ERROR (Status)) {\r
             Hdr = &PciHeader.Bridge.Hdr;\r
             if (IS_PCI_BRIDGE (&PciHeader.Bridge)) {\r
               Bridge = &PciHeader.Bridge.Bridge;\r
               AsciiPrint (\r
-                "PCI Bridge. Bus Primary %d Secondary %d Subordinate %d\n", \r
+                "PCI Bridge. Bus Primary %d Secondary %d Subordinate %d\n",\r
                 Bridge->PrimaryBus, Bridge->SecondaryBus, Bridge->SubordinateBus\r
                 );\r
               AsciiPrint ("  Bar 0: 0x%08x  Bar 1: 0x%08x\n", Bridge->Bar[0], Bridge->Bar[1]);\r
@@ -283,14 +283,14 @@ EblPciCmd (
               }\r
             }\r
           }\r
-          \r
+\r
           AsciiPrint ("\n");\r
           break;\r
         }\r
       }\r
     }\r
   }\r
-  \r
+\r
   FreePool (HandleBuffer);\r
   return EFI_SUCCESS;\r
 }\r