MdeModulePkg/DriverSampleDxe: EFI_BROWSER_ACTION_REQUEST_QUESTION_APPLY
REF: UEFI_Spec_2_10_Aug29.pdf page 1695. In 35.5.4 EFI_HII_CONFIG_ACCESS_PROTOCOL.CallBack(): If the callback function returns with the ActionRequest set to _QUESTION_APPLY, then the Forms Browser will write the current modified question value on the selected form to storage. Update the DriverSampleDxe, add a new question "Question apply test". Signed-off-by: Ming Tan <ming.tan@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Cc: Dandan Bi <dandan.bi@intel.com> Reviewed-by: Dandan Bi <dandan.bi@intel.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
This commit is contained in:
@@ -858,6 +858,7 @@ ExtractConfig (
|
||||
@retval EFI_INVALID_PARAMETER Configuration is NULL.
|
||||
@retval EFI_NOT_FOUND Routing data doesn't match any storage in this
|
||||
driver.
|
||||
@retval EFI_DEVICE_ERROR If value is 44, return error for testing.
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
@@ -1065,6 +1066,11 @@ RouteConfig (
|
||||
return Status;
|
||||
}
|
||||
|
||||
if (PrivateData->Configuration.QuestionApply == 44) {
|
||||
// Return error for verify the error handling of caller.
|
||||
return EFI_DEVICE_ERROR;
|
||||
}
|
||||
|
||||
//
|
||||
// Store Buffer Storage back to EFI variable
|
||||
//
|
||||
@@ -1599,6 +1605,13 @@ DriverCallback (
|
||||
*ActionRequest = EFI_BROWSER_ACTION_REQUEST_FORM_DISCARD_EXIT;
|
||||
break;
|
||||
|
||||
case 0x1253:
|
||||
//
|
||||
// User change the value of "Question apply test".
|
||||
//
|
||||
*ActionRequest = EFI_BROWSER_ACTION_REQUEST_QUESTION_APPLY;
|
||||
break;
|
||||
|
||||
case 0x1231:
|
||||
//
|
||||
// 1. Check to see whether system support keyword.
|
||||
|
Reference in New Issue
Block a user