]> git.proxmox.com Git - mirror_edk2.git/blame - QuarkSocPkg/QuarkNorthCluster/MemoryInit/Pei/core_types.h
QuarkSocPkg/QncSmmDispatcher: Fix context passed to SMI handlers
[mirror_edk2.git] / QuarkSocPkg / QuarkNorthCluster / MemoryInit / Pei / core_types.h
CommitLineData
9b6bbcdb
MK
1/** @file\r
2Core types used in Mrc.\r
3\r
4Copyright (c) 2013-2015 Intel Corporation.\r
5\r
6This program and the accompanying materials\r
7are licensed and made available under the terms and conditions of the BSD License\r
8which accompanies this distribution. The full text of the license may be found at\r
9http://opensource.org/licenses/bsd-license.php\r
10\r
11THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13\r
14**/\r
15#ifndef __MRC_CORE_TYPES_H\r
16#define __MRC_CORE_TYPES_H\r
17\r
18typedef char char_t;\r
19typedef unsigned char uint8_t;\r
20typedef short int16_t;\r
21typedef unsigned short uint16_t;\r
22typedef int int32_t;\r
23typedef unsigned int uint32_t;\r
24typedef unsigned char bool;\r
25typedef unsigned int size_t;\r
26\r
27#ifdef ASM_INC\r
28// Unfortunately h2inc has issue with long long\r
29typedef struct uint64_s\r
30{\r
31 uint32_t lo;\r
32 uint32_t hi;\r
33}uint64_t;\r
34#else\r
35typedef unsigned long long uint64_t;\r
36#endif\r
37\r
38#ifdef SIM\r
39// Native word length is 64bit in simulation environment\r
40typedef uint64_t uintn_t;\r
41#else\r
42// Quark is 32bit\r
43typedef uint32_t uintn_t;\r
44#endif\r
45\r
46#define PTR32(a) ((volatile uint32_t*)(uintn_t)(a))\r
47\r
48#endif\r
49\r