OLD | NEW |
(Empty) | |
| 1 /******************************************************************************* |
| 2 ** |
| 3 ** FILENAME: tddl.h |
| 4 ** COPYRIGHT: Infineon Technologies |
| 5 ** DESCRIPTION: I2C TPM - TDDL API. |
| 6 ** CREATOR: Peter Huewe <huewe.external@infineon.com> |
| 7 ** LICENSE: GPL |
| 8 ** VERSION: 2.1.1 |
| 9 *******************************************************************************/ |
| 10 #ifndef _TDDL_H_ |
| 11 #define _TDDL_H_ |
| 12 |
| 13 /* Includes from U-Boot */ |
| 14 #include <linux/types.h> |
| 15 |
| 16 typedef uint32_t TDDL_RESULT; |
| 17 |
| 18 #define TDDL_SUCCESS 0x00000000L |
| 19 #define TDDL_E_FAIL 0x00000001L |
| 20 #define TDDL_E_COMPONENT_NOT_FOUND (TDDL_E_FAIL + 0x00000001L) |
| 21 #define TDDL_E_ALREADY_OPENED (TDDL_E_FAIL + 0x00000002L) |
| 22 |
| 23 |
| 24 /* if dev_addr != 0 - redefines TPM device address */ |
| 25 TDDL_RESULT TDDL_Open(uint32_t dev_addr); |
| 26 |
| 27 TDDL_RESULT TDDL_Close(void); |
| 28 |
| 29 TDDL_RESULT TDDL_TransmitData(uint8_t *pbTransmitBuf, uint32_t dwTransmitBufLen, |
| 30 uint8_t *pbReceiveBuf, uint32_t *pdwReceiveBufLen); |
| 31 #endif |
OLD | NEW |