Console Platform DXE Driver, install Console Device Guids and update Console\r
Environment Variables.\r
\r
-Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\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
\r
\r
/**\r
- Test to see if EFI_SIMPLE_TEXT_INPUT_PROTOCOL is supported on ControllerHandle. \r
+ Test to see if EFI_SIMPLE_TEXT_INPUT_PROTOCOL is supported on ControllerHandle.\r
\r
@param This Protocol instance pointer.\r
@param ControllerHandle Handle of device to test.\r
\r
\r
/**\r
- Test to see if EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL is supported on ControllerHandle. \r
+ Test to see if EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL is supported on ControllerHandle.\r
\r
@param This Protocol instance pointer.\r
@param ControllerHandle Handle of device to test.\r
\r
\r
/**\r
- Test to see if the specified protocol is supported on ControllerHandle. \r
+ Test to see if the specified protocol is supported on ControllerHandle.\r
\r
@param This Protocol instance pointer.\r
@param ControllerHandle Handle of device to test.\r
Start this driver on ControllerHandle by opening Simple Text Input Protocol,\r
reading Device Path, and installing Console In Devcice GUID on ControllerHandle.\r
\r
- If this devcie is not one hot-plug devce, append its device path into the \r
+ If this devcie is not one hot-plug devce, append its device path into the\r
console environment variables ConInDev.\r
- \r
+\r
@param This Protocol instance pointer.\r
@param ControllerHandle Handle of device to bind driver to\r
@param RemainingDevicePath Optional parameter use to pick a specific child\r
reading Device Path, and installing Console Out Devcic GUID, Standard Error\r
Device GUID on ControllerHandle.\r
\r
- If this devcie is not one hot-plug devce, append its device path into the \r
+ If this devcie is not one hot-plug devce, append its device path into the\r
console environment variables ConOutDev, ErrOutDev.\r
- \r
+\r
@param This Protocol instance pointer.\r
@param ControllerHandle Handle of device to bind driver to\r
@param RemainingDevicePath Optional parameter use to pick a specific child\r
}\r
} else {\r
//\r
- // If it is not a hot-plug device, append the device path to \r
+ // If it is not a hot-plug device, append the device path to\r
// the ConOutDev and ErrOutDev environment variable.\r
// For GOP device path, append the sibling device path as well.\r
//\r
}\r
\r
/**\r
- Stop this driver on ControllerHandle by removing Console In Devcice GUID \r
+ Stop this driver on ControllerHandle by removing Console In Devcice GUID\r
and closing the Simple Text Input protocol on ControllerHandle.\r
\r
@param This Protocol instance pointer.\r
\r
\r
/**\r
- Stop this driver on ControllerHandle by removing Console Out Devcice GUID \r
+ Stop this driver on ControllerHandle by removing Console Out Devcice GUID\r
and closing the Simple Text Output protocol on ControllerHandle.\r
\r
@param This Protocol instance pointer.\r
@param Name String part of EFI variable name\r
\r
@return Dynamically allocated memory that contains a copy of the EFI variable.\r
- Caller is repsoncible freeing the buffer. Return NULL means Variable \r
+ Caller is repsoncible freeing the buffer. Return NULL means Variable\r
was not read.\r
\r
**/\r
}\r
\r
/**\r
- Update console environment variables. \r
+ Update console environment variables.\r
\r
@param VariableName Console environment variables, ConOutDev, ConInDev\r
ErrOutDev, ConIn ,ConOut or ErrOut.\r
if (Operation != Delete) {\r
//\r
// Match specified DevicePath in Console Variable.\r
- // \r
+ //\r
Status = ConPlatformMatchDevicePaths (\r
VariableDevicePath,\r
DevicePath,\r
while (!IsDevicePathEnd (CheckDevicePath)) {\r
//\r
// Check device whether is hot plug device or not throught Device Path\r
- // \r
+ //\r
if ((DevicePathType (CheckDevicePath) == MESSAGING_DEVICE_PATH) &&\r
(DevicePathSubType (CheckDevicePath) == MSG_USB_DP ||\r
DevicePathSubType (CheckDevicePath) == MSG_USB_CLASS_DP ||\r
//\r
return TRUE;\r
}\r
- \r
+\r
CheckDevicePath = NextDevicePathNode (CheckDevicePath);\r
}\r
\r