]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelSiliconPkg/Feature/Capsule/MicrocodeUpdateDxe/MicrocodeUpdate.h
IntelSiliconPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / IntelSiliconPkg / Feature / Capsule / MicrocodeUpdateDxe / MicrocodeUpdate.h
index 4442032eb6b620bffe6a38e3684836db09cccd42..ecbe8b4994eaeb5cea4af66fe130baec7f63f02c 100644 (file)
@@ -2,13 +2,7 @@
   Microcode update header file.\r
 \r
   Copyright (c) 2016 - 2018, 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
-  http://opensource.org/licenses/bsd-license.php\r
-\r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 \r
@@ -20,6 +14,8 @@
 #include <Guid/SystemResourceTable.h>\r
 #include <Guid/MicrocodeFmp.h>\r
 \r
+#include <IndustryStandard/FirmwareInterfaceTable.h>\r
+\r
 #include <Protocol/FirmwareManagement.h>\r
 #include <Protocol/MpService.h>\r
 \r
@@ -57,6 +53,13 @@ typedef struct {
   BOOLEAN                InUse;\r
 } MICROCODE_INFO;\r
 \r
+typedef struct {\r
+  CPU_MICROCODE_HEADER   *MicrocodeEntryPoint;\r
+  UINTN                  TotalSize;\r
+  BOOLEAN                InUse;\r
+  BOOLEAN                Empty;\r
+} FIT_MICROCODE_INFO;\r
+\r
 typedef struct {\r
   UINTN                  CpuIndex;\r
   UINT32                 ProcessorSignature;\r
@@ -86,11 +89,13 @@ struct _MICROCODE_FMP_PRIVATE_DATA {
   UINTN                                BspIndex;\r
   UINTN                                ProcessorCount;\r
   PROCESSOR_INFO                       *ProcessorInfo;\r
+  UINT32                               FitMicrocodeEntryCount;\r
+  FIT_MICROCODE_INFO                   *FitMicrocodeInfo;\r
 };\r
 \r
 typedef struct _MICROCODE_FMP_PRIVATE_DATA  MICROCODE_FMP_PRIVATE_DATA;\r
 \r
-#define MICROCODE_FMP_LAST_ATTEMPT_VARIABLE_NAME  L"MicrocodeLastAttempVar"\r
+#define MICROCODE_FMP_LAST_ATTEMPT_VARIABLE_NAME  L"MicrocodeLastAttemptVar"\r
 \r
 /**\r
   Returns a pointer to the MICROCODE_FMP_PRIVATE_DATA structure from the input a as Fmp.\r