mirror of https://github.com/acidanthera/audk.git
DynamicTablesPkg: Fix GTBlock and GTBlockTimerFrame CmObjParsers
The CmObjParsers of the following objects was inverted, probably due to a wrong ordering placement in the file defining the structures: -EArmObjGTBlockTimerFrameInfo -EArmObjPlatformGTBlockInfo Assign the correct parser for each object, and re-order the structures in the file defining them. Signed-off-by: Pierre Gondois <Pierre.Gondois@arm.com> Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
This commit is contained in:
parent
3bcc2e22ef
commit
a64cc43552
|
@ -353,6 +353,22 @@ typedef struct CmArmGenericTimerInfo {
|
||||||
UINT32 VirtualPL2TimerFlags;
|
UINT32 VirtualPL2TimerFlags;
|
||||||
} CM_ARM_GENERIC_TIMER_INFO;
|
} CM_ARM_GENERIC_TIMER_INFO;
|
||||||
|
|
||||||
|
/** A structure that describes the
|
||||||
|
Platform Generic Block Timer information for the Platform.
|
||||||
|
|
||||||
|
ID: EArmObjPlatformGTBlockInfo
|
||||||
|
*/
|
||||||
|
typedef struct CmArmGTBlockInfo {
|
||||||
|
/// The physical base address for the GT Block Timer structure
|
||||||
|
UINT64 GTBlockPhysicalAddress;
|
||||||
|
|
||||||
|
/// The number of timer frames implemented in the GT Block
|
||||||
|
UINT32 GTBlockTimerFrameCount;
|
||||||
|
|
||||||
|
/// Reference token for the GT Block timer frame list
|
||||||
|
CM_OBJECT_TOKEN GTBlockTimerFrameToken;
|
||||||
|
} CM_ARM_GTBLOCK_INFO;
|
||||||
|
|
||||||
/** A structure that describes the
|
/** A structure that describes the
|
||||||
Platform Generic Block Timer Frame information for the Platform.
|
Platform Generic Block Timer Frame information for the Platform.
|
||||||
|
|
||||||
|
@ -390,22 +406,6 @@ typedef struct CmArmGTBlockTimerFrameInfo {
|
||||||
UINT32 CommonFlags;
|
UINT32 CommonFlags;
|
||||||
} CM_ARM_GTBLOCK_TIMER_FRAME_INFO;
|
} CM_ARM_GTBLOCK_TIMER_FRAME_INFO;
|
||||||
|
|
||||||
/** A structure that describes the
|
|
||||||
Platform Generic Block Timer information for the Platform.
|
|
||||||
|
|
||||||
ID: EArmObjPlatformGTBlockInfo
|
|
||||||
*/
|
|
||||||
typedef struct CmArmGTBlockInfo {
|
|
||||||
/// The physical base address for the GT Block Timer structure
|
|
||||||
UINT64 GTBlockPhysicalAddress;
|
|
||||||
|
|
||||||
/// The number of timer frames implemented in the GT Block
|
|
||||||
UINT32 GTBlockTimerFrameCount;
|
|
||||||
|
|
||||||
/// Reference token for the GT Block timer frame list
|
|
||||||
CM_OBJECT_TOKEN GTBlockTimerFrameToken;
|
|
||||||
} CM_ARM_GTBLOCK_INFO;
|
|
||||||
|
|
||||||
/** A structure that describes the
|
/** A structure that describes the
|
||||||
Arm Generic Watchdog information for the Platform.
|
Arm Generic Watchdog information for the Platform.
|
||||||
|
|
||||||
|
|
|
@ -127,6 +127,14 @@ STATIC CONST CM_OBJ_PARSER CmArmGenericTimerInfoParser[] = {
|
||||||
|
|
||||||
/** A parser for EArmObjPlatformGTBlockInfo.
|
/** A parser for EArmObjPlatformGTBlockInfo.
|
||||||
*/
|
*/
|
||||||
|
STATIC CONST CM_OBJ_PARSER CmArmGTBlockInfoParser[] = {
|
||||||
|
{ "GTBlockPhysicalAddress", 8, "0x%llx", NULL },
|
||||||
|
{ "GTBlockTimerFrameCount", 4, "0x%x", NULL },
|
||||||
|
{ "GTBlockTimerFrameToken", sizeof (CM_OBJECT_TOKEN), "0x%p", NULL }
|
||||||
|
};
|
||||||
|
|
||||||
|
/** A parser for EArmObjGTBlockTimerFrameInfo.
|
||||||
|
*/
|
||||||
STATIC CONST CM_OBJ_PARSER CmArmGTBlockTimerFrameInfoParser[] = {
|
STATIC CONST CM_OBJ_PARSER CmArmGTBlockTimerFrameInfoParser[] = {
|
||||||
{ "FrameNumber", 1, "0x%x", NULL },
|
{ "FrameNumber", 1, "0x%x", NULL },
|
||||||
{ "PhysicalAddressCntBase", 8, "0x%llx", NULL },
|
{ "PhysicalAddressCntBase", 8, "0x%llx", NULL },
|
||||||
|
@ -138,14 +146,6 @@ STATIC CONST CM_OBJ_PARSER CmArmGTBlockTimerFrameInfoParser[] = {
|
||||||
{ "CommonFlags", 4, "0x%x", NULL }
|
{ "CommonFlags", 4, "0x%x", NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
/** A parser for EArmObjGTBlockTimerFrameInfo.
|
|
||||||
*/
|
|
||||||
STATIC CONST CM_OBJ_PARSER CmArmGTBlockInfoParser[] = {
|
|
||||||
{ "GTBlockPhysicalAddress", 8, "0x%llx", NULL },
|
|
||||||
{ "GTBlockTimerFrameCount", 4, "0x%x", NULL },
|
|
||||||
{ "GTBlockTimerFrameToken", sizeof (CM_OBJECT_TOKEN), "0x%p", NULL }
|
|
||||||
};
|
|
||||||
|
|
||||||
/** A parser for EArmObjPlatformGenericWatchdogInfo.
|
/** A parser for EArmObjPlatformGenericWatchdogInfo.
|
||||||
*/
|
*/
|
||||||
STATIC CONST CM_OBJ_PARSER CmArmGenericWatchdogInfoParser[] = {
|
STATIC CONST CM_OBJ_PARSER CmArmGenericWatchdogInfoParser[] = {
|
||||||
|
@ -560,10 +560,10 @@ STATIC CONST CM_OBJ_PARSER_ARRAY ArmNamespaceObjectParser[] = {
|
||||||
ARRAY_SIZE (CmArmSerialPortInfoParser) },
|
ARRAY_SIZE (CmArmSerialPortInfoParser) },
|
||||||
{ "EArmObjGenericTimerInfo", CmArmGenericTimerInfoParser,
|
{ "EArmObjGenericTimerInfo", CmArmGenericTimerInfoParser,
|
||||||
ARRAY_SIZE (CmArmGenericTimerInfoParser) },
|
ARRAY_SIZE (CmArmGenericTimerInfoParser) },
|
||||||
{ "EArmObjPlatformGTBlockInfo", CmArmGTBlockTimerFrameInfoParser,
|
{ "EArmObjPlatformGTBlockInfo", CmArmGTBlockInfoParser,
|
||||||
ARRAY_SIZE (CmArmGTBlockTimerFrameInfoParser) },
|
|
||||||
{ "EArmObjGTBlockTimerFrameInfo", CmArmGTBlockInfoParser,
|
|
||||||
ARRAY_SIZE (CmArmGTBlockInfoParser) },
|
ARRAY_SIZE (CmArmGTBlockInfoParser) },
|
||||||
|
{ "EArmObjGTBlockTimerFrameInfo", CmArmGTBlockTimerFrameInfoParser,
|
||||||
|
ARRAY_SIZE (CmArmGTBlockTimerFrameInfoParser) },
|
||||||
{ "EArmObjPlatformGenericWatchdogInfo", CmArmGenericWatchdogInfoParser,
|
{ "EArmObjPlatformGenericWatchdogInfo", CmArmGenericWatchdogInfoParser,
|
||||||
ARRAY_SIZE (CmArmGenericWatchdogInfoParser) },
|
ARRAY_SIZE (CmArmGenericWatchdogInfoParser) },
|
||||||
{ "EArmObjPciConfigSpaceInfo", CmArmPciConfigSpaceInfoParser,
|
{ "EArmObjPciConfigSpaceInfo", CmArmPciConfigSpaceInfoParser,
|
||||||
|
|
Loading…
Reference in New Issue