]> git.proxmox.com Git - mirror_edk2.git/blobdiff - QuarkSocPkg/QuarkNorthCluster/MemoryInit/Pei/core_types.h
QuarkSocPkg: Add new package for Quark SoC X1000
[mirror_edk2.git] / QuarkSocPkg / QuarkNorthCluster / MemoryInit / Pei / core_types.h
diff --git a/QuarkSocPkg/QuarkNorthCluster/MemoryInit/Pei/core_types.h b/QuarkSocPkg/QuarkNorthCluster/MemoryInit/Pei/core_types.h
new file mode 100644 (file)
index 0000000..78807a0
--- /dev/null
@@ -0,0 +1,49 @@
+/** @file\r
+Core types used in Mrc.\r
+\r
+Copyright (c) 2013-2015 Intel Corporation.\r
+\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
+\r
+**/\r
+#ifndef __MRC_CORE_TYPES_H\r
+#define __MRC_CORE_TYPES_H\r
+\r
+typedef char char_t;\r
+typedef unsigned char uint8_t;\r
+typedef short int16_t;\r
+typedef unsigned short uint16_t;\r
+typedef int int32_t;\r
+typedef unsigned int uint32_t;\r
+typedef unsigned char bool;\r
+typedef unsigned int size_t;\r
+\r
+#ifdef ASM_INC\r
+// Unfortunately h2inc has issue with long long\r
+typedef struct uint64_s\r
+{\r
+  uint32_t lo;\r
+  uint32_t hi;\r
+}uint64_t;\r
+#else\r
+typedef unsigned long long uint64_t;\r
+#endif\r
+\r
+#ifdef SIM\r
+// Native word length is 64bit in simulation environment\r
+typedef uint64_t uintn_t;\r
+#else\r
+// Quark is 32bit\r
+typedef uint32_t uintn_t;\r
+#endif\r
+\r
+#define PTR32(a)  ((volatile uint32_t*)(uintn_t)(a))\r
+\r
+#endif\r
+\r