]>
Commit | Line | Data |
---|---|---|
9b6bbcdb MK |
1 | /** @file\r |
2 | Core types used in Mrc.\r | |
3 | \r | |
4 | Copyright (c) 2013-2015 Intel Corporation.\r | |
5 | \r | |
c9f231d0 | 6 | SPDX-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 | |
12 | typedef char char_t;\r | |
13 | typedef unsigned char uint8_t;\r | |
14 | typedef short int16_t;\r | |
15 | typedef unsigned short uint16_t;\r | |
16 | typedef int int32_t;\r | |
17 | typedef unsigned int uint32_t;\r | |
18 | typedef unsigned char bool;\r | |
19 | typedef unsigned int size_t;\r | |
20 | \r | |
21 | #ifdef ASM_INC\r | |
22 | // Unfortunately h2inc has issue with long long\r | |
23 | typedef struct uint64_s\r | |
24 | {\r | |
25 | uint32_t lo;\r | |
26 | uint32_t hi;\r | |
27 | }uint64_t;\r | |
28 | #else\r | |
29 | typedef 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 | |
34 | typedef uint64_t uintn_t;\r | |
35 | #else\r | |
36 | // Quark is 32bit\r | |
37 | typedef 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 |