/*!
 * \file    tlc_tz_common.h
 * \brief   header file defining all the constants and return codes.
 * \author  Shyam Prasad
 * \date    11/15/2013
 *
 * <hr>
 * \section LICENSE
 * Copyright Samsung Electronics, Co. Ltd. B2B TIMA team. 2013 04
 * <hr>
 */

#ifndef TLC_TZ_COMMON_H_
#define TLC_TZ_COMMON_H_

typedef uint32_t TZ_Result;

/*!
 * TZ_COMMON_OK is zero; the rest of the form:   0x0001^^^^ 
 */
#define TZ_COMMON_OK                             0x00000000

#define TZ_COMMON_COMMUNICATION_ERROR            0x00010001
#define TZ_COMMON_CLOSE_COMMUNICATION_ERROR      0x00010002
#define TZ_COMMON_RESPONSE_REQUEST_MISMATCH      0x00010003
#define TZ_COMMON_INIT_FAILED                    0x00010004
#define TZ_COMMON_INTERNAL_ERROR                 0x00010005
#define TZ_COMMON_NULL_POINTER_EXCEPTION         0x00010006
#define TZ_COMMON_UNDEFINED_ERROR                0x00010007

#define TZ_COMMON_INIT_ERROR                     0x0001000A
#define TZ_COMMON_INIT_UNINITIALIZED_SECURE_MEM  0x0001000B
#define TZ_COMMON_INIT_ERROR_TAMPER_FUSE_FAIL    0x0001000C
#define TZ_COMMON_INIT_MSR_MISMATCH              0x0001000D
#define TZ_COMMON_INIT_MSR_MODIFIED              0x0001000E
#define TZ_COMMON_INIT_LICENSE_KAP_CHK_FAIL      0x0001000F
#endif /* TLC_TZ_COMMON_H_ */
