]> git.proxmox.com Git - mirror_edk2.git/blame - QuarkSocPkg/QuarkNorthCluster/MemoryInit/Pei/core_types.h
QuarkSocPkg: Replace BSD License with BSD+Patent License
[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
c9f231d0 6SPDX-License-Identifier: BSD-2-Clause-Patent\r
9b6bbcdb
MK
7\r
8**/\r
9#ifndef __MRC_CORE_TYPES_H\r
10#define __MRC_CORE_TYPES_H\r
11\r
12typedef char char_t;\r
13typedef unsigned char uint8_t;\r
14typedef short int16_t;\r
15typedef unsigned short uint16_t;\r
16typedef int int32_t;\r
17typedef unsigned int uint32_t;\r
18typedef unsigned char bool;\r
19typedef unsigned int size_t;\r
20\r
21#ifdef ASM_INC\r
22// Unfortunately h2inc has issue with long long\r
23typedef struct uint64_s\r
24{\r
25 uint32_t lo;\r
26 uint32_t hi;\r
27}uint64_t;\r
28#else\r
29typedef unsigned long long uint64_t;\r
30#endif\r
31\r
32#ifdef SIM\r
33// Native word length is 64bit in simulation environment\r
34typedef uint64_t uintn_t;\r
35#else\r
36// Quark is 32bit\r
37typedef uint32_t uintn_t;\r
38#endif\r
39\r
40#define PTR32(a) ((volatile uint32_t*)(uintn_t)(a))\r
41\r
42#endif\r
43\r