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
CHAR16 *Ptr;\r
\r
ASSERT (ConVarName != NULL);\r
- \r
+\r
Ptr = ConVarName;\r
\r
//\r
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
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
return FALSE;\r
}\r
}\r
- \r
+\r
//\r
// Get all possible consoles device path from EFI variable\r
//\r
FreePool (FullDevicePath);\r
ASSERT (FALSE);\r
}\r
- \r
+\r
//\r
// Find console device handle by device path instance\r
//\r
FreePool (StartDevicePath);\r
return EFI_UNSUPPORTED;\r
}\r
- \r
+\r
Next = Instance;\r
while (!IsDevicePathEndType (Next)) {\r
Next = NextDevicePathNode (Next);\r
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
Attribute = EfiBadgingDisplayAttributeCenter;\r
} else {\r
Attribute = EfiBadgingDisplayAttributeCustomized;\r
- } \r
+ }\r
}\r
\r
if (Blt != NULL) {\r
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
}\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