TPM_BASE
#define TPM_SUCCESS ((TPM_RESULT) TPM_BASE)
#define TPM_AUTHFAIL ((TPM_RESULT) (TPM_BASE + 1))
#define TPM_BADINDEX ((TPM_RESULT) (TPM_BASE + 2))
#define TPM_BAD_PARAMETER ((TPM_RESULT) (TPM_BASE + 3))
#define TPM_AUDITFAILURE ((TPM_RESULT) (TPM_BASE + 4))
#define TPM_CLEAR_DISABLED ((TPM_RESULT) (TPM_BASE + 5))
#define TPM_DEACTIVATED ((TPM_RESULT) (TPM_BASE + 6))
#define TPM_DISABLED ((TPM_RESULT) (TPM_BASE + 7))
#define TPM_DISABLED_CMD ((TPM_RESULT) (TPM_BASE + 8))
#define TPM_FAIL ((TPM_RESULT) (TPM_BASE + 9))
#define TPM_BAD_ORDINAL ((TPM_RESULT) (TPM_BASE + 10))
#define TPM_INSTALL_DISABLED ((TPM_RESULT) (TPM_BASE + 11))
#define TPM_INVALID_KEYHANDLE ((TPM_RESULT) (TPM_BASE + 12))
#define TPM_KEYNOTFOUND ((TPM_RESULT) (TPM_BASE + 13))
#define TPM_INAPPROPRIATE_ENC ((TPM_RESULT) (TPM_BASE + 14))
#define TPM_MIGRATEFAIL ((TPM_RESULT) (TPM_BASE + 15))
#define TPM_INVALID_PCR_INFO ((TPM_RESULT) (TPM_BASE + 16))
#define TPM_NOSPACE ((TPM_RESULT) (TPM_BASE + 17))
#define TPM_NOSRK ((TPM_RESULT) (TPM_BASE + 18))
#define TPM_NOTSEALED_BLOB ((TPM_RESULT) (TPM_BASE + 19))
#define TPM_OWNER_SET ((TPM_RESULT) (TPM_BASE + 20))
#define TPM_RESOURCES ((TPM_RESULT) (TPM_BASE + 21))
#define TPM_SHORTRANDOM ((TPM_RESULT) (TPM_BASE + 22))
#define TPM_SIZE ((TPM_RESULT) (TPM_BASE + 23))
#define TPM_WRONGPCRVAL ((TPM_RESULT) (TPM_BASE + 24))
#define TPM_BAD_PARAM_SIZE ((TPM_RESULT) (TPM_BASE + 25))
#define TPM_SHA_THREAD ((TPM_RESULT) (TPM_BASE + 26))
#define TPM_SHA_ERROR ((TPM_RESULT) (TPM_BASE + 27))
#define TPM_FAILEDSELFTEST ((TPM_RESULT) (TPM_BASE + 28))
#define TPM_AUTH2FAIL ((TPM_RESULT) (TPM_BASE + 29))
#define TPM_BADTAG ((TPM_RESULT) (TPM_BASE + 30))
#define TPM_IOERROR ((TPM_RESULT) (TPM_BASE + 31))
#define TPM_ENCRYPT_ERROR ((TPM_RESULT) (TPM_BASE + 32))
#define TPM_DECRYPT_ERROR ((TPM_RESULT) (TPM_BASE + 33))
#define TPM_INVALID_AUTHHANDLE ((TPM_RESULT) (TPM_BASE + 34))
#define TPM_NO_ENDORSEMENT ((TPM_RESULT) (TPM_BASE + 35))
#define TPM_INVALID_KEYUSAGE ((TPM_RESULT) (TPM_BASE + 36))
#define TPM_WRONG_ENTITYTYPE ((TPM_RESULT) (TPM_BASE + 37))
#define TPM_INVALID_POSTINIT ((TPM_RESULT) (TPM_BASE + 38))
#define TPM_INAPPROPRIATE_SIG ((TPM_RESULT) (TPM_BASE + 39))
#define TPM_BAD_KEY_PROPERTY ((TPM_RESULT) (TPM_BASE + 40))
#define TPM_BAD_MIGRATION ((TPM_RESULT) (TPM_BASE + 41))
#define TPM_BAD_SCHEME ((TPM_RESULT) (TPM_BASE + 42))
#define TPM_BAD_DATASIZE ((TPM_RESULT) (TPM_BASE + 43))
#define TPM_BAD_MODE ((TPM_RESULT) (TPM_BASE + 44))
#define TPM_BAD_PRESENCE ((TPM_RESULT) (TPM_BASE + 45))
#define TPM_BAD_VERSION ((TPM_RESULT) (TPM_BASE + 46))
#define TPM_NO_WRAP_TRANSPORT ((TPM_RESULT) (TPM_BASE + 47))
#define TPM_AUDITFAIL_UNSUCCESSFUL ((TPM_RESULT) (TPM_BASE + 48))
#define TPM_AUDITFAIL_SUCCESSFUL ((TPM_RESULT) (TPM_BASE + 49))
#define TPM_NOTRESETABLE ((TPM_RESULT) (TPM_BASE + 50))
#define TPM_NOTLOCAL ((TPM_RESULT) (TPM_BASE + 51))
#define TPM_BAD_TYPE ((TPM_RESULT) (TPM_BASE + 52))
#define TPM_INVALID_RESOURCE ((TPM_RESULT) (TPM_BASE + 53))
#define TPM_NOTFIPS ((TPM_RESULT) (TPM_BASE + 54))
#define TPM_INVALID_FAMILY ((TPM_RESULT) (TPM_BASE + 55))
#define TPM_NO_NV_PERMISSION ((TPM_RESULT) (TPM_BASE + 56))
#define TPM_REQUIRES_SIGN ((TPM_RESULT) (TPM_BASE + 57))
#define TPM_KEY_NOTSUPPORTED ((TPM_RESULT) (TPM_BASE + 58))
#define TPM_AUTH_CONFLICT ((TPM_RESULT) (TPM_BASE + 59))
#define TPM_AREA_LOCKED ((TPM_RESULT) (TPM_BASE + 60))
#define TPM_BAD_LOCALITY ((TPM_RESULT) (TPM_BASE + 61))
#define TPM_READ_ONLY ((TPM_RESULT) (TPM_BASE + 62))
#define TPM_PER_NOWRITE ((TPM_RESULT) (TPM_BASE + 63))
#define TPM_FAMILYCOUNT ((TPM_RESULT) (TPM_BASE + 64))
#define TPM_WRITE_LOCKED ((TPM_RESULT) (TPM_BASE + 65))
#define TPM_BAD_ATTRIBUTES ((TPM_RESULT) (TPM_BASE + 66))
#define TPM_INVALID_STRUCTURE ((TPM_RESULT) (TPM_BASE + 67))
#define TPM_KEY_OWNER_CONTROL ((TPM_RESULT) (TPM_BASE + 68))
#define TPM_BAD_COUNTER ((TPM_RESULT) (TPM_BASE + 69))
#define TPM_NOT_FULLWRITE ((TPM_RESULT) (TPM_BASE + 70))
#define TPM_CONTEXT_GAP ((TPM_RESULT) (TPM_BASE + 71))
#define TPM_MAXNVWRITES ((TPM_RESULT) (TPM_BASE + 72))
#define TPM_NOOPERATOR ((TPM_RESULT) (TPM_BASE + 73))
#define TPM_RESOURCEMISSING ((TPM_RESULT) (TPM_BASE + 74))
#define TPM_DELEGATE_LOCK ((TPM_RESULT) (TPM_BASE + 75))
#define TPM_DELEGATE_FAMILY ((TPM_RESULT) (TPM_BASE + 76))
#define TPM_DELEGATE_ADMIN ((TPM_RESULT) (TPM_BASE + 77))
#define TPM_TRANSPORT_NOTEXCLUSIVE ((TPM_RESULT) (TPM_BASE + 78))
#define TPM_OWNER_CONTROL ((TPM_RESULT) (TPM_BASE + 79))
#define TPM_DAA_RESOURCES ((TPM_RESULT) (TPM_BASE + 80))
#define TPM_DAA_INPUT_DATA0 ((TPM_RESULT) (TPM_BASE + 81))
#define TPM_DAA_INPUT_DATA1 ((TPM_RESULT) (TPM_BASE + 82))
#define TPM_DAA_ISSUER_SETTINGS ((TPM_RESULT) (TPM_BASE + 83))
#define TPM_DAA_TPM_SETTINGS ((TPM_RESULT) (TPM_BASE + 84))
#define TPM_DAA_STAGE ((TPM_RESULT) (TPM_BASE + 85))
#define TPM_DAA_ISSUER_VALIDITY ((TPM_RESULT) (TPM_BASE + 86))
#define TPM_DAA_WRONG_W ((TPM_RESULT) (TPM_BASE + 87))
#define TPM_BAD_HANDLE ((TPM_RESULT) (TPM_BASE + 88))
#define TPM_BAD_DELEGATE ((TPM_RESULT) (TPM_BASE + 89))
#define TPM_BADCONTEXT ((TPM_RESULT) (TPM_BASE + 90))
#define TPM_TOOMANYCONTEXTS ((TPM_RESULT) (TPM_BASE + 91))
#define TPM_MA_TICKET_SIGNATURE ((TPM_RESULT) (TPM_BASE + 92))
#define TPM_MA_DESTINATION ((TPM_RESULT) (TPM_BASE + 93))
#define TPM_MA_SOURCE ((TPM_RESULT) (TPM_BASE + 94))
#define TPM_MA_AUTHORITY ((TPM_RESULT) (TPM_BASE + 95))
#define TPM_PERMANENTEK ((TPM_RESULT) (TPM_BASE + 97))
#define TPM_BAD_SIGNATURE ((TPM_RESULT) (TPM_BASE + 98))
#define TPM_NOCONTEXTSPACE ((TPM_RESULT) (TPM_BASE + 99))
#define TPM_RETRY ((TPM_RESULT) (TPM_BASE + TPM_NON_FATAL))
#define TPM_NEEDS_SELFTEST ((TPM_RESULT) (TPM_BASE + TPM_NON_FATAL + 1))
#define TPM_DOING_SELFTEST ((TPM_RESULT) (TPM_BASE + TPM_NON_FATAL + 2))
#define TPM_DEFEND_LOCK_RUNNING ((TPM_RESULT) (TPM_BASE + TPM_NON_FATAL + 3))