summaryrefslogtreecommitdiff
path: root/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/DxeCheckAcpi.c
diff options
context:
space:
mode:
Diffstat (limited to 'Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/DxeCheckAcpi.c')
-rw-r--r--Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/DxeCheckAcpi.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/DxeCheckAcpi.c b/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/DxeCheckAcpi.c
index 491d2fd162..fce46bd083 100644
--- a/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/DxeCheckAcpi.c
+++ b/Platform/Intel/MinPlatformPkg/Test/Library/TestPointCheckLib/DxeCheckAcpi.c
@@ -356,3 +356,24 @@ TestPointCheckAcpi (
return Status;
}
+
+VOID *
+TestPointGetAcpi (
+ IN UINT32 Signature
+ )
+{
+ EFI_STATUS Status;
+ VOID *Table;
+
+ Status = DumpAcpiWithGuid (&gEfiAcpi20TableGuid, &Signature, &Table);
+ if (Status == EFI_NOT_FOUND) {
+ Status = DumpAcpiWithGuid (&gEfiAcpi10TableGuid, &Signature, &Table);
+ }
+
+ if (EFI_ERROR(Status)) {
+ return NULL;
+ }
+
+ return Table;
+}
+