]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConsole.c
IntelFrameworkModulePkg: Clean up source files
[mirror_edk2.git] / IntelFrameworkModulePkg / Library / GenericBdsLib / BdsConsole.c
index 9c21cfcd59491e69327d803a5cce194dae492042..167ad69c6486f6f98a1589c6fb7cd8fd05c98d17 100644 (file)
@@ -19,7 +19,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   Check if we need to save the EFI variable with "ConVarName" as name\r
   as NV type\r
   If ConVarName is NULL, then ASSERT().\r
-  \r
+\r
   @param ConVarName The name of the EFI variable.\r
 \r
   @retval TRUE    Set the EFI variable as NV type.\r
@@ -33,7 +33,7 @@ IsNvNeed (
   CHAR16 *Ptr;\r
 \r
   ASSERT (ConVarName != NULL);\r
-  \r
+\r
   Ptr = ConVarName;\r
 \r
   //\r
@@ -47,7 +47,7 @@ IsNvNeed (
   if (((INTN)((UINTN)Ptr - (UINTN)ConVarName) / sizeof (CHAR16)) <= 3) {\r
     return TRUE;\r
   }\r
-  \r
+\r
   if ((*(Ptr - 3) == 'D') && (*(Ptr - 2) == 'e') && (*(Ptr - 1) == 'v')) {\r
     return FALSE;\r
   } else {\r
@@ -59,20 +59,20 @@ IsNvNeed (
   Fill console handle in System Table if there are no valid console handle in.\r
 \r
   Firstly, check the validation of console handle in System Table. If it is invalid,\r
-  update it by the first console device handle from EFI console variable. \r
+  update it by the first console device handle from EFI console variable.\r
 \r
   @param  VarName            The name of the EFI console variable.\r
   @param  ConsoleGuid        Specified Console protocol GUID.\r
-  @param  ConsoleHandle      On IN,  console handle in System Table to be checked. \r
+  @param  ConsoleHandle      On IN,  console handle in System Table to be checked.\r
                              On OUT, new console handle in system table.\r
-  @param  ProtocolInterface  On IN,  console protocol on console handle in System Table to be checked. \r
+  @param  ProtocolInterface  On IN,  console protocol on console handle in System Table to be checked.\r
                              On OUT, new console protocol on new console handle in system table.\r
 \r
   @retval TRUE               System Table has been updated.\r
   @retval FALSE              System Table hasn't been updated.\r
 \r
 **/\r
-BOOLEAN \r
+BOOLEAN\r
 UpdateSystemTableConsole (\r
   IN     CHAR16                          *VarName,\r
   IN     EFI_GUID                        *ConsoleGuid,\r
@@ -108,7 +108,7 @@ UpdateSystemTableConsole (
       return FALSE;\r
     }\r
   }\r
-  \r
+\r
   //\r
   // Get all possible consoles device path from EFI variable\r
   //\r
@@ -135,7 +135,7 @@ UpdateSystemTableConsole (
       FreePool (FullDevicePath);\r
       ASSERT (FALSE);\r
     }\r
-    \r
+\r
     //\r
     // Find console device handle by device path instance\r
     //\r
@@ -371,7 +371,7 @@ BdsLibConnectConsoleVariable (
       FreePool (StartDevicePath);\r
       return EFI_UNSUPPORTED;\r
     }\r
-    \r
+\r
     Next      = Instance;\r
     while (!IsDevicePathEndType (Next)) {\r
       Next = NextDevicePathNode (Next);\r
@@ -380,7 +380,7 @@ BdsLibConnectConsoleVariable (
     SetDevicePathEndNode (Next);\r
     //\r
     // Connect the USB console\r
-    // USB console device path is a short-form device path that \r
+    // USB console device path is a short-form device path that\r
     //  starts with the first element being a USB WWID\r
     //  or a USB Class device path\r
     //\r
@@ -791,7 +791,7 @@ EnableQuietBoot (
         Attribute   = EfiBadgingDisplayAttributeCenter;\r
       } else {\r
         Attribute   = EfiBadgingDisplayAttributeCustomized;\r
-      } \r
+      }\r
     }\r
 \r
     if (Blt != NULL) {\r
@@ -968,7 +968,7 @@ Done:
     Status = EFI_SUCCESS;\r
   } else {\r
     //\r
-    // More than one Logo displayed, get merged BltBuffer using VideoToBuffer operation. \r
+    // More than one Logo displayed, get merged BltBuffer using VideoToBuffer operation.\r
     //\r
     if (Blt != NULL) {\r
       FreePool (Blt);\r
@@ -1034,7 +1034,7 @@ Done:
 }\r
 \r
 /**\r
-  Use SystemTable Conout to turn on video based Simple Text Out consoles. The \r
+  Use SystemTable Conout to turn on video based Simple Text Out consoles. The\r
   Simple Text Out screens will now be synced up with all non video output devices\r
 \r
   @retval EFI_SUCCESS     UGA devices are back in text mode and synced up.\r