]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkPkg/Include/Framework/FrameworkInternalFormRepresentation.h
Clean the public header files to remove the unnecessary include files.
[mirror_edk2.git] / IntelFrameworkPkg / Include / Framework / FrameworkInternalFormRepresentation.h
index 7f7512a59f10fe1203834a00b18e6829f829dd2e..f261fa347e8b0e3572f187e1095ddee8a7d8b2e6 100644 (file)
@@ -3,7 +3,7 @@
   Framework 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) 2007, Intel Corporation                                                         \r
+  Copyright (c) 2007 - 2009, 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
@@ -20,6 +20,8 @@
 #ifndef __FRAMEWORK_INTERNAL_FORMREPRESENTATION_H__\r
 #define __FRAMEWORK_INTERNAL_FORMREPRESENTATION_H__\r
 \r
+typedef UINT16  STRING_REF;\r
+\r
 //\r
 // IFR Op codes\r
 //\r
@@ -31,7 +33,7 @@
 #define FRAMEWORK_EFI_IFR_CHECKBOX_OP             0x06\r
 #define FRAMEWORK_EFI_IFR_NUMERIC_OP              0x07\r
 #define FRAMEWORK_EFI_IFR_PASSWORD_OP             0x08\r
-#define FRAMEWORK_EFI_IFR_ONE_OF_OPTION_OP        0x09  // ONEOF OPTION field\r
+#define FRAMEWORK_EFI_IFR_ONE_OF_OPTION_OP        0x09  ///< ONEOF OPTION field\r
 #define FRAMEWORK_EFI_IFR_SUPPRESS_IF_OP          0x0A\r
 #define FRAMEWORK_EFI_IFR_END_FORM_OP             0x0B\r
 #define FRAMEWORK_EFI_IFR_HIDDEN_OP               0x0C\r
@@ -47,7 +49,7 @@
 #define FRAMEWORK_EFI_IFR_AND_OP                  0x15\r
 #define FRAMEWORK_EFI_IFR_OR_OP                   0x16\r
 #define FRAMEWORK_EFI_IFR_NOT_OP                  0x17\r
-#define FRAMEWORK_EFI_IFR_END_IF_OP               0x18  // for endif of inconsistentif, suppressif, grayoutif\r
+#define FRAMEWORK_EFI_IFR_END_IF_OP               0x18  ///< for endif of inconsistentif, suppressif, grayoutif\r
 #define FRAMEWORK_EFI_IFR_GRAYOUT_IF_OP           0x19\r
 #define FRAMEWORK_EFI_IFR_DATE_OP                 0x1A\r
 #define FRAMEWORK_EFI_IFR_TIME_OP                 0x1B\r
 #define FRAMEWORK_EFI_IFR_VARSTORE_OP             0x24\r
 #define FRAMEWORK_EFI_IFR_VARSTORE_SELECT_OP      0x25\r
 #define FRAMEWORK_EFI_IFR_VARSTORE_SELECT_PAIR_OP 0x26\r
-#define FRAMEWORK_EFI_IFR_TRUE_OP                 0x27\r
-#define FRAMEWORK_EFI_IFR_FALSE_OP                0x28\r
-#define FRAMEWORK_EFI_IFR_GT_OP                   0x29\r
-#define FRAMEWORK_EFI_IFR_GE_OP                   0x2A\r
-#define FRAMEWORK_EFI_IFR_OEM_DEFINED_OP          0x2B\r
-#define FRAMEWORK_EFI_IFR_LAST_OPCODE             FRAMEWORK_EFI_IFR_OEM_DEFINED_OP\r
+#define FRAMEWORK_EFI_IFR_LAST_OPCODE             FRAMEWORK_EFI_IFR_VARSTORE_SELECT_PAIR_OP\r
 #define FRAMEWORK_EFI_IFR_OEM_OP                  0xFE\r
 #define FRAMEWORK_EFI_IFR_NV_ACCESS_COMMAND       0xFF\r
 \r
