]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Include/Guid/FirmwarePerformance.h
Enhance ACPI FPDT DXE and SMM driver to accept the extension boot records.
[mirror_edk2.git] / MdeModulePkg / Include / Guid / FirmwarePerformance.h
index 411a03a9d8d1725d3ef1119585ee24e71dd595c6..89e225d505ef9f250b6c6364ee5b8dc85acf2c0d 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   ACPI Firmware Performance Data Table (FPDT) implementation specific definitions.\r
 \r
-  Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2011 - 2012, 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
 ///   GUID - gEfiFirmwarePerformanceGuid\r
 ///   Data - FIRMWARE_SEC_PERFORMANCE (defined in <Ppi/SecPerformance.h>)\r
 ///\r
+/// SMI:\r
+///   GUID - gEfiFirmwarePerformanceGuid\r
+///   Data - SMM_BOOT_RECORD_COMMUNICATE\r
+///\r
+/// StatusCodeData:\r
+///   Type - gEfiFirmwarePerformanceGuid\r
+///   Data - One or more boot record\r
+///\r
 #define EFI_FIRMWARE_PERFORMANCE_GUID \\r
   { \\r
     0xc095791a, 0x3001, 0x47b2, {0x80, 0xc9, 0xea, 0xc7, 0x31, 0x9f, 0x2f, 0xa4 } \\r
@@ -72,6 +80,9 @@ typedef struct {
 typedef struct {\r
   EFI_ACPI_5_0_FPDT_PERFORMANCE_TABLE_HEADER   Header;     ///< Common ACPI table header.\r
   EFI_ACPI_5_0_FPDT_FIRMWARE_BASIC_BOOT_RECORD BasicBoot;  ///< Basic Boot Resume performance record.\r
+  //\r
+  // one or more boot performance records.\r
+  //\r
 } BOOT_PERFORMANCE_TABLE;\r
 \r
 ///\r
@@ -93,6 +104,19 @@ typedef struct {
 \r
 #pragma pack()\r
 \r
+//\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
+\r
+typedef struct {\r
+  UINTN             Function;\r
+  EFI_STATUS        ReturnStatus;\r
+  UINTN             BootRecordSize;\r
+  VOID              *BootRecordData;\r
+} SMM_BOOT_RECORD_COMMUNICATE;\r
+\r
 extern EFI_GUID gEfiFirmwarePerformanceGuid;\r
 \r
 #endif\r