blob: cf5bb3ab2a2599ad875fda2e3782dd9b691cc8e8 (
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
32
33
34
35
36
37
38
39
|
/*
* Licensed Materials - Property of IBM
*
* trousers - An open source TCG Software Stack
*
* (C) Copyright International Business Machines Corp. 2004, 2005
*
*/
#ifndef _TDDL_H_
#define _TDDL_H_
#include <threads.h>
#include "tcsd_wrap.h"
#include "tcsd.h"
struct tpm_device_node {
char *path;
#define TDDL_TRANSMIT_IOCTL 1
#define TDDL_TRANSMIT_RW 2
int transmit;
int fd;
};
#define TDDL_TXBUF_SIZE 2048
#define TDDL_UNDEF -1
TSS_RESULT Tddli_Open(void);
TSS_RESULT Tddli_TransmitData(BYTE *pTransmitBuf,
UINT32 TransmitBufLen,
BYTE *pReceiveBuf,
UINT32 *pReceiveBufLen);
TSS_RESULT Tddli_Close(void);
#endif
|