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