X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=EmbeddedPkg%2FLibrary%2FEblAddExternalCommandLib%2FEblAddExternalCommandLib.c;h=3b9f1846d3cf569cf8f5e353bcc1a7db68264e27;hp=a95de6919042f014aa40339729c57c0d9a7e938d;hb=d780544d3d1c67e2663e146e97c29bb2dc308172;hpb=e4dbec73c5f31286bb1645465d87a65793cfadce diff --git a/EmbeddedPkg/Library/EblAddExternalCommandLib/EblAddExternalCommandLib.c b/EmbeddedPkg/Library/EblAddExternalCommandLib/EblAddExternalCommandLib.c index a95de69190..3b9f1846d3 100644 --- a/EmbeddedPkg/Library/EblAddExternalCommandLib/EblAddExternalCommandLib.c +++ b/EmbeddedPkg/Library/EblAddExternalCommandLib/EblAddExternalCommandLib.c @@ -1,10 +1,10 @@ /** @file Add external EblCmd Lib - Copyright (c) 2007, Intel Corporation
- Portions copyright (c) 2008-2009, Apple Inc. All rights reserved. + Copyright (c) 2007, Intel Corporation. All rights reserved.
+ Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
- All rights reserved. This program and the accompanying materials + 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 @@ -31,12 +31,12 @@ EBL_ADD_COMMAND_PROTOCOL *gEblExternalCommand = NULL; /** Return a keypress or optionally timeout if a timeout value was passed in. - An optional callback funciton is called evey second when waiting for a + An optional callback function is called every second when waiting for a timeout. @param Key EFI Key information returned @param TimeoutInSec Number of seconds to wait to timeout - @param CallBack Callback called every second during the timeout wait + @param CallBack Callback called every second during the timeout wait @return EFI_SUCCESS Key was returned @return EFI_TIMEOUT If the TimoutInSec expired @@ -64,7 +64,7 @@ EblGetCharKey ( If the use hits Q to quit return TRUE else for any other key return FALSE. PrefixNewline is used to figure out if a newline is needed before the prompt string. This depends on the last print done before calling this function. - CurrentRow is updated by one on a call or set back to zero if a prompt is + CurrentRow is updated by one on a call or set back to zero if a prompt is needed. @param CurrentRow Used to figure out if its the end of the page and updated @@ -118,12 +118,12 @@ EblAddCommandNotificationEvent ( /** The user Entry Point for the driver. The user code starts with this function - as the real entry point for the image goes into a library that calls this + as the real entry point for the image goes into a library that calls this function. - @param[in] ImageHandle The firmware allocated handle for the EFI image. + @param[in] ImageHandle The firmware allocated handle for the EFI image. @param[in] SystemTable A pointer to the EFI System Table. - + @retval EFI_SUCCESS The entry point is executed successfully. @retval other Some error occurs when executing this entry point. @@ -141,7 +141,7 @@ EblAddExternalCommands ( mAddExternalCmdLibTemplate = EntryArray; mAddExternalCmdLibTemplateSize = ArrayCount; - + EfiCreateProtocolNotifyEvent ( &gEfiEblAddCommandProtocolGuid, TPL_CALLBACK, @@ -149,7 +149,7 @@ EblAddExternalCommands ( NULL, &mEblCommandRegistration ); - + return EFI_SUCCESS; }