2013-08-12 04:19:56 +02:00
|
|
|
/** @file
|
2018-06-27 15:08:52 +02:00
|
|
|
Extension Form Browser Protocol provides the services that can be used to
|
2013-08-12 04:19:56 +02:00
|
|
|
register the different hot keys for the standard Browser actions described in UEFI specification.
|
|
|
|
|
2018-06-27 15:08:52 +02:00
|
|
|
Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>
|
2019-04-04 01:05:13 +02:00
|
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
2013-08-12 04:19:56 +02:00
|
|
|
|
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef __FORM_BROWSER_EXTENSION2_H__
|
|
|
|
#define __FORM_BROWSER_EXTENSION2_H__
|
|
|
|
|
|
|
|
#include <Protocol/FormBrowserEx.h>
|
|
|
|
|
|
|
|
#define EDKII_FORM_BROWSER_EXTENSION2_PROTOCOL_GUID \
|
|
|
|
{ 0xa770c357, 0xb693, 0x4e6d, { 0xa6, 0xcf, 0xd2, 0x1c, 0x72, 0x8e, 0x55, 0xb }}
|
|
|
|
|
|
|
|
typedef struct _EDKII_FORM_BROWSER_EXTENSION2_PROTOCOL EDKII_FORM_BROWSER_EXTENSION2_PROTOCOL;
|
|
|
|
|
2014-05-14 03:52:31 +02:00
|
|
|
#define BROWSER_EXTENSION2_VERSION_1 0x10000
|
|
|
|
#define BROWSER_EXTENSION2_VERSION_1_1 0x10001
|
2013-08-12 04:19:56 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
Check whether the browser data has been modified.
|
|
|
|
|
|
|
|
@retval TRUE Browser data is modified.
|
|
|
|
@retval FALSE No browser data is modified.
|
|
|
|
|
|
|
|
**/
|
|
|
|
typedef
|
|
|
|
BOOLEAN
|
|
|
|
(EFIAPI *IS_BROWSER_DATA_MODIFIED) (
|
|
|
|
VOID
|
|
|
|
);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Execute the action requested by the Action parameter.
|
|
|
|
|
|
|
|
@param[in] Action Execute the request action.
|
|
|
|
@param[in] DefaultId The default Id info when need to load default value.
|
|
|
|
|
|
|
|
@retval EFI_SUCCESS Execute the request action succss.
|
|
|
|
|
|
|
|
**/
|
2018-06-27 15:08:52 +02:00
|
|
|
typedef
|
|
|
|
EFI_STATUS
|
2013-08-12 04:19:56 +02:00
|
|
|
(EFIAPI *EXECUTE_ACTION) (
|
|
|
|
IN UINT32 Action,
|
|
|
|
IN UINT16 DefaultId
|
|
|
|
);
|
|
|
|
|
2014-05-14 03:52:31 +02:00
|
|
|
/**
|
|
|
|
Check whether required reset when exit the browser
|
|
|
|
|
|
|
|
@retval TRUE Browser required to reset after exit.
|
|
|
|
@retval FALSE Browser not need to reset after exit.
|
|
|
|
|
|
|
|
**/
|
|
|
|
typedef
|
|
|
|
BOOLEAN
|
|
|
|
(EFIAPI *IS_RESET_REQUIRED) (
|
|
|
|
VOID
|
|
|
|
);
|
|
|
|
|
2013-08-12 04:19:56 +02:00
|
|
|
#define FORM_ENTRY_INFO_SIGNATURE SIGNATURE_32 ('f', 'e', 'i', 's')
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
UINTN Signature;
|
|
|
|
LIST_ENTRY Link;
|
|
|
|
|
|
|
|
EFI_HII_HANDLE HiiHandle;
|
|
|
|
EFI_GUID FormSetGuid;
|
2013-08-12 06:49:48 +02:00
|
|
|
EFI_FORM_ID FormId;
|
|
|
|
EFI_QUESTION_ID QuestionId;
|
2013-08-12 04:19:56 +02:00
|
|
|
} FORM_ENTRY_INFO;
|
|
|
|
|
|
|
|
#define FORM_ENTRY_INFO_FROM_LINK(a) CR (a, FORM_ENTRY_INFO, Link, FORM_ENTRY_INFO_SIGNATURE)
|
|
|
|
|
2013-09-16 11:50:32 +02:00
|
|
|
#define FORM_QUESTION_ATTRIBUTE_OVERRIDE_SIGNATURE SIGNATURE_32 ('f', 'q', 'o', 's')
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
UINTN Signature;
|
|
|
|
LIST_ENTRY Link;
|
|
|
|
|
|
|
|
EFI_QUESTION_ID QuestionId; // Find the question
|
|
|
|
EFI_FORM_ID FormId; // Find the form
|
|
|
|
EFI_GUID FormSetGuid; // Find the formset.
|
|
|
|
EFI_HII_HANDLE HiiHandle; // Find the HII handle
|
2018-06-27 15:08:52 +02:00
|
|
|
UINT32 Attribute; // Hide or grayout ...
|
2013-09-16 11:50:32 +02:00
|
|
|
} QUESTION_ATTRIBUTE_OVERRIDE;
|
|
|
|
|
|
|
|
#define FORM_QUESTION_ATTRIBUTE_OVERRIDE_FROM_LINK(a) CR (a, QUESTION_ATTRIBUTE_OVERRIDE, Link, FORM_QUESTION_ATTRIBUTE_OVERRIDE_SIGNATURE)
|
|
|
|
|
2013-08-12 04:19:56 +02:00
|
|
|
struct _EDKII_FORM_BROWSER_EXTENSION2_PROTOCOL {
|
|
|
|
///
|
|
|
|
/// Version for protocol future extension.
|
|
|
|
///
|
|
|
|
UINT32 Version;
|
|
|
|
SET_SCOPE SetScope;
|
|
|
|
REGISTER_HOT_KEY RegisterHotKey;
|
|
|
|
REGISTER_EXIT_HANDLER RegiserExitHandler;
|
|
|
|
IS_BROWSER_DATA_MODIFIED IsBrowserDataModified;
|
|
|
|
EXECUTE_ACTION ExecuteAction;
|
|
|
|
///
|
|
|
|
/// A list of type FORMID_INFO is Browser View Form History List.
|
|
|
|
///
|
|
|
|
LIST_ENTRY FormViewHistoryHead;
|
2013-09-16 11:50:32 +02:00
|
|
|
///
|
|
|
|
/// A list of type QUESTION_ATTRIBUTE_OVERRIDE.
|
|
|
|
///
|
|
|
|
LIST_ENTRY OverrideQestListHead;
|
2014-05-14 03:52:31 +02:00
|
|
|
|
|
|
|
IS_RESET_REQUIRED IsResetRequired;
|
2013-08-12 04:19:56 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
extern EFI_GUID gEdkiiFormBrowserEx2ProtocolGuid;
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|