@@ -82,7 +79,7 @@
 #define FRAMEWORK_EFI_IFR_FLAG_RESET_REQUIRED     0x10\r
 #define FRAMEWORK_EFI_IFR_FLAG_LATE_CHECK         0x20\r
 \r
-#define EFI_NON_DEVICE_CLASS              0x00  // Useful when you do not want something in the Device Manager\r
+#define EFI_NON_DEVICE_CLASS              0x00  ///< Useful when you do not want something in the Device Manager\r
 #define EFI_DISK_DEVICE_CLASS             0x01\r
 #define EFI_VIDEO_DEVICE_CLASS            0x02\r
 #define EFI_NETWORK_DEVICE_CLASS          0x04\r
 #define EFI_SETUP_APPLICATION_SUBCLASS    0x00\r
 #define EFI_GENERAL_APPLICATION_SUBCLASS  0x01\r
 #define EFI_FRONT_PAGE_SUBCLASS           0x02\r
-#define EFI_SINGLE_USE_SUBCLASS           0x03  // Used to display a single entity and then exit\r
-\r
-//\r
-// Used to flag dynamically created op-codes. This is meaningful to the IFR Library set\r
-// and the browser since we need to distinguish between compiled NV map data and created data.\r
-// We do not allow new entries to be created in the NV map dynamically however we still need\r
-// to display this information correctly.  To dynamically create op-codes and assume that their\r
-// data will be saved, ensure that the NV starting location they refer to is pre-defined in the\r
-// NV map.\r
-//\r
+#define EFI_SINGLE_USE_SUBCLASS           0x03  ///< Used to display a single entity and then exit\r
+\r
+///\r
+/// Used to flag dynamically created op-codes. This is meaningful to the IFR Library set\r
+/// and the browser since we need to distinguish between compiled NV map data and created data.\r
+/// We do not allow new entries to be created in the NV map dynamically however we still need\r
+/// to display this information correctly.  To dynamically create op-codes and assume that their\r
+/// data will be saved, ensure that the NV starting location they refer to is pre-defined in the\r
+/// NV map.\r
+///\r
 #define FRAMEWORK_EFI_IFR_FLAG_CREATED  128\r
 \r
 \r
