aboutsummaryrefslogtreecommitdiff
path: root/BaseTypes.h
blob: 0f46df4f739ae4c1c8bb9f27bbf6369bd46f5916 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// This file was extracted from the TCG Published
// Trusted Platform Module Library
// Part 4: Supporting Routines
// Family "2.0"
// Level 00 Revision 01.16
// October 30, 2014

#ifndef _BASETYPES_H
#define _BASETYPES_H
#include "stdint.h"
//
//     NULL definition
//
#ifndef          NULL
#define          NULL        (0)
#endif
typedef uint8_t              UINT8;
typedef uint8_t              BYTE;
typedef int8_t               INT8;
typedef int                   BOOL;
typedef uint16_t             UINT16;
typedef int16_t              INT16;
typedef uint32_t             UINT32;
typedef int32_t              INT32;
typedef uint64_t             UINT64;
typedef int64_t              INT64;
typedef struct {
   UINT16         size;
   BYTE           buffer[1];
} TPM2B;
#endif