diff options
author | ydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-02-16 05:31:39 +0000 |
---|---|---|
committer | ydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-02-16 05:31:39 +0000 |
commit | 8e491a81e0d4c98fabb974ebc16c4cc77cc56eca (patch) | |
tree | ab4cbf6ad23d4c19920378640a4f2aa89406de67 /IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/UpdatePage.c | |
parent | ad0ecbcf79e6876c90b88d37830d21906ec8fafc (diff) | |
download | edk2-8e491a81e0d4c98fabb974ebc16c4cc77cc56eca.tar.gz edk2-8e491a81e0d4c98fabb974ebc16c4cc77cc56eca.tar.bz2 edk2-8e491a81e0d4c98fabb974ebc16c4cc77cc56eca.zip |
Enhance BMM to support changing FlowControl setting in Front Page.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11317 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/UpdatePage.c')
-rw-r--r-- | IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/UpdatePage.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/UpdatePage.c b/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/UpdatePage.c index aaa3360042..ece88524cb 100644 --- a/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/UpdatePage.c +++ b/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/UpdatePage.c @@ -1077,6 +1077,34 @@ UpdateTerminalPage ( );
HiiFreeOpCodeHandle (OptionsOpCodeHandle);
+ OptionsOpCodeHandle = HiiAllocateOpCodeHandle ();
+ ASSERT (OptionsOpCodeHandle != NULL);
+
+ CallbackData->BmmFakeNvData.COMFlowControl = NewTerminalContext->FlowControl;
+ for (Index = 0; Index < sizeof (mFlowControlType) / sizeof (mFlowControlType[0]); Index++) {
+ HiiCreateOneOfOptionOpCode (
+ OptionsOpCodeHandle,
+ (EFI_STRING_ID) mFlowControlType[Index],
+ 0,
+ EFI_IFR_TYPE_NUM_SIZE_8,
+ mFlowControlValue[Index]
+ );
+ }
+
+ HiiCreateOneOfOpCode (
+ mStartOpCodeHandle,
+ (EFI_QUESTION_ID) COM_FLOWCONTROL_QUESTION_ID,
+ VARSTORE_ID_BOOT_MAINT,
+ COM_FLOWCONTROL_VAR_OFFSET,
+ STRING_TOKEN (STR_COM_FLOW_CONTROL),
+ STRING_TOKEN (STR_COM_FLOW_CONTROL),
+ 0,
+ EFI_IFR_NUMERIC_SIZE_1,
+ OptionsOpCodeHandle,
+ NULL
+ );
+
+ HiiFreeOpCodeHandle (OptionsOpCodeHandle);
UpdatePageEnd (CallbackData);
}
|