summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c
diff options
context:
space:
mode:
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-09-02 01:23:52 +0000
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-09-02 01:23:52 +0000
commitebe43565f9f7ace6d19410c397c0df7482b022f3 (patch)
tree66a46de58287fd6ba8e92d2d067acaa620b62aa2 /MdeModulePkg/Universal/SetupBrowserDxe/Setup.c
parent08e6463a72f816b51793327ab5b0f2af08b9db1c (diff)
downloadedk2-platforms-ebe43565f9f7ace6d19410c397c0df7482b022f3.tar.xz
Merged in the bug fixes from EDK I.
*** Press F9 in Uefi64 FrontPage shouldnot enter sub-menu ** [FT] Some UI error on multiple platforms on framework_20080811 ** [FT] UI test of How tall are you(Hex) on framework_20080811 To improve backward compatibility, add gEfiPrint2ProtocolGuid and rename gEfiPrintProtocolGuid to the previous GUID value used in EDK I. gEfiPrint2ProtocolGuid is a enhanced version of gEfiPrintProtocolGuid. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5768 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/SetupBrowserDxe/Setup.c')
-rw-r--r--MdeModulePkg/Universal/SetupBrowserDxe/Setup.c30
1 files changed, 22 insertions, 8 deletions
diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c b/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c
index fd5aee4ca1..f728d53910 100644
--- a/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c
+++ b/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c
@@ -24,7 +24,12 @@ SETUP_DRIVER_PRIVATE_DATA mPrivateData = {
BrowserCallback
},
{
- UnicodeVSPrint
+ UnicodeVSPrint,
+ UnicodeVSPrintAsciiFormat,
+ UnicodeValueToString,
+ AsciiVSPrint,
+ AsciiVSPrintUnicodeFormat,
+ AsciiValueToString
}
};
@@ -39,7 +44,6 @@ UINTN gFunctionKeySetting;
BOOLEAN gResetRequired;
BOOLEAN gNvUpdateRequired;
EFI_HII_HANDLE gHiiHandle;
-BOOLEAN gFirstIn;
UINT16 gDirection;
EFI_SCREEN_DESCRIPTOR gScreenDimensions;
BOOLEAN gUpArrow;
@@ -76,6 +80,7 @@ CHAR16 *gMiniString;
CHAR16 *gPlusString;
CHAR16 *gMinusString;
CHAR16 *gAdjustNumber;
+CHAR16 *gSaveChanges;
CHAR16 gPromptBlockWidth;
CHAR16 gOptionBlockWidth;
@@ -274,11 +279,8 @@ SendForm (
//
// Ensure we are in Text mode
//
- if (gFirstIn) {
- gFirstIn = FALSE;
- gST->ConOut->SetAttribute (gST->ConOut, EFI_TEXT_ATTR (EFI_LIGHTGRAY, EFI_BLACK));
- DisableQuietBoot ();
- }
+ gST->ConOut->SetAttribute (gST->ConOut, EFI_TEXT_ATTR (EFI_LIGHTGRAY, EFI_BLACK));
+ DisableQuietBoot ();
for (Index = 0; Index < HandleCount; Index++) {
Selection = AllocateZeroPool (sizeof (UI_MENU_SELECTION));
@@ -576,7 +578,6 @@ InitializeSetup (
//
// Initialize Driver private data
//
- gFirstIn = TRUE;
BannerData = AllocateZeroPool (sizeof (BANNER_DATA));
ASSERT (BannerData != NULL);
@@ -597,6 +598,19 @@ InitializeSetup (
//
Status = gBS->InstallProtocolInterface (
&mPrivateData.Handle,
+ &gEfiPrint2ProtocolGuid,
+ EFI_NATIVE_INTERFACE,
+ &mPrivateData.Print
+ );
+
+ //
+ // Install Ecp Print protocol, which is defined in
+ // Edk\Foundation\Protocol\Print\Print.h with protocol
+ // GUID of { 0xdf2d868e, 0x32fc, 0x4cf0, {0x8e, 0x6b, 0xff, 0xd9, 0x5d, 0x13, 0x43, 0xd0 }}
+ // This is support previous module that written to consume this protocol.
+ //
+ Status = gBS->InstallProtocolInterface (
+ &mPrivateData.Handle,
&gEfiPrintProtocolGuid,
EFI_NATIVE_INTERFACE,
&mPrivateData.Print