]>
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 | |
6 | This program and the accompanying materials\r | |
7 | are licensed and made available under the terms and conditions of the BSD License\r | |
8 | which accompanies this distribution. The full text of the license may be found at\r | |
9 | http://opensource.org/licenses/bsd-license.php\r | |
10 | \r | |
11 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
12 | WITHOUT 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 | |
18 | typedef char char_t;\r | |
19 | typedef unsigned char uint8_t;\r | |
20 | typedef short int16_t;\r | |
21 | typedef unsigned short uint16_t;\r | |
22 | typedef int int32_t;\r | |
23 | typedef unsigned int uint32_t;\r | |
24 | typedef unsigned char bool;\r | |
25 | typedef unsigned int size_t;\r | |
26 | \r | |
27 | #ifdef ASM_INC\r | |
28 | // Unfortunately h2inc has issue with long long\r | |
29 | typedef struct uint64_s\r | |
30 | {\r | |
31 | uint32_t lo;\r | |
32 | uint32_t hi;\r | |
33 | }uint64_t;\r | |
34 | #else\r | |
35 | typedef 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 | |
40 | typedef uint64_t uintn_t;\r | |
41 | #else\r | |
42 | // Quark is 32bit\r | |
43 | typedef 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 |