Skip to content

Commit 7db0fc6

Browse files
committed
DynamicTablesPkg: Smbios Physical Memory Array (Type 16)
Add the Generator library for SMBIOS Table Type 16 - Physical Memory Array. Signed-off-by: Girish Mahadevan <[email protected]> Reviewed-by: Jeff Brasen <[email protected]> Reviewed-by: Nick Ramirez <[email protected]>
1 parent ff8a486 commit 7db0fc6

File tree

4 files changed

+415
-3
lines changed

4 files changed

+415
-3
lines changed

DynamicTablesPkg/Drivers/DynamicTableManagerDxe/SmbiosTableBuilder.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,6 @@ BuildAndInstallMultipleSmbiosTables (
311311
}
312312
}
313313

314-
DEBUG ((DEBUG_ERROR, "%a: Returning %r\n", __FUNCTION__, Status));
315314
return Status;
316315
}
317316

@@ -431,7 +430,6 @@ BuildAndInstallSmbiosTable (
431430
));
432431
}
433432

434-
DEBUG ((DEBUG_ERROR, "%a: Returning %r\n", __FUNCTION__, Status));
435433
return Status;
436434
}
437435

@@ -515,7 +513,6 @@ ProcessSmbiosTables (
515513
));
516514
}
517515

518-
DEBUG ((DEBUG_ERROR, "%a: Returning %r\n", __FUNCTION__, Status));
519516
return Status;
520517
}
521518

DynamicTablesPkg/Include/SmbiosNameSpaceObjects.h

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,25 @@ typedef struct {
132132
SMBIOS_TABLE_GENERATOR_ID GeneratorId;
133133
} CONTAINED_CM_OBJECTS;
134134

135+
/** A structure that describes the Physical Memory Array.
136+
137+
SMBIOS Specification v3.6.0 Type 16
138+
139+
ID: ESmbiosObjPhysicalMemoryArray
140+
**/
141+
typedef struct CmSmbiosPhysicalMemoryArray {
142+
UINT8 Use;
143+
UINT8 Location;
144+
UINT16 MemoryErrorCorrection;
145+
UINT16 MemoryErrorInformationHandle;
146+
UINT16 NumberOfMemoryDevices;
147+
UINT8 MemoryErrorCorrectionType;
148+
UINT64 Size;
149+
UINT8 NumMemDevices;
150+
CM_OBJECT_TOKEN MemoryErrInfoToken;
151+
CM_OBJECT_TOKEN PhysMemArrayToken;
152+
} CM_SMBIOS_PHYSICAL_MEMORY_ARRAY;
153+
135154
#pragma pack()
136155

137156
#endif // SMBIOS_NAMESPACE_OBJECTS_H_

0 commit comments

Comments
 (0)