MdeModulePkg: Clean up source files
1. Do not use tab characters 2. No trailing white space in one line 3. All files must end with CRLF Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
Console Platform DXE Driver, install Console Device Guids and update Console
|
||||
Environment Variables.
|
||||
|
||||
Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
@@ -80,7 +80,7 @@ InitializeConPlatform(
|
||||
|
||||
|
||||
/**
|
||||
Test to see if EFI_SIMPLE_TEXT_INPUT_PROTOCOL is supported on ControllerHandle.
|
||||
Test to see if EFI_SIMPLE_TEXT_INPUT_PROTOCOL is supported on ControllerHandle.
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
@param ControllerHandle Handle of device to test.
|
||||
@@ -108,7 +108,7 @@ ConPlatformTextInDriverBindingSupported (
|
||||
|
||||
|
||||
/**
|
||||
Test to see if EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL is supported on ControllerHandle.
|
||||
Test to see if EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL is supported on ControllerHandle.
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
@param ControllerHandle Handle of device to test.
|
||||
@@ -136,7 +136,7 @@ ConPlatformTextOutDriverBindingSupported (
|
||||
|
||||
|
||||
/**
|
||||
Test to see if the specified protocol is supported on ControllerHandle.
|
||||
Test to see if the specified protocol is supported on ControllerHandle.
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
@param ControllerHandle Handle of device to test.
|
||||
@@ -202,9 +202,9 @@ ConPlatformDriverBindingSupported (
|
||||
Start this driver on ControllerHandle by opening Simple Text Input Protocol,
|
||||
reading Device Path, and installing Console In Devcice GUID on ControllerHandle.
|
||||
|
||||
If this devcie is not one hot-plug devce, append its device path into the
|
||||
If this devcie is not one hot-plug devce, append its device path into the
|
||||
console environment variables ConInDev.
|
||||
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
@param ControllerHandle Handle of device to bind driver to
|
||||
@param RemainingDevicePath Optional parameter use to pick a specific child
|
||||
@@ -334,9 +334,9 @@ ConPlatformTextInDriverBindingStart (
|
||||
reading Device Path, and installing Console Out Devcic GUID, Standard Error
|
||||
Device GUID on ControllerHandle.
|
||||
|
||||
If this devcie is not one hot-plug devce, append its device path into the
|
||||
If this devcie is not one hot-plug devce, append its device path into the
|
||||
console environment variables ConOutDev, ErrOutDev.
|
||||
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
@param ControllerHandle Handle of device to bind driver to
|
||||
@param RemainingDevicePath Optional parameter use to pick a specific child
|
||||
@@ -450,7 +450,7 @@ ConPlatformTextOutDriverBindingStart (
|
||||
}
|
||||
} else {
|
||||
//
|
||||
// If it is not a hot-plug device, append the device path to
|
||||
// If it is not a hot-plug device, append the device path to
|
||||
// the ConOutDev and ErrOutDev environment variable.
|
||||
// For GOP device path, append the sibling device path as well.
|
||||
//
|
||||
@@ -511,7 +511,7 @@ ConPlatformTextOutDriverBindingStart (
|
||||
}
|
||||
|
||||
/**
|
||||
Stop this driver on ControllerHandle by removing Console In Devcice GUID
|
||||
Stop this driver on ControllerHandle by removing Console In Devcice GUID
|
||||
and closing the Simple Text Input protocol on ControllerHandle.
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
@@ -585,7 +585,7 @@ ConPlatformTextInDriverBindingStop (
|
||||
|
||||
|
||||
/**
|
||||
Stop this driver on ControllerHandle by removing Console Out Devcice GUID
|
||||
Stop this driver on ControllerHandle by removing Console Out Devcice GUID
|
||||
and closing the Simple Text Output protocol on ControllerHandle.
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
@@ -714,7 +714,7 @@ ConPlatformUnInstallProtocol (
|
||||
@param Name String part of EFI variable name
|
||||
|
||||
@return Dynamically allocated memory that contains a copy of the EFI variable.
|
||||
Caller is repsoncible freeing the buffer. Return NULL means Variable
|
||||
Caller is repsoncible freeing the buffer. Return NULL means Variable
|
||||
was not read.
|
||||
|
||||
**/
|
||||
@@ -922,7 +922,7 @@ ConPlatformMatchDevicePaths (
|
||||
}
|
||||
|
||||
/**
|
||||
Update console environment variables.
|
||||
Update console environment variables.
|
||||
|
||||
@param VariableName Console environment variables, ConOutDev, ConInDev
|
||||
ErrOutDev, ConIn ,ConOut or ErrOut.
|
||||
@@ -958,7 +958,7 @@ ConPlatformUpdateDeviceVariable (
|
||||
if (Operation != Delete) {
|
||||
//
|
||||
// Match specified DevicePath in Console Variable.
|
||||
//
|
||||
//
|
||||
Status = ConPlatformMatchDevicePaths (
|
||||
VariableDevicePath,
|
||||
DevicePath,
|
||||
@@ -1052,7 +1052,7 @@ IsHotPlugDevice (
|
||||
while (!IsDevicePathEnd (CheckDevicePath)) {
|
||||
//
|
||||
// Check device whether is hot plug device or not throught Device Path
|
||||
//
|
||||
//
|
||||
if ((DevicePathType (CheckDevicePath) == MESSAGING_DEVICE_PATH) &&
|
||||
(DevicePathSubType (CheckDevicePath) == MSG_USB_DP ||
|
||||
DevicePathSubType (CheckDevicePath) == MSG_USB_CLASS_DP ||
|
||||
@@ -1069,7 +1069,7 @@ IsHotPlugDevice (
|
||||
//
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
CheckDevicePath = NextDevicePathNode (CheckDevicePath);
|
||||
}
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
Header file for Console Platfrom DXE Driver.
|
||||
|
||||
Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
@@ -56,7 +56,7 @@ typedef enum {
|
||||
} CONPLATFORM_VAR_OPERATION;
|
||||
|
||||
/**
|
||||
Test to see if specific protocol could be supported on the ControllerHandle.
|
||||
Test to see if specific protocol could be supported on the ControllerHandle.
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
@param ControllerHandle Handle of device to test.
|
||||
@@ -74,7 +74,7 @@ ConPlatformDriverBindingSupported (
|
||||
);
|
||||
|
||||
/**
|
||||
Test to see if EFI_SIMPLE_TEXT_INPUT_PROTOCOL is supported on ControllerHandle.
|
||||
Test to see if EFI_SIMPLE_TEXT_INPUT_PROTOCOL is supported on ControllerHandle.
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
@param ControllerHandle Handle of device to test.
|
||||
@@ -94,7 +94,7 @@ ConPlatformTextInDriverBindingSupported (
|
||||
);
|
||||
|
||||
/**
|
||||
Test to see if EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL is supported on ControllerHandle.
|
||||
Test to see if EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL is supported on ControllerHandle.
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
@param ControllerHandle Handle of device to test.
|
||||
@@ -119,9 +119,9 @@ ConPlatformTextOutDriverBindingSupported (
|
||||
Start this driver on ControllerHandle by opening Simple Text Input Protocol,
|
||||
reading Device Path, and installing Console In Devcice GUID on ControllerHandle.
|
||||
|
||||
If this devcie is not one hot-plug devce, append its device path into the
|
||||
If this devcie is not one hot-plug devce, append its device path into the
|
||||
console environment variables ConInDev.
|
||||
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
@param ControllerHandle Handle of device to bind driver to
|
||||
@param RemainingDevicePath Optional parameter use to pick a specific child
|
||||
@@ -147,9 +147,9 @@ ConPlatformTextInDriverBindingStart (
|
||||
reading Device Path, and installing Console Out Devcic GUID, Standard Error
|
||||
Device GUID on ControllerHandle.
|
||||
|
||||
If this devcie is not one hot-plug devce, append its device path into the
|
||||
If this devcie is not one hot-plug devce, append its device path into the
|
||||
console environment variables ConOutDev, StdErrDev.
|
||||
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
@param ControllerHandle Handle of device to bind driver to
|
||||
@param RemainingDevicePath Optional parameter use to pick a specific child
|
||||
@@ -169,7 +169,7 @@ ConPlatformTextOutDriverBindingStart (
|
||||
);
|
||||
|
||||
/**
|
||||
Stop this driver on ControllerHandle by removing Console In Devcice GUID
|
||||
Stop this driver on ControllerHandle by removing Console In Devcice GUID
|
||||
and closing the Simple Text Input protocol on ControllerHandle.
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
@@ -192,7 +192,7 @@ ConPlatformTextInDriverBindingStop (
|
||||
);
|
||||
|
||||
/**
|
||||
Stop this driver on ControllerHandle by removing Console Out Devcice GUID
|
||||
Stop this driver on ControllerHandle by removing Console Out Devcice GUID
|
||||
and closing the Simple Text Output protocol on ControllerHandle.
|
||||
|
||||
@param This Protocol instance pointer.
|
||||
@@ -236,7 +236,7 @@ ConPlatformUnInstallProtocol (
|
||||
@param Name String part of EFI variable name
|
||||
|
||||
@return Dynamically allocated memory that contains a copy of the EFI variable.
|
||||
Caller is repsoncible freeing the buffer. Return NULL means Variable
|
||||
Caller is repsoncible freeing the buffer. Return NULL means Variable
|
||||
was not read.
|
||||
|
||||
**/
|
||||
|
@@ -4,7 +4,7 @@
|
||||
# Console Platfrom DXE Driver that specifies whether device can be used as console
|
||||
# input/output device or error output device and update global variables accordingly.
|
||||
#
|
||||
# Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>
|
||||
# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
#
|
||||
# This program and the accompanying materials
|
||||
# are licensed and made available under the terms and conditions of the BSD License
|
||||
@@ -96,4 +96,4 @@
|
||||
gEfiGraphicsOutputProtocolGuid ## SOMETIMES_CONSUMES
|
||||
|
||||
[UserExtensions.TianoCore."ExtraFiles"]
|
||||
ConPlatformDxeExtra.uni
|
||||
ConPlatformDxeExtra.uni
|
||||
|
@@ -1,7 +1,7 @@
|
||||
// /** @file
|
||||
// ConPlatformDxe Localized Strings and Content
|
||||
//
|
||||
// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
//
|
||||
// This program and the accompanying materials
|
||||
// are licensed and made available under the terms and conditions of the BSD License
|
||||
@@ -12,8 +12,8 @@
|
||||
//
|
||||
// **/
|
||||
|
||||
#string STR_PROPERTIES_MODULE_NAME
|
||||
#language en-US
|
||||
#string STR_PROPERTIES_MODULE_NAME
|
||||
#language en-US
|
||||
"Console Platform DXE Driver"
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user