blob: 3814559c68f920f2e2169cb683c669fc9d61ea3a [file] [log] [blame]
Jocelyn Bohra4ed3aa2015-07-30 10:44:16 -07001// Copyright 2015 The Chromium OS Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
Vadim Bendeburyc34f4d92015-05-29 22:56:35 -07004
Jocelyn Bohra4ed3aa2015-07-30 10:44:16 -07005// THIS CODE IS GENERATED - DO NOT MODIFY!
Vadim Bendeburyc34f4d92015-05-29 22:56:35 -07006
Vadim Bendebury776e2362015-09-04 16:14:53 -07007#ifndef TPM2_FLUSHCONTEXT_FP_H_
8#define TPM2_FLUSHCONTEXT_FP_H_
Vadim Bendeburyc34f4d92015-05-29 22:56:35 -07009
Jocelyn Bohra4ed3aa2015-07-30 10:44:16 -070010#include "tpm_generated.h"
Vadim Bendeburyc34f4d92015-05-29 22:56:35 -070011
Vadim Bendebury9de49d32019-01-15 09:36:48 -080012typedef struct {
13 TPMI_DH_CONTEXT flushHandle;
14} FlushContext_In;
Jocelyn Bohra4ed3aa2015-07-30 10:44:16 -070015
16// Executes FlushContext with request handles and parameters from |in|.
17TPM_RC TPM2_FlushContext(FlushContext_In* in);
18
Vadim Bendebury776e2362015-09-04 16:14:53 -070019// Unmarshals any request parameters starting at |request_parameter_buffer|.
Jocelyn Bohra4ed3aa2015-07-30 10:44:16 -070020// Executes command. Marshals any response handles and parameters to the
Vadim Bendebury776e2362015-09-04 16:14:53 -070021// global response buffer and computes |*response_handle_buffer_size| and
22// |*response_parameter_buffer_size|. If |tag| == TPM_ST_SESSIONS, marshals
Jocelyn Bohra4ed3aa2015-07-30 10:44:16 -070023// parameter_size indicating the size of the parameter area. parameter_size
24// field is located between the handle area and parameter area.
25TPM_RC Exec_FlushContext(TPMI_ST_COMMAND_TAG tag,
Vadim Bendebury776e2362015-09-04 16:14:53 -070026 BYTE** request_parameter_buffer,
27 INT32* request_parameter_buffer_size,
28 TPM_HANDLE request_handles[],
29 UINT32* response_handle_buffer_size,
30 UINT32* response_parameter_buffer_size);
Jocelyn Bohra4ed3aa2015-07-30 10:44:16 -070031
32#endif // TPM2_FLUSHCONTEXT_FP_H