]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Uefi/UefiInternalFormRepresentation.h
Move definition of EFI_PARTITION_ENTRY_STATUS from IndustryStandard in MDE Package...
[mirror_edk2.git] / MdePkg / Include / Uefi / UefiInternalFormRepresentation.h
index dd7247fe8d5d1c2ee529553a4b96c28d1a7a9414..894a02d0354f84c04ab731d79e92700caeb5f543 100644 (file)
@@ -1,10 +1,9 @@
-\r
 /** @file\r
   This file defines the encoding for the VFR (Visual Form Representation) language.\r
   IFR is primarily consumed by the EFI presentation engine, and produced by EFI\r
   internal application and drivers as well as all add-in card option-ROM drivers\r
 \r
-  Copyright (c) 2006 - 2007, Intel Corporation                                                         \r
+  Copyright (c) 2006 - 2008, Intel Corporation                                                         \r
   All rights reserved. This program and the accompanying materials                          \r
   are licensed and made available under the terms and conditions of the BSD License         \r
   which accompanies this distribution.  The full text of the license may be found at        \r
@@ -21,9 +20,9 @@
 #ifndef __UEFI_INTERNAL_FORMREPRESENTATION_H__\r
 #define __UEFI_INTERNAL_FORMREPRESENTATION_H__\r
 \r
-//\r
-// The following types are currently defined:\r
-//\r
+///\r
+/// The following types are currently defined:\r
+///\r
 typedef UINT32  RELOFST;\r
 \r
 typedef VOID*   EFI_HII_HANDLE;\r
@@ -41,9 +40,9 @@ typedef UINT32  EFI_HII_FONT_STYLE;
 #pragma pack(1)\r
 \r
 \r
-//\r
-// HII package list\r
-//\r
+///\r
+/// HII package list\r
+///\r
 typedef struct {\r
   EFI_GUID               PackageListGuid;\r
   UINT32                 PackageLength;\r
@@ -133,6 +132,7 @@ typedef struct _EFI_HII_SIMPLE_FONT_PACKAGE_HDR {
 // Font Package\r
 //\r
 \r
+#define EFI_HII_FONT_STYLE_NORMAL            0x00000000\r
 #define EFI_HII_FONT_STYLE_BOLD              0x00000001\r
 #define EFI_HII_FONT_STYLE_ITALIC            0x00000002\r
 #define EFI_HII_FONT_STYLE_EMBOSS            0x00010000\r
@@ -580,6 +580,9 @@ typedef union {
   EFI_STRING_ID   string;\r
 } EFI_IFR_TYPE_VALUE;\r
 \r
+//\r
+// IFR Opcodes\r
+//\r
 #define EFI_IFR_FORM_OP                0x01\r
 #define EFI_IFR_SUBTITLE_OP            0x02\r
 #define EFI_IFR_TEXT_OP                0x03\r
@@ -723,14 +726,14 @@ typedef struct _EFI_IFR_VARSTORE {
 \r
 typedef struct _EFI_IFR_VARSTORE_EFI {\r
   EFI_IFR_OP_HEADER        Header;\r
-  UINT16                   VarStoreId;\r
+  EFI_VARSTORE_ID          VarStoreId;\r
   EFI_GUID                 Guid;\r
   UINT32                   Attributes;\r
 } EFI_IFR_VARSTORE_EFI;\r
 \r
 typedef struct _EFI_IFR_VARSTORE_NAME_VALUE {\r
   EFI_IFR_OP_HEADER        Header;\r
-  UINT16                   VarStoreId;\r
+  EFI_VARSTORE_ID          VarStoreId;\r
   EFI_GUID                 Guid;\r
 } EFI_IFR_VARSTORE_NAME_VALUE;\r
 \r
@@ -1299,7 +1302,7 @@ typedef enum {
   EfiKeyB8,\r
   EfiKeyB9,\r
   EfiKeyB10,\r
-  EfiKeyRshift,\r
+  EfiKeyRShift,\r
   EfiKeyUpArrow,\r
   EfiKeyOne,\r
   EfiKeyTwo,\r
@@ -1390,22 +1393,24 @@ typedef struct {
   UINT16                  AffectedAttribute;\r
 } EFI_KEY_DESCRIPTOR;\r
 \r
-//\r
-// A key which is affected by all the standard shift modifiers.  \r
-// Most keys would be expected to have this bit active.\r
-//\r
+///\r
+/// A key which is affected by all the standard shift modifiers.  \r
+/// Most keys would be expected to have this bit active.\r
+///\r
 #define EFI_AFFECTED_BY_STANDARD_SHIFT       0x0001\r
-//\r
-// This key is affected by the caps lock so that if a keyboard driver\r
-// would need to disambiguate between a key which had a ¡°1¡± defined\r
-// versus a ¡°a¡± character.  Having this bit turned on would tell\r
-// the keyboard driver to use the appropriate shifted state or not.\r
-//\r
+\r
+///\r
+/// This key is affected by the caps lock so that if a keyboard driver\r
+/// would need to disambiguate between a key which had a "1" defined\r
+/// versus a "a" character.  Having this bit turned on would tell\r
+/// the keyboard driver to use the appropriate shifted state or not.\r
+///\r
 #define EFI_AFFECTED_BY_CAPS_LOCK            0x0002\r
-//\r
-// Similar to the case of CAPS lock, if this bit is active, the key\r
-// is affected by the num lock being turned on.\r
-//\r
+\r
+///\r
+/// Similar to the case of CAPS lock, if this bit is active, the key\r
+/// is affected by the num lock being turned on.\r
+///\r
 #define EFI_AFFECTED_BY_NUM_LOCK             0x0004\r
 \r
 typedef struct {\r
@@ -1422,17 +1427,6 @@ typedef struct {
   // EFI_HII_KEYBOARD_LAYOUT Layout[];\r
 } EFI_HII_KEYBOARD_PACKAGE_HDR;\r
 \r
-typedef struct {\r
-  CHAR16                  Language[3];\r
-  CHAR16                  Space;\r
-  CHAR16                  DescriptionString[1];\r
-} EFI_DESCRIPTION_STRING;\r
-\r
-typedef struct {\r
-  UINT16                  DescriptionCount;\r
-  EFI_DESCRIPTION_STRING  DescriptionString[1];\r
-} EFI_DESCRIPTION_STRING_BUNDLE;\r
-\r
 //\r
 // Modifier values\r
 //\r
@@ -1451,7 +1445,7 @@ typedef struct {
 #define EFI_LEFT_SHIFT_MODIFIER          0x000C\r
 #define EFI_RIGHT_SHIFT_MODIFIER         0x000D\r
 #define EFI_CAPS_LOCK_MODIFIER           0x000E\r
-#define EFI_NUM_LOCK _MODIFIER           0x000F\r
+#define EFI_NUM_LOCK_MODIFIER            0x000F\r
 #define EFI_LEFT_ARROW_MODIFIER          0x0010\r
 #define EFI_RIGHT_ARROW_MODIFIER         0x0011\r
 #define EFI_DOWN_ARROW_MODIFIER          0x0012\r
@@ -1484,18 +1478,22 @@ typedef struct {
 #define EFI_PAUSE_MODIFIER               0x0025\r
 #define EFI_BREAK_MODIFIER               0x0026\r
 \r
+#define EFI_LEFT_LOGO_MODIFIER           0x0027\r
+#define EFI_RIGHT_LOGO_MODIFIER          0x0028\r
+#define EFI_MENU_MODIFIER                0x0029\r
+\r
 #pragma pack()\r
 \r
 \r
 \r
-//\r
-// References to string tokens must use this macro to enable scanning for\r
-// token usages.\r
-//\r
-//\r
-// STRING_TOKEN is not defined in UEFI specification. But it is placed \r
-// here for the easy access by C files and VFR source files.\r
-//\r
+///\r
+/// References to string tokens must use this macro to enable scanning for\r
+/// token usages.\r
+///\r
+///\r
+/// STRING_TOKEN is not defined in UEFI specification. But it is placed \r
+/// here for the easy access by C files and VFR source files.\r
+///\r
 #define STRING_TOKEN(t) t\r
 \r
 #endif\r