]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatform.c
MdeModulePkg: Clean up source files
[mirror_edk2.git] / MdeModulePkg / Universal / Console / ConPlatformDxe / ConPlatform.c
index 6b53e8ac74e36c480bb989086529993c39e9b7c1..5fa7facfcac809393f9e7632a10d4e1723a89d60 100644 (file)
@@ -2,7 +2,7 @@
   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
@@ -80,7 +80,7 @@ InitializeConPlatform(
 \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
@@ -108,7 +108,7 @@ ConPlatformTextInDriverBindingSupported (
 \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
@@ -136,7 +136,7 @@ ConPlatformTextOutDriverBindingSupported (
 \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
@@ -202,9 +202,9 @@ ConPlatformDriverBindingSupported (
   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
@@ -334,9 +334,9 @@ ConPlatformTextInDriverBindingStart (
   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
@@ -450,7 +450,7 @@ ConPlatformTextOutDriverBindingStart (
     }\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
@@ -511,7 +511,7 @@ ConPlatformTextOutDriverBindingStart (
 }\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
@@ -585,7 +585,7 @@ ConPlatformTextInDriverBindingStop (
 \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
@@ -714,7 +714,7 @@ ConPlatformUnInstallProtocol (
   @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
@@ -922,7 +922,7 @@ ConPlatformMatchDevicePaths (
 }\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
@@ -958,7 +958,7 @@ ConPlatformUpdateDeviceVariable (
   if (Operation != Delete) {\r
     //\r
     // Match specified DevicePath in Console Variable.\r
-    // \r
+    //\r
     Status = ConPlatformMatchDevicePaths (\r
                VariableDevicePath,\r
                DevicePath,\r
@@ -1052,7 +1052,7 @@ IsHotPlugDevice (
   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
@@ -1069,7 +1069,7 @@ IsHotPlugDevice (
       //\r
       return TRUE;\r
     }\r
-  \r
+\r
     CheckDevicePath = NextDevicePathNode (CheckDevicePath);\r
   }\r
 \r