diff options
author | Guo Mang <mang.guo@intel.com> | 2016-12-23 10:58:54 +0800 |
---|---|---|
committer | Guo Mang <mang.guo@intel.com> | 2017-05-09 13:02:53 +0800 |
commit | b0bc75f5112babe277a321ca87d9b99dc927f9ce (patch) | |
tree | 8f245ae28eadacfca8307e03007961f43af453f4 /Silicon/BroxtonSoC/BroxtonSiPkg/NorthCluster/MemoryInit/Mmrc/ProjectIndependent/Include/DataTypes.h | |
parent | 5b55f6ced0930186da442b7c258f6a7f2e962503 (diff) | |
download | edk2-platforms-b0bc75f5112babe277a321ca87d9b99dc927f9ce.tar.xz |
BroxtonSiPkg: Add MemoryInit
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Guo Mang <mang.guo@intel.com>
Diffstat (limited to 'Silicon/BroxtonSoC/BroxtonSiPkg/NorthCluster/MemoryInit/Mmrc/ProjectIndependent/Include/DataTypes.h')
-rw-r--r-- | Silicon/BroxtonSoC/BroxtonSiPkg/NorthCluster/MemoryInit/Mmrc/ProjectIndependent/Include/DataTypes.h | 129 |
1 files changed, 129 insertions, 0 deletions
diff --git a/Silicon/BroxtonSoC/BroxtonSiPkg/NorthCluster/MemoryInit/Mmrc/ProjectIndependent/Include/DataTypes.h b/Silicon/BroxtonSoC/BroxtonSiPkg/NorthCluster/MemoryInit/Mmrc/ProjectIndependent/Include/DataTypes.h new file mode 100644 index 0000000000..93ee6d2f11 --- /dev/null +++ b/Silicon/BroxtonSoC/BroxtonSiPkg/NorthCluster/MemoryInit/Mmrc/ProjectIndependent/Include/DataTypes.h @@ -0,0 +1,129 @@ +/** @file
+ This file include all the external data types.
+
+ Copyright (c) 1999 - 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 _DATATYPES_H_
+#define _DATATYPES_H_
+
+#ifndef __GNUC__
+#pragma warning (disable : 4214 )
+#endif
+
+#ifndef EFI_MEMORY_INIT
+#include "Bind.h"
+typedef uint8_t BOOLEAN;
+#ifndef MRC_DATA_REQUIRED_FROM_OUTSIDE
+#ifndef UINTN
+typedef uintn_t UINTN;
+#endif
+#endif
+
+#ifndef size_t
+#define size_t UINT32
+#endif
+
+#if SIM
+typedef my_int8_t INT8;
+#else
+typedef int8_t INT8;
+#endif
+typedef uint8_t UINT8;
+typedef int16_t INT16;
+typedef uint16_t UINT16;
+#ifndef INT32
+typedef int INT32;
+#endif
+#ifndef UINT32
+typedef uint32_t UINT32;
+#endif
+typedef long long INT64;
+typedef unsigned long long UINT64;
+typedef uint8_t CHAR8;
+typedef uint16_t CHAR16;
+#ifndef EFI_PHYSICAL_ADDRESS
+typedef UINTN EFI_PHYSICAL_ADDRESS;
+#endif
+#ifndef GLOBAL_REMOVE_IF_UNREFERENCED
+ //
+ // The Microsoft* C compiler can removed references to unreferenced data items
+ // if the /OPT:REF linker option is used. We defined a macro as this is a
+ // a non standard extension
+ //
+ #if _MSC_EXTENSIONS
+ #define GLOBAL_REMOVE_IF_UNREFERENCED __declspec(selectany)
+ #else
+ #define GLOBAL_REMOVE_IF_UNREFERENCED
+ #endif
+#endif
+#endif
+
+typedef struct {
+ UINT32 Index;
+ UINT32 DataHigh;
+ UINT32 DataLow;
+} MSR_REG;
+
+typedef struct {
+ INT8 x;
+ INT8 y;
+} TS_LOC;
+
+//
+// Modifiers to abstract standard types to aid in debug of problems
+//
+#ifndef CONST
+#define CONST const
+#endif
+
+#ifndef STATIC
+#define STATIC static
+#endif
+
+#ifndef VOID
+#define VOID void
+#endif
+
+#ifndef VOLATILE
+#define VOLATILE volatile
+#endif
+//
+// Constants. They may exist in other build structures, so #ifndef them.
+//
+#ifndef IN
+#define IN
+#endif
+
+#ifndef OUT
+#define OUT
+#endif
+
+#ifndef TRUE
+#define TRUE ((BOOLEAN) 1 == 1)
+#endif
+
+#ifndef FALSE
+#define FALSE ((BOOLEAN) 0 == 1)
+#endif
+
+#ifndef NULL
+#define NULL ((VOID *) 0)
+#endif
+
+typedef UINT32 MMRC_STATUS;
+#define MMRC_SUCCESS 0
+#define MMRC_DATA_DIRTY 0xFFFFFFFE
+#define MMRC_FAILURE 0xFFFFFFFF
+
+#endif // DATATYPES_H
+
|