summaryrefslogtreecommitdiff
path: root/EdkNt32Pkg/Library/EdkGenericBdsLib/BdsConsole.c
diff options
context:
space:
mode:
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2007-03-30 06:15:19 +0000
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2007-03-30 06:15:19 +0000
commitfa332de7493caee4d3fa22392dc6292cfbb6f224 (patch)
tree3067198e303277699f3879d8d25e66c0254979a8 /EdkNt32Pkg/Library/EdkGenericBdsLib/BdsConsole.c
parentdb29f969a9eb430eb81fd027614d4933c1d450e1 (diff)
downloadedk2-fa332de7493caee4d3fa22392dc6292cfbb6f224.zip
edk2-fa332de7493caee4d3fa22392dc6292cfbb6f224.tar.gz
edk2-fa332de7493caee4d3fa22392dc6292cfbb6f224.tar.bz2
1. Perfect libraries MSA files
2. Use MemoryAllocationLib to replace gBS memory services in EdkEt32Pkg. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2517 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkNt32Pkg/Library/EdkGenericBdsLib/BdsConsole.c')
-rw-r--r--EdkNt32Pkg/Library/EdkGenericBdsLib/BdsConsole.c50
1 files changed, 25 insertions, 25 deletions
diff --git a/EdkNt32Pkg/Library/EdkGenericBdsLib/BdsConsole.c b/EdkNt32Pkg/Library/EdkGenericBdsLib/BdsConsole.c
index 47a79ff..96a1f4b 100644
--- a/EdkNt32Pkg/Library/EdkGenericBdsLib/BdsConsole.c
+++ b/EdkNt32Pkg/Library/EdkGenericBdsLib/BdsConsole.c
@@ -1,13 +1,13 @@
/*++
-Copyright (c) 2006, Intel Corporation
-All rights reserved. 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
-http://opensource.org/licenses/bsd-license.php
-
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+Copyright (c) 2006 - 2007, Intel Corporation
+All rights reserved. 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
+http://opensource.org/licenses/bsd-license.php
+
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Module Name:
@@ -25,9 +25,9 @@ IsNvNeed (
)
{
CHAR16 *Ptr;
-
+
Ptr = ConVarName;
-
+
//
// If the variable includes "Dev" at last, we consider
// it does not support NV attribute.
@@ -35,7 +35,7 @@ IsNvNeed (
while (*Ptr) {
Ptr++;
}
-
+
if ((*(Ptr - 3) == 'D') && (*(Ptr - 2) == 'e') && (*(Ptr - 1) == 'v')) {
return FALSE;
} else {
@@ -53,7 +53,7 @@ BdsLibUpdateConsoleVariable (
Routine Description:
- This function update console variable based on ConVarName, it can
+ This function update console variable based on ConVarName, it can
add or remove one specific console device path from the variable
Arguments:
@@ -71,8 +71,8 @@ Arguments:
Returns:
EFI_UNSUPPORTED - Add or remove the same device path.
-
- EFI_SUCCESS - Success add or remove the device path from
+
+ EFI_SUCCESS - Success add or remove the device path from
the console variable.
--*/
@@ -103,12 +103,12 @@ Returns:
&gEfiGlobalVariableGuid,
&DevicePathSize
);
-
+
//
// Initialize NewDevicePath
//
NewDevicePath = VarConsole;
-
+
//
// If ExclusiveDevicePath is even the part of the instance in VarConsole, delete it.
// In the end, NewDevicePath is the final device path.
@@ -134,7 +134,7 @@ Returns:
BdsLibSafeFreePool(TempNewDevicePath);
}
}
-
+
//
// The attribute for ConInDev, ConOutDev and ErrOutDev does not include NV.
//
@@ -149,7 +149,7 @@ Returns:
//
Attributes = EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS;
}
-
+
//
// Finally, Update the variable of the default console by NewDevicePath
//
@@ -192,7 +192,7 @@ Arguments:
Returns:
EFI_NOT_FOUND - There is not any console devices connected success
-
+
EFI_SUCCESS - Success connect any one instance of the console
device path base on the variable ConVarName.
@@ -250,7 +250,7 @@ Returns:
BdsLibSafeFreePool(Instance);
} while (CopyOfDevicePath != NULL);
- gBS->FreePool (StartDevicePath);
+ FreePool (StartDevicePath);
if (DeviceExist == FALSE) {
return EFI_NOT_FOUND;
@@ -346,7 +346,7 @@ BdsLibConnectAllDefaultConsoles (
Routine Description:
- This function will connect console device base on the console
+ This function will connect console device base on the console
device variable ConIn, ConOut and ErrOut.
Arguments:
@@ -357,7 +357,7 @@ Returns:
EFI_SUCCESS - At least one of the ConIn and ConOut device have
been connected success.
-
+
EFI_STATUS - Return the status of BdsLibConnectConsoleVariable ().
--*/
@@ -370,12 +370,12 @@ Returns:
//
// Because possibly the platform is legacy free, in such case,
- // ConIn devices (Serial Port and PS2 Keyboard ) does not exist,
+ // ConIn devices (Serial Port and PS2 Keyboard ) does not exist,
// so we need not check the status.
- //
+ //
BdsLibConnectConsoleVariable (L"ConIn");
- //
+ //
// It seems impossible not to have any ConOut device on platform,
// so we check the status here.
//