@@ -123,7 +120,7 @@ typedef struct {
   EFI_PHYSICAL_ADDRESS              CallbackHandle;\r
   UINT16                            Class;\r
   UINT16                            SubClass;\r
-  UINT16                            NvDataSize; // set once, size of the NV data as defined in the script\r
+  UINT16                            NvDataSize; ///< set once, size of the NV data as defined in the script\r
 } FRAMEWORK_EFI_IFR_FORM_SET;\r
 \r
 typedef struct {\r
@@ -147,8 +144,8 @@ typedef struct {
   STRING_REF                        Help;\r
   STRING_REF                        Text;\r
   STRING_REF                        TextTwo;\r
-  UINT8                             Flags;  // This is included solely for purposes of interactive/dynamic support.\r
-  UINT16                            Key;    // Value to be passed to caller to identify this particular op-code\r
+  UINT8                             Flags;  ///< This is included solely for purposes of interactive/dynamic support.\r
+  UINT16                            Key;    ///< Value to be passed to caller to identify this particular op-code\r
 } FRAMEWORK_EFI_IFR_TEXT;\r
 \r
 //\r
@@ -158,9 +155,9 @@ typedef struct {
   FRAMEWORK_EFI_IFR_OP_HEADER       Header;\r
   UINT16                            FormId;\r
   STRING_REF                        Prompt;\r
-  STRING_REF                        Help;   // The string Token for the context-help\r
-  UINT8                             Flags;  // This is included solely for purposes of interactive/dynamic support.\r
-  UINT16                            Key;    // Value to be passed to caller to identify this particular op-code\r
+  STRING_REF                        Help;   ///< The string Token for the context-help\r
+  UINT8                             Flags;  ///< This is included solely for purposes of interactive/dynamic support.\r
+  UINT16                            Key;    ///< Value to be passed to caller to identify this particular op-code\r
 } FRAMEWORK_EFI_IFR_REF;\r
 \r
 typedef struct {\r
@@ -177,49 +174,49 @@ typedef struct {
 //\r
 typedef struct {\r
   FRAMEWORK_EFI_IFR_OP_HEADER       Header;\r
-  UINT16                            QuestionId; // The ID designating what the question is about...\r
-  UINT8                             Width;      // The Size of the Data being saved\r
-  STRING_REF                        Prompt;     // The String Token for the Prompt\r
-  STRING_REF                        Help;       // The string Token for the context-help\r
+  UINT16                            QuestionId; ///< The ID designating what the question is about...\r
+  UINT8                             Width;      ///< The Size of the Data being saved\r
+  STRING_REF                        Prompt;     ///< The String Token for the Prompt\r
+  STRING_REF                        Help;       ///< The string Token for the context-help\r
 } FRAMEWORK_EFI_IFR_ONE_OF;\r
 \r
 typedef struct {\r
   FRAMEWORK_EFI_IFR_OP_HEADER       Header;\r
-  UINT16                            QuestionId; // The offset in NV for storage of the data\r
-  UINT8                             MaxEntries; // The maximum number of options in the ordered list (=size of NVStore)\r
-  STRING_REF                        Prompt;     // The string token for the prompt\r
-  STRING_REF                        Help;       // The string token for the context-help\r
+  UINT16                            QuestionId; ///< The offset in NV for storage of the data\r
+  UINT8                             MaxEntries; ///< The maximum number of options in the ordered list (=size of NVStore)\r
+  STRING_REF                        Prompt;     ///< The string token for the prompt\r
+  STRING_REF                        Help;       ///< The string token for the context-help\r
 } FRAMEWORK_EFI_IFR_ORDERED_LIST;\r
 \r
 typedef struct {\r
   FRAMEWORK_EFI_IFR_OP_HEADER       Header;\r
-  UINT16                            QuestionId; // The ID designating what the question is about...\r
-  UINT8                             Width;      // The Size of the Data being saved\r
-  STRING_REF                        Prompt;     // The String Token for the Prompt\r
-  STRING_REF                        Help;       // The string Token for the context-help\r
-  UINT8                             Flags;      // If non-zero, means that it is the default option\r
-  UINT16                            Key;        // Value to be passed to caller to identify this particular op-code\r
+  UINT16                            QuestionId; ///< The ID designating what the question is about...\r
+  UINT8                             Width;      ///< The Size of the Data being saved\r
+  STRING_REF                        Prompt;     ///< The String Token for the Prompt\r
+  STRING_REF                        Help;       ///< The string Token for the context-help\r
+  UINT8                             Flags;      ///< If non-zero, means that it is the default option\r
+  UINT16                            Key;        ///< Value to be passed to caller to identify this particular op-code\r
 } FRAMEWORK_EFI_IFR_CHECKBOX, FRAMEWORK_EFI_IFR_CHECK_BOX;\r
 \r
 typedef struct {\r
   FRAMEWORK_EFI_IFR_OP_HEADER       Header;\r
-  STRING_REF                        Option; // The string token describing the option\r
-  UINT16                            Value;  // The value associated with this option that is stored in the NVRAM\r
-  UINT8                             Flags;  // If non-zero, means that it is the default option\r
-  UINT16                            Key;    // Value to be passed to caller to identify this particular op-code\r
+  STRING_REF                        Option;     ///< The string token describing the option\r
+  UINT16                            Value;      ///< The value associated with this option that is stored in the NVRAM\r
+  UINT8                             Flags;      ///< If non-zero, means that it is the default option\r
+  UINT16                            Key;        ///< Value to be passed to caller to identify this particular op-code\r
 } FRAMEWORK_EFI_IFR_ONE_OF_OPTION;\r
 \r
 typedef struct {\r
   FRAMEWORK_EFI_IFR_OP_HEADER       Header;\r
-  UINT16                            QuestionId; // The ID designating what the question is about...\r
-  UINT8                             Width;      // The Size of the Data being saved\r
-  STRING_REF                        Prompt;     // The String Token for the Prompt\r
-  STRING_REF                        Help;       // The string Token for the context-help\r
-  UINT8                             Flags;      // This is included solely for purposes of interactive/dynamic support.\r
-  UINT16                            Key;        // Value to be passed to caller to identify this particular op-code\r
+  UINT16                            QuestionId; ///< The ID designating what the question is about...\r
+  UINT8                             Width;      ///< The Size of the Data being saved\r
+  STRING_REF                        Prompt;     ///< The String Token for the Prompt\r
+  STRING_REF                        Help;       ///< The string Token for the context-help\r
+  UINT8                             Flags;      ///< This is included solely for purposes of interactive/dynamic support.\r
+  UINT16                            Key;        ///< Value to be passed to caller to identify this particular op-code\r
   UINT16                            Minimum;\r
   UINT16                            Maximum;\r
-  UINT16                            Step;       // Zero means manual input, otherwise, arrow selection is called for\r
+  UINT16                            Step;       ///< Zero means manual input, otherwise, arrow selection is called for\r
   UINT16                            Default;\r
 } FRAMEWORK_EFI_IFR_NUMERIC;\r
 \r
@@ -245,27 +242,27 @@ typedef struct {
 \r
 typedef struct {\r
   FRAMEWORK_EFI_IFR_OP_HEADER       Header;\r
-  UINT16                            QuestionId;// The ID designating what the question is about...\r
-  UINT8                             Width;     // The Size of the Data being saved\r
-  STRING_REF                        Prompt;    // The String Token for the Prompt\r
-  STRING_REF                        Help;      // The string Token for the context-help\r
-  UINT8                             Flags;     // This is included solely for purposes of interactive/dynamic support.\r
-  UINT16                            Key;       // Value to be passed to caller to identify this particular op-code\r
-  UINT8                             MinSize;   // Minimum allowable sized password\r
-  UINT8                             MaxSize;   // Maximum allowable sized password\r
+  UINT16                            QuestionId;///< The ID designating what the question is about...\r
+  UINT8                             Width;     ///< The Size of the Data being saved\r
+  STRING_REF                        Prompt;    ///< The String Token for the Prompt\r
+  STRING_REF                        Help;      ///< The string Token for the context-help\r
+  UINT8                             Flags;     ///< This is included solely for purposes of interactive/dynamic support.\r
+  UINT16                            Key;       ///< Value to be passed to caller to identify this particular op-code\r
+  UINT8                             MinSize;   ///< Minimum allowable sized password\r
+  UINT8                             MaxSize;   ///< Maximum allowable sized password\r
   UINT16                            Encoding;\r
 } FRAMEWORK_EFI_IFR_PASSWORD;\r
 \r
 typedef struct {\r
   FRAMEWORK_EFI_IFR_OP_HEADER       Header;\r
-  UINT16                            QuestionId; // The ID designating what the question is about...\r
-  UINT8                             Width;      // The Size of the Data being saved \r
-  STRING_REF                        Prompt;     // The String Token for the Prompt\r
-  STRING_REF                        Help;       // The string Token for the context-help\r
-  UINT8                             Flags;      // This is included solely for purposes of interactive/dynamic support.\r
-  UINT16                            Key;        // Value to be passed to caller to identify this particular op-code\r
-  UINT8                             MinSize;    // Minimum allowable sized password\r
-  UINT8                             MaxSize;    // Maximum allowable sized password\r
+  UINT16                            QuestionId; ///< The ID designating what the question is about...\r
+  UINT8                             Width;      ///< The Size of the Data being saved \r
+  STRING_REF                        Prompt;     ///< The String Token for the Prompt\r
+  STRING_REF                        Help;       ///< The string Token for the context-help\r
+  UINT8                             Flags;      ///< This is included solely for purposes of interactive/dynamic support.\r
+  UINT16                            Key;        ///< Value to be passed to caller to identify this particular op-code\r
+  UINT8                             MinSize;    ///< Minimum allowable sized password\r
+  UINT8                             MaxSize;    ///< Maximum allowable sized password\r
 } FRAMEWORK_EFI_IFR_STRING;\r
 \r
 typedef struct {\r
@@ -278,6 +275,11 @@ typedef struct {
   UINT16                            Key;\r
 } FRAMEWORK_EFI_IFR_HIDDEN;\r
 \r
+///\r
+/// Inconsistent with specification here:\r
+/// Following defintion may not comply with Framework Specification HII 0.92. To \r
+/// keep the inconsistant is for implementation needed.\r
+///\r
 typedef struct {\r
   FRAMEWORK_EFI_IFR_OP_HEADER       Header;\r
   UINT8                             Flags;\r
@@ -296,30 +298,30 @@ typedef struct {
 \r
 typedef struct {\r
   FRAMEWORK_EFI_IFR_OP_HEADER       Header;\r
-  UINT16                            QuestionId;   // offset into variable storage\r
-  UINT8                             Width;        // size of variable storage\r
-  UINT16                            Value;        // value to compare against\r
+  UINT16                            QuestionId;   ///< offset into variable storage\r
+  UINT8                             Width;        ///< size of variable storage\r
+  UINT16                            Value;        ///< value to compare against\r
 } FRAMEWORK_EFI_IFR_EQ_ID_VAL;\r
 \r
 typedef struct {\r
   FRAMEWORK_EFI_IFR_OP_HEADER       Header;\r
-  UINT16                            QuestionId;   // offset into variable storage\r
-  UINT8                             Width;        // size of variable storage\r
+  UINT16                            QuestionId;   ///< offset into variable storage\r
+  UINT8                             Width;        ///< size of variable storage\r
   UINT16                            ListLength;\r
   UINT16                            ValueList[1];\r
 } FRAMEWORK_EFI_IFR_EQ_ID_LIST;\r
 \r
 typedef struct {\r
   FRAMEWORK_EFI_IFR_OP_HEADER       Header;\r
-  UINT16                            QuestionId1;  // offset into variable storage for first value to compare\r
-  UINT8                             Width;        // size of variable storage (must be same for both)\r
-  UINT16                            QuestionId2;  // offset into variable storage for second value to compare\r
+  UINT16                            QuestionId1;  ///< offset into variable storage for first value to compare\r
+  UINT8                             Width;        ///< size of variable storage (must be same for both)\r
+  UINT16                            QuestionId2;  ///< offset into variable storage for second value to compare\r
 } FRAMEWORK_EFI_IFR_EQ_ID_ID;\r
 \r
 typedef struct {\r
   FRAMEWORK_EFI_IFR_OP_HEADER       Header;\r
-  UINT16                            VariableId;   // offset into variable storage\r
-  UINT16                            Value;        // value to compare against\r
+  UINT16                            VariableId;   ///< offset into variable storage\r
+  UINT16                            Value;        ///< value to compare against\r
 } FRAMEWORK_EFI_IFR_EQ_VAR_VAL;\r
 \r
 typedef struct {\r
@@ -351,59 +353,43 @@ typedef struct {
   FRAMEWORK_EFI_IFR_OP_HEADER       Header;\r
   STRING_REF                        Help;\r
   STRING_REF                        Text;\r
-  STRING_REF                        TextTwo; // optional text\r
+  STRING_REF                        TextTwo;    ///< optional text\r
 } FRAMEWORK_EFI_IFR_INVENTORY;\r
 \r
 typedef struct {\r
   FRAMEWORK_EFI_IFR_OP_HEADER       Header;\r
-  EFI_GUID                          Guid;    // GUID for the variable\r
-  UINT16                            VarId;   // variable store ID, as referenced elsewhere in the form\r
-  UINT16                            Size;    // size of the variable storage\r
+  EFI_GUID                          Guid;       ///< GUID for the variable\r
+  UINT16                            VarId;      ///< variable store ID, as referenced elsewhere in the form\r
+  UINT16                            Size;       ///< size of the variable storage\r
 } FRAMEWORK_EFI_IFR_VARSTORE;\r
 \r
 typedef struct {\r
   FRAMEWORK_EFI_IFR_OP_HEADER       Header;\r
-  UINT16                            VarId;   // variable store ID, as referenced elsewhere in the form\r
+  UINT16                            VarId;      ///< variable store ID, as referenced elsewhere in the form\r
 } FRAMEWORK_EFI_IFR_VARSTORE_SELECT;\r
 \r
-//\r
-// Used for the ideqid VFR statement where two variable stores may be referenced in the\r
-// same VFR statement.\r
-// A browser should treat this as an FRAMEWORK_EFI_IFR_VARSTORE_SELECT statement and assume that all following\r
-// IFR opcodes use the VarId as defined here.\r
-//\r
+///\r
+/// Used for the ideqid VFR statement where two variable stores may be referenced in the\r
+/// same VFR statement.\r
+/// A browser should treat this as an FRAMEWORK_EFI_IFR_VARSTORE_SELECT statement and assume that all following\r
+/// IFR opcodes use the VarId as defined here.\r
+///\r
 typedef struct {\r
   FRAMEWORK_EFI_IFR_OP_HEADER       Header;\r
-  UINT16                            VarId;          // variable store ID, as referenced elsewhere in the form\r
-  UINT16                            SecondaryVarId; // variable store ID, as referenced elsewhere in the form\r
+  UINT16                            VarId;          ///< variable store ID, as referenced elsewhere in the form\r
+  UINT16                            SecondaryVarId; ///< variable store ID, as referenced elsewhere in the form\r
 } FRAMEWORK_EFI_IFR_VARSTORE_SELECT_PAIR;\r
 \r
-typedef struct {\r
-  FRAMEWORK_EFI_IFR_OP_HEADER       Header;\r
-} FRAMEWORK_EFI_IFR_TRUE;\r
-\r
-typedef struct {\r
-  FRAMEWORK_EFI_IFR_OP_HEADER       Header;\r
-} FRAMEWORK_EFI_IFR_FALSE;\r
-\r
-typedef struct {\r
-  FRAMEWORK_EFI_IFR_OP_HEADER       Header;\r
-} FRAMEWORK_EFI_IFR_GT;\r
-\r
-typedef struct {\r
-  FRAMEWORK_EFI_IFR_OP_HEADER       Header;\r
-} FRAMEWORK_EFI_IFR_GE;\r
-\r
-//\r
-// Save defaults and restore defaults have same structure\r
-//\r
+///\r
+/// Save defaults and restore defaults have same structure\r
+///\r
 #define FRAMEWORK_EFI_IFR_RESTORE_DEFAULTS  FRAMEWORK_EFI_IFR_SAVE_DEFAULTS\r
 \r
 typedef struct {\r
   FRAMEWORK_EFI_IFR_OP_HEADER       Header;\r
-  STRING_REF                        Title;        // The string token for the banner title\r
-  UINT16                            LineNumber;   // 1-based line number\r
-  UINT8                             Alignment;    // left, center, or right-aligned\r
+  STRING_REF                        Title;        ///< The string token for the banner title\r
+  UINT16                            LineNumber;   ///< 1-based line number\r
+  UINT8                             Alignment;    ///< left, center, or right-aligned\r
 } FRAMEWORK_EFI_IFR_BANNER;\r
 \r
 #define FRAMEWORK_EFI_IFR_BANNER_ALIGN_LEFT   0\r