1 /*++ 2 3 TPM Device Driver Library error return codes 4 5 --*/ 6 7 #ifndef __TDDL_ERROR_H__ 8 #define __TDDL_ERROR_H__ 9 10 #include <tss/tss_error_basics.h> 11 #include <tss/tss_error.h> 12 13 14 #ifndef TSS_E_BASE 15 #define TSS_E_BASE 0x00000000L 16 #endif // TSS_E_BASE 17 18 19 // 20 // specific error codes returned by the TPM device driver library 21 // offset TSS_TDDL_OFFSET 22 // 23 #define TDDL_E_FAIL TSS_E_FAIL 24 #define TDDL_E_TIMEOUT TSS_E_TIMEOUT 25 26 // The connection was already established. 27 #define TDDL_E_ALREADY_OPENED (UINT32)(TSS_E_BASE + 0x081L) 28 29 // The device was not connected. 30 #define TDDL_E_ALREADY_CLOSED (UINT32)(TSS_E_BASE + 0x082L) 31 32 // The receive buffer is too small. 33 #define TDDL_E_INSUFFICIENT_BUFFER (UINT32)(TSS_E_BASE + 0x083L) 34 35 // The command has already completed. 36 #define TDDL_E_COMMAND_COMPLETED (UINT32)(TSS_E_BASE + 0x084L) 37 38 // TPM aborted processing of command. 39 #define TDDL_E_COMMAND_ABORTED (UINT32)(TSS_E_BASE + 0x085L) 40 41 // The request could not be performed because of an I/O device error. 42 #define TDDL_E_IOERROR (UINT32)(TSS_E_BASE + 0x087L) 43 44 // Unsupported TAG is requested 45 #define TDDL_E_BADTAG (UINT32)(TSS_E_BASE + 0x088L) 46 47 // the requested TPM component was not found 48 #define TDDL_E_COMPONENT_NOT_FOUND (UINT32)(TSS_E_BASE + 0x089L) 49 50 #endif // __TDDL_ERROR_H__ 51 52