From bc79c731b4eaec270bfb62d32b9fc2cc321eee61 Mon Sep 17 00:00:00 2001 From: czhang46 Date: Fri, 17 Aug 2012 07:36:56 +0000 Subject: Fix the issue that consplitter should not touch ConIn variable & do ConIn connection Signed-off-by: Chao Zhang Reviewed-by : Hot Tian Reviewed-by : Ni, Ruiyu git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13644 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Include/Library/GenericBdsLib.h | 49 +++++++++++++++++----- 1 file changed, 39 insertions(+), 10 deletions(-) (limited to 'IntelFrameworkModulePkg/Include/Library/GenericBdsLib.h') diff --git a/IntelFrameworkModulePkg/Include/Library/GenericBdsLib.h b/IntelFrameworkModulePkg/Include/Library/GenericBdsLib.h index 422666abe0..b1887b60ca 100644 --- a/IntelFrameworkModulePkg/Include/Library/GenericBdsLib.h +++ b/IntelFrameworkModulePkg/Include/Library/GenericBdsLib.h @@ -386,9 +386,10 @@ BdsLibConnectAll ( ); /** - This function creates all handles associated with the given device - path node. If the handle associated with one device path node cannot - be created, then it tries to execute the dispatch to load the missing drivers. + This function will create all handles associate with every device + path node. If the handle associate with one device path node can not + be created successfully, then still give chance to do the dispatch, + which load the missing drivers if possible. @param DevicePathToConnect The device path to be connected. Can be a multi-instance device path. @@ -507,17 +508,21 @@ BdsLibUpdateConsoleVariable ( ); /** - Connect the console device base on the variable ConVarName. If - ConVarName is a multi-instance device path, and at least one - instance connects successfully, then this function + Connect the console device base on the variable ConVarName, if + device path of the ConVarName is multi-instance device path and + anyone of the instances is connected success, then this function will return success. + If the handle associate with one device path node can not + be created successfully, then still give chance to do the dispatch, + which load the missing drivers if possible. - @param ConVarName The console related variable name: ConIn, ConOut, + @param ConVarName Console related variable name, ConIn, ConOut, ErrOut. - @retval EFI_NOT_FOUND No console devices were connected successfully - @retval EFI_SUCCESS Connected at least one instance of the console - device path based on the variable ConVarName. + @retval EFI_NOT_FOUND There is not any console devices connected + success + @retval EFI_SUCCESS Success connect any one instance of the console + device path base on the variable ConVarName. **/ EFI_STATUS @@ -526,6 +531,30 @@ BdsLibConnectConsoleVariable ( IN CHAR16 *ConVarName ); +/** + Connect the console device base on the variable ConVarName, if + device path of the ConVarName is multi-instance device path and + anyone of the instances is connected success, then this function + will return success. + Dispatch service is not called when the handle associate with one + device path node can not be created successfully. Here no driver + dependency is assumed exist, so need not to call this service. + + @param ConVarName Console related variable name, ConIn, ConOut, + ErrOut. + + @retval EFI_NOT_FOUND There is not any console devices connected + success + @retval EFI_SUCCESS Success connect any one instance of the console + device path base on the variable ConVarName. + +**/ +EFI_STATUS +EFIAPI +BdsLibConnectConsoleVariableWithOutDispatch ( + IN CHAR16 *ConVarName + ); + // // Bds device path related lib functions // -- cgit v1.2.3