]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Include/Protocol/FormBrowserEx2.h
MdeModulePkg: Clean up source files
[mirror_edk2.git] / MdeModulePkg / Include / Protocol / FormBrowserEx2.h
index df583ef86017e8243b12a3ed58173dacabc836b1..ffb50598984f1c01128b22c7cb6d4b530d0c73fe 100644 (file)
@@ -1,14 +1,14 @@
 /** @file\r
-  Extension Form Browser Protocol provides the services that can be used to \r
+  Extension Form Browser Protocol provides the services that can be used to\r
   register the different hot keys for the standard Browser actions described in UEFI specification.\r
 \r
-Copyright (c) 2013, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials are licensed and made available under \r
-the terms and conditions of the BSD License that accompanies this distribution.  \r
+Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials are licensed and made available under\r
+the terms and conditions of the BSD License that accompanies this distribution.\r
 The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php.                                            \r
+http://opensource.org/licenses/bsd-license.php.\r
 \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 **/\r
@@ -23,7 +23,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 typedef struct _EDKII_FORM_BROWSER_EXTENSION2_PROTOCOL   EDKII_FORM_BROWSER_EXTENSION2_PROTOCOL;\r
 \r
-#define BROWSER_EXTENSION2_VERSION_1  0x10000\r
+#define BROWSER_EXTENSION2_VERSION_1    0x10000\r
+#define BROWSER_EXTENSION2_VERSION_1_1  0x10001\r
 \r
 /**\r
   Check whether the browser data has been modified.\r
@@ -47,13 +48,26 @@ BOOLEAN
   @retval EFI_SUCCESS              Execute the request action succss.\r
 \r
 **/\r
-typedef \r
-EFI_STATUS \r
+typedef\r
+EFI_STATUS\r
 (EFIAPI *EXECUTE_ACTION) (\r
   IN UINT32        Action,\r
   IN UINT16        DefaultId\r
   );\r
 \r
+/**\r
+  Check whether required reset when exit the browser\r
+\r
+  @retval TRUE      Browser required to reset after exit.\r
+  @retval FALSE     Browser not need to reset after exit.\r
+\r
+**/\r
+typedef\r
+BOOLEAN\r
+(EFIAPI *IS_RESET_REQUIRED) (\r
+  VOID\r
+  );\r
+\r
 #define FORM_ENTRY_INFO_SIGNATURE    SIGNATURE_32 ('f', 'e', 'i', 's')\r
 \r
 typedef struct {\r
@@ -78,7 +92,7 @@ typedef struct {
   EFI_FORM_ID      FormId;               // Find the form\r
   EFI_GUID         FormSetGuid;          // Find the formset.\r
   EFI_HII_HANDLE   HiiHandle;            // Find the HII handle\r
-  UINT32           Attribute;            // Hide or grayout ... \r
+  UINT32           Attribute;            // Hide or grayout ...\r
 } QUESTION_ATTRIBUTE_OVERRIDE;\r
 \r
 #define FORM_QUESTION_ATTRIBUTE_OVERRIDE_FROM_LINK(a)  CR (a, QUESTION_ATTRIBUTE_OVERRIDE, Link, FORM_QUESTION_ATTRIBUTE_OVERRIDE_SIGNATURE)\r
@@ -101,6 +115,8 @@ struct _EDKII_FORM_BROWSER_EXTENSION2_PROTOCOL {
   /// A list of type QUESTION_ATTRIBUTE_OVERRIDE.\r
   ///\r
   LIST_ENTRY                OverrideQestListHead;\r
+\r
+  IS_RESET_REQUIRED         IsResetRequired;\r
 };\r
 \r
 extern EFI_GUID gEdkiiFormBrowserEx2ProtocolGuid;\r