1 /* SPDX-License-Identifier: BSD-2-Clause */
2 /*
3  * Copyright (c) 2024, Linaro Limited
4  */
5 
6 /* Microsoft Reference Implementation for TPM 2.0
7  *
8  * The copyright in this software is being made available under the BSD
9  * License, included below. This software may be subject to other third
10  * party and contributor rights, including patent rights, and no such
11  * rights are granted under this license.
12  *
13  * Copyright (c) 2018 Microsoft Corporation
14  *
15  * All rights reserved.
16  *
17  * BSD License
18  *
19  * Redistribution and use in source and binary forms, with or without
20  * modification, are permitted provided that the following conditions are
21  * met:
22  *
23  * Redistributions of source code must retain the above copyright notice,
24  * this list of conditions and the following disclaimer.
25  *
26  * Redistributions in binary form must reproduce the above copyright
27  * notice, this list of conditions and the following disclaimer in the
28  * documentation and/or other materials provided with the distribution.
29  *
30  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
31  * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
32  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
33  * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
34  * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
35  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
36  * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
37  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
38  * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
39  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
40  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
41  */
42 
43 /*
44  * The name of this file must not be modified
45  */
46 
47 #ifndef USER_TA_HEADER_DEFINES_H
48 #define USER_TA_HEADER_DEFINES_H
49 
50 #include <ftpm_ta.h>
51 
52 #define TA_UUID		TA_FTPM_UUID
53 
54 #define TA_FLAGS                (TA_FLAG_SINGLE_INSTANCE | \
55 				 TA_FLAG_INSTANCE_KEEP_ALIVE | \
56 				 TA_FLAG_DEVICE_ENUM_TEE_STORAGE_PRIVATE)
57 #define TA_STACK_SIZE           (64 * 1024)
58 #define TA_DATA_SIZE            (32 * 1024)
59 
60 #define TA_VERSION		"0.1"
61 #define TA_DESCRIPTION		"fTPM TA"
62 
63 #endif /*USER_TA_HEADER_DEFINES_H*/
64