]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg-FPDT(1): Add SMM_FPDT_FUNCTION_GET_BOOT_RECORD_DATA_BY_OFFSET definition.
authorLiming Gao <liming.gao@intel.com>
Fri, 22 Apr 2016 07:22:43 +0000 (15:22 +0800)
committerJiewen Yao <jiewen.yao@intel.com>
Fri, 29 Apr 2016 04:49:16 +0000 (12:49 +0800)
This patch enhance performance data SMM communication by using fixed
SMM communication buffer.

A new command SMM_FPDT_FUNCTION_GET_BOOT_RECORD_DATA_BY_OFFSET is added,
because we need to support get partial PerformanceData to fixed SMM communication
buffer. If performance data is bigger than fixed SMM communication buffer,
the DXE agent need to call SMM_FPDT_FUNCTION_GET_BOOT_RECORD_DATA_BY_OFFSET
multiple times to get all data out.

This is designed to meet Microsoft WSMT table definition on FIXED_COMM_BUFFERS
requirement.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Feng Tian <feng.tian@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
MdeModulePkg/Include/Guid/FirmwarePerformance.h

index a4aeda275986c7e28bf5ad9956a9b74f4753b49e..4697a2c41e53f2fa811da16575111950f03d9b8f 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   ACPI Firmware Performance Data Table (FPDT) implementation specific definitions.\r
 \r
-  Copyright (c) 2011 - 2013, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2011 - 2016, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -116,14 +116,16 @@ typedef struct {
 //\r
 // Log BOOT RECORD from SMM driver on boot time.\r
 //\r
-#define SMM_FPDT_FUNCTION_GET_BOOT_RECORD_SIZE          1\r
-#define SMM_FPDT_FUNCTION_GET_BOOT_RECORD_DATA          2\r
+#define SMM_FPDT_FUNCTION_GET_BOOT_RECORD_SIZE           1\r
+#define SMM_FPDT_FUNCTION_GET_BOOT_RECORD_DATA           2\r
+#define SMM_FPDT_FUNCTION_GET_BOOT_RECORD_DATA_BY_OFFSET 3\r
 \r
 typedef struct {\r
   UINTN             Function;\r
   EFI_STATUS        ReturnStatus;\r
   UINTN             BootRecordSize;\r
   VOID              *BootRecordData;\r
+  UINTN             BootRecordOffset;\r
 } SMM_BOOT_RECORD_COMMUNICATE;\r
 \r
 extern EFI_GUID gEfiFirmwarePerformanceGuid;\r