summaryrefslogtreecommitdiff
path: root/drivers/input/touchscreen/ist30xxb/ist30xxb_sec.h
blob: a696a0159f9647c20f6b8d8ca9f148df5e776324 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
 *  Copyright (C) 2010, Imagis Technology Co. Ltd. All Rights Reserved.
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 */

#ifndef __IST30XX_SEC_H__
#define __IST30XX_SEC_H__


#define SEC_CMD_STR_LEN			32
#define SEC_CMD_RESULT_STR_LEN		512
#define SEC_CMD_PARAM_NUM		8

#include "ist30xxb_tsp.h"

struct sec_factory {
    struct list_head	cmd_list_head;
	unsigned char       cmd_state;
	char                cmd[SEC_CMD_STR_LEN];
	int                 cmd_param[SEC_CMD_PARAM_NUM];
	char                cmd_result[SEC_CMD_RESULT_STR_LEN];
	struct              mutex cmd_lock;
	bool                cmd_is_running;
};

#endif  // __IST30XX_SEC_H__