Yao, Jiewen
2015-05-29 08:44:38 UTC
IntelFspPkg/GenCfgOpt tool add embed structure.
The EMBED command allows you to put one or more UPD data into a specify data structure. You can utilize it as a group of UPD for example. You must specify a start and an end for the specify data structure.
Example:
!HDR EMBED:{MY_DATA_STRUCT:MyDataStructure:START}
gTokenSpaceGuid.Upd1 | 0x0020 | 0x01 | 0x00
gTokenSpaceGuid.Upd2 | 0x0021 | 0x01 | 0x00
!HDR EMBED:{MY_DATA_STRUCT:MyDataStructure:END}
gTokenSpaceGuid.UpdN | 0x0022 | 0x01 | 0x00
Result:
typedef struct {
/** Offset 0x0020
**/
UINT8 Upd1;
/** Offset 0x0021
**/
UINT8 Upd2;
/** Offset 0x0022
**/
UINT8 UpdN;
} MY_DATA_STRUCT;
typedef struct _UPD_DATA_REGION {
...
/** Offset 0x0020
**/
MY_DATA_STRUCT MyDataStruct;
...
} UPD_DATA_REGION;
Signed-off-by: Ma, Maurice ***@intel.com<mailto:***@intel.com>
Reviewed-by: Mudusuru, Giri P ***@intel.com<mailto:***@intel.com>
Reviewed-by: Rangarajan, Ravi P ***@intel.com<mailto:***@intel.com>
Reviewed-by: Yao, Jiewen ***@intel.com<mailto:***@intel.com>
The EMBED command allows you to put one or more UPD data into a specify data structure. You can utilize it as a group of UPD for example. You must specify a start and an end for the specify data structure.
Example:
!HDR EMBED:{MY_DATA_STRUCT:MyDataStructure:START}
gTokenSpaceGuid.Upd1 | 0x0020 | 0x01 | 0x00
gTokenSpaceGuid.Upd2 | 0x0021 | 0x01 | 0x00
!HDR EMBED:{MY_DATA_STRUCT:MyDataStructure:END}
gTokenSpaceGuid.UpdN | 0x0022 | 0x01 | 0x00
Result:
typedef struct {
/** Offset 0x0020
**/
UINT8 Upd1;
/** Offset 0x0021
**/
UINT8 Upd2;
/** Offset 0x0022
**/
UINT8 UpdN;
} MY_DATA_STRUCT;
typedef struct _UPD_DATA_REGION {
...
/** Offset 0x0020
**/
MY_DATA_STRUCT MyDataStruct;
...
} UPD_DATA_REGION;
Signed-off-by: Ma, Maurice ***@intel.com<mailto:***@intel.com>
Reviewed-by: Mudusuru, Giri P ***@intel.com<mailto:***@intel.com>
Reviewed-by: Rangarajan, Ravi P ***@intel.com<mailto:***@intel.com>
Reviewed-by: Yao, Jiewen ***@intel.com<mailto:***@intel.com>