/*!
 * \file    init_tlc.h
 * \brief   header file for init_TLC function
 * \author  Shyam Prasad
 * \date    11/15/2013
 *
 * <hr>
 * \section LICENSE
 * Copyright Samsung Electronics, Co. Ltd. B2B TIMA team. 2013 04
 * <hr>
 */

#ifndef INIT_TLC_H_
#define INIT_TLC_H_

#define TIMA_MSR_FILE_NAME "/system/tima_measurement_info"

#include "tz_init_msg.h"

/*!
 * Function to initialize a trustlet using the boot meausrements 
 * either from secure memory or from the tima_measurement_info file. 
 *
 * @param[in] cmdId			   : the init commandID
 * @param[in] cmd              : contains cmd structure
 *								 cmd contains the measurement info
 * @param[out] resp            : contains resp structure
 * 								 resp contains the return error code.
 * @param[in] comm             : a handle to communicate with the trustlet.
 * @return uint32_t            : returns TZ_COMMON_OK upon success 
 * 							     or a specific error code upon failure
 */
uint32_t init_TLC(
	uint32_t cmdId,
	tz_init_cmd_t * cmd,
	tz_init_resp_t * resp,
	comm_ctx_t * comm
);

#endif /* INIT_TLC_H_ */
