blob: 3153d011494bdf843044ab9d440500bcbd902c82 (
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
|
/* Copyright 2015 The ChromiumOS Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef __EC_TEST_TPM_TEST_FTDI_SPI_TPM_H
#define __EC_TEST_TPM_TEST_FTDI_SPI_TPM_H
#include "mpsse.h"
/*
* This structure allows to convert string representation between C and
* Python.
*/
struct swig_string_data {
int size;
uint8_t *data;
};
int FtdiSpiInit(uint32_t freq, int enable_debug);
void FtdiStop(void);
struct swig_string_data FtdiSendCommandAndWait(char *tpm_command,
int command_size);
#endif /* ! __EC_TEST_TPM_TEST_FTDI_SPI_TPM_H */
|