Vadim Bendebury | 5679752 | 2015-05-20 10:32:25 -0700 | [diff] [blame] | 1 | // This file was extracted from the TCG Published |
2 | // Trusted Platform Module Library | ||||
3 | // Part 4: Supporting Routines | ||||
4 | // Family "2.0" | ||||
5 | // Level 00 Revision 01.16 | ||||
6 | // October 30, 2014 | ||||
7 | |||||
8 | #ifndef _BASETYPES_H | ||||
9 | #define _BASETYPES_H | ||||
10 | #include "stdint.h" | ||||
11 | // | ||||
12 | // NULL definition | ||||
13 | // | ||||
14 | #ifndef NULL | ||||
15 | #define NULL (0) | ||||
16 | #endif | ||||
17 | typedef uint8_t UINT8; | ||||
18 | typedef uint8_t BYTE; | ||||
19 | typedef int8_t INT8; | ||||
20 | typedef int BOOL; | ||||
21 | typedef uint16_t UINT16; | ||||
22 | typedef int16_t INT16; | ||||
23 | typedef uint32_t UINT32; | ||||
24 | typedef int32_t INT32; | ||||
25 | typedef uint64_t UINT64; | ||||
26 | typedef int64_t INT64; | ||||
27 | typedef struct { | ||||
28 | UINT16 size; | ||||
29 | BYTE buffer[1]; | ||||
30 | } TPM2B; | ||||
31 | #endif |