diff options
author | Guo Mang <mang.guo@intel.com> | 2016-12-23 13:07:00 +0800 |
---|---|---|
committer | Guo Mang <mang.guo@intel.com> | 2016-12-26 19:15:09 +0800 |
commit | fb9339ccebbb304a6fdaffcb95814dede3ef5f8a (patch) | |
tree | 6b5feab71e528d46cfbc98ceb755ffac491bb862 /Silicon/BroxtonSoC/BroxtonSiPkg/Txe/Heci/Smm/HeciSmm.h | |
parent | 387310c8dca74b9b92719242c35b08f36dc7336e (diff) | |
download | edk2-platforms-fb9339ccebbb304a6fdaffcb95814dede3ef5f8a.tar.xz |
BroxtonSiPkg: Add Heci
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Guo Mang <mang.guo@intel.com>
Diffstat (limited to 'Silicon/BroxtonSoC/BroxtonSiPkg/Txe/Heci/Smm/HeciSmm.h')
-rw-r--r-- | Silicon/BroxtonSoC/BroxtonSiPkg/Txe/Heci/Smm/HeciSmm.h | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/Silicon/BroxtonSoC/BroxtonSiPkg/Txe/Heci/Smm/HeciSmm.h b/Silicon/BroxtonSoC/BroxtonSiPkg/Txe/Heci/Smm/HeciSmm.h new file mode 100644 index 0000000000..dac73d2f33 --- /dev/null +++ b/Silicon/BroxtonSoC/BroxtonSiPkg/Txe/Heci/Smm/HeciSmm.h @@ -0,0 +1,61 @@ +/** @file
+ Definitions for HECI SMM driver.
+
+ Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
+
+ This program and the accompanying materials
+ are licensed and made available under the terms and conditions of the BSD License
+ which accompanies this distribution. The full text of the license may be found at
+ http://opensource.org/licenses/bsd-license.php.
+
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+
+**/
+
+#ifndef _HECI_SMM_H_
+#define _HECI_SMM_H_
+
+#define SMM_HECI_FUNCTION_SEND_MESSAGE_WITH_ACK 1
+#define SMM_HECI_FUNCTION_READ_MESSAGE 2
+#define SMM_HECI_FUNCTION_SEND_MESSAGE 3
+#define SMM_HECI_FUNCTION_GET_STATUS 8
+#define SMM_HECI_TRUSTED_CHANNEL_ERROR 5
+
+#define SMM_HECI_MESSAGE_END_OF_POST 0x100
+#define SMM_HECI_MESSAGE_END_OF_SERVICES 0x101
+
+#define PCI_CFG_GS3 0x74
+#define PCI_CFG_GS3_PANIC_SUPPORTED 0x00080000
+#define PCI_CFG_GS3_PANIC 0x00000008
+
+typedef struct {
+ UINTN Function;
+ EFI_STATUS ReturnStatus;
+ UINT8 Data[1];
+} SMM_HECI_COMMUNICATE_HEADER;
+
+typedef struct {
+ UINT32 Length;
+ UINT32 HostAddress;
+ UINT32 CSEAddress;
+ UINT8 MessageData[1];
+} SMM_HECI_SEND_MESSAGE_BODY;
+
+typedef struct {
+ UINT32 Length;
+ UINT8 MessageData[1];
+} SMM_HECI_READ_MESSAGE_BODY;
+
+typedef struct {
+ UINT32 Length;
+ UINT32 RecLength;
+ UINT32 HostAddress;
+ UINT32 CSEAddress;
+ UINT8 MessageData[1];
+} SMM_HECI_SEND_MESSAGE_W_ACK_BODY;
+
+#define MAX_HECI_BUFFER_SIZE 0x10000
+
+#endif
+
|