Home | History | Annotate | Line # | Download | only in include
      1 
      2 /*
      3  * Licensed Materials - Property of IBM
      4  *
      5  * trousers - An open source TCG Software Stack
      6  *
      7  * (C) Copyright International Business Machines Corp. 2004, 2005
      8  *
      9  */
     10 
     11 
     12 #ifndef _TDDL_H_
     13 #define _TDDL_H_
     14 
     15 #include <threads.h>
     16 #include "tcsd_wrap.h"
     17 #include "tcsd.h"
     18 
     19 struct tpm_device_node {
     20 	char *path;
     21 #define TDDL_TRANSMIT_IOCTL	1
     22 #define TDDL_TRANSMIT_RW	2
     23 	int transmit;
     24 	int fd;
     25 };
     26 
     27 #define TDDL_TXBUF_SIZE		2048
     28 #define TDDL_UNDEF		-1
     29 
     30 TSS_RESULT Tddli_Open(void);
     31 
     32 TSS_RESULT Tddli_TransmitData(BYTE *pTransmitBuf,
     33 			UINT32 TransmitBufLen,
     34 			BYTE *pReceiveBuf,
     35 			UINT32 *pReceiveBufLen);
     36 
     37 TSS_RESULT Tddli_Close(void);
     38 
     39 #endif
     40