]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFsp2Pkg/Include/FspGlobalData.h
IntelFsp2Pkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / IntelFsp2Pkg / Include / FspGlobalData.h
index a484d16dcc9aba47a606a15aa8898251d5f94710..1896b0240a8b15056cab0ea2233e6cec53962023 100644 (file)
@@ -1,13 +1,7 @@
 /** @file\r
 \r
-  Copyright (c) 2014 - 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
-  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
+  Copyright (c) 2014 - 2018, Intel Corporation. All rights reserved.<BR>\r
+  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 \r
@@ -16,6 +10,9 @@
 \r
 #include <FspEas.h>\r
 \r
+#define FSP_IN_API_MODE      0\r
+#define FSP_IN_DISPATCH_MODE 1\r
+\r
 #pragma pack(1)\r
 \r
 typedef enum {\r
@@ -34,12 +31,11 @@ typedef struct  {
    UINT32             MicrocodeRegionSize;\r
    UINT32             CodeRegionBase;\r
    UINT32             CodeRegionSize;\r
-   UINT32             CarBase;\r
-   UINT32             CarSize;\r
 } FSP_PLAT_DATA;\r
 \r
 #define FSP_GLOBAL_DATA_SIGNATURE  SIGNATURE_32 ('F', 'S', 'P', 'D')\r
 #define FSP_PERFORMANCE_DATA_SIGNATURE  SIGNATURE_32 ('P', 'E', 'R', 'F')\r
+#define FSP_PERFORMANCE_DATA_TIMER_MASK 0xFFFFFFFFFFFFFF\r
 \r
 typedef struct  {\r
    UINT32             Signature;\r
@@ -55,7 +51,8 @@ typedef struct  {
    VOID               *MemoryInitUpdPtr;\r
    VOID               *SiliconInitUpdPtr;\r
    UINT8              ApiIdx;\r
-   UINT8              Reserved3[31];\r
+   UINT8              FspMode; // 0: FSP in API mode; 1: FSP in DISPATCH mode\r
+   UINT8              Reserved3[30];\r
    UINT32             PerfSig;\r
    UINT16             PerfLen;\r
    UINT16             Reserved4;\r