diff options
author | Khushboo Bindlish <khushboo.bindlish@intel.com> | 2016-02-01 15:47:50 -0800 |
---|---|---|
committer | Khushboo Bindlish <khushboo.bindlish@intel.com> | 2016-04-07 16:11:35 -0700 |
commit | 10e563e740c2cf890d2942c0d6fc6dadc76007df (patch) | |
tree | e0e34c1a447a0c4b4c0e85c191fda87826decefb /drivers/staging/sep54/sep_init.h | |
parent | 13cb9d50b1c92b1418d37536be76c3b00d85ab43 (diff) | |
download | edison-v3.10-10e563e740c2cf890d2942c0d6fc6dadc76007df.tar.gz |
Keystore Applet Chaabi Integration
This project contains the sep54 driver for Chaabi
Change-Id: I056874c8ff52fe13fe1e0da7ba4a805d62be63d0
Tracked-On: https://jira01.devtools.intel.com/browse/BP-21
Signed-off-by: Khushboo Bindlish <khushboo.bindlish@intel.com>
Diffstat (limited to 'drivers/staging/sep54/sep_init.h')
-rw-r--r-- | drivers/staging/sep54/sep_init.h | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/drivers/staging/sep54/sep_init.h b/drivers/staging/sep54/sep_init.h new file mode 100644 index 00000000000..1e16e191409 --- /dev/null +++ b/drivers/staging/sep54/sep_init.h @@ -0,0 +1,72 @@ +/******************************************************************* +* (c) Copyright 2011-2012 Discretix Technologies Ltd. * +* This software is protected by copyright, international * +* treaties and patents, and distributed under multiple licenses. * +* Any use of this Software as part of the Discretix CryptoCell or * +* Packet Engine products requires a commercial license. * +* Copies of this Software that are distributed with the Discretix * +* CryptoCell or Packet Engine product drivers, may be used in * +* accordance with a commercial license, or at the user's option, * +* used and redistributed under the terms and conditions of the GNU * +* General Public License ("GPL") version 2, as published by the * +* Free Software Foundation. * +* This program is distributed in the hope that it will be useful, * +* but WITHOUT ANY LIABILITY AND WARRANTY; without even the implied * +* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * +* See the GNU General Public License version 2 for more details. * +* You should have received a copy of the GNU General Public * +* License version 2 along with this Software; if not, please write * +* to the Free Software Foundation, Inc., 59 Temple Place - Suite * +* 330, Boston, MA 02111-1307, USA. * +* Any copy or reproduction of this Software, as permitted under * +* the GNU General Public License version 2, must include this * +* Copyright Notice as well as any other notices provided under * +* the said license. * +********************************************************************/ + +#ifndef __SEP_INIT_H__ +#define __SEP_INIT_H__ + +#include "dx_driver.h" + +/** + * sepinit_do_cc_init() - Initiate SeP cold boot sequence and wait for + * its completion. + * + * @drvdata: + * + * This function loads the CC firmware and dispatches an CC_INIT request message + * Returns int 0 for success + */ +int sepinit_do_cc_init(struct sep_drvdata *drvdata); + +/** + * sepinit_get_fw_props() - Get the FW properties (version, cache size, etc.) + * after completing cold boot + * @drvdata: Context where to fill retrieved data + * + * This function should be called only after sepinit_do_cc_init completes + * successfully. + */ +void sepinit_get_fw_props(struct sep_drvdata *drvdata); + +/** + * sepinit_do_fw_init() - Initialize SeP FW + * @drvdata: + * + * Provide SeP FW with initialization parameters and wait for DONE_FW_INIT. + * + * Returns int 0 on success + */ +int sepinit_do_fw_init(struct sep_drvdata *drvdata, int init_flag); + +/** + * sepinit_reload_driver_state() - Wait for FW to update Sep state to reloaded + * driver state. + * @drvdata: + * + * Returns int + */ +int sepinit_reload_driver_state(struct sep_drvdata *drvdata); + +#endif /*__SEP_INIT_H__*/ |