2 * Copyright (C) 2010, Imagis Technology Co. Ltd. All Rights Reserved.
\r
4 * This program is free software; you can redistribute it and/or modify
\r
5 * it under the terms of the GNU General Public License as published by
\r
6 * the Free Software Foundation; either version 2 of the License, or
\r
7 * (at your option) any later version.
\r
9 * This program is distributed in the hope that it will be useful,
\r
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
12 * GNU General Public License for more details.
\r
16 #ifndef __IST30XX_SEC_H__
\r
17 #define __IST30XX_SEC_H__
\r
20 #define SEC_CMD_STR_LEN 32
\r
21 #define SEC_CMD_RESULT_STR_LEN 512
\r
22 #define SEC_CMD_PARAM_NUM 8
\r
24 #include "ist30xxb_tsp.h"
\r
26 struct sec_factory {
\r
27 struct list_head cmd_list_head;
\r
28 unsigned char cmd_state;
\r
29 char cmd[SEC_CMD_STR_LEN];
\r
30 int cmd_param[SEC_CMD_PARAM_NUM];
\r
31 char cmd_result[SEC_CMD_RESULT_STR_LEN];
\r
32 struct mutex cmd_lock;
\r
33 bool cmd_is_running;
\r
36 #endif // __IST30XX_SEC_H__
\r