summaryrefstree
path: root/kernel/drivers/misc/tzdev/tztui.h
blob: 7c5ed49d76949e1f95b100cb44d69f2d882858a6 (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
37
38
39
40
/*
 * Copyright (C) 2015 Samsung Electronics, Inc.
 *
 * This software is licensed under the terms of the GNU General Public
 * License version 2, as published by the Free Software Foundation, and
 * may be copied, distributed, and modified under those terms.
 *
 * 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 __TZTUI_H__
#define __TZTUI_H__

#include "tzdev.h"

/*#define TZTUI_DEBUG*/

#ifdef TZTUI_DEBUG
#define DBG(...)    pr_info( "[tztui] DBG : " __VA_ARGS__)
#define ERR(...)    pr_alert("[tztui] ERR : " __VA_ARGS__)
#else
#define DBG(...)
#define ERR(...)    pr_alert("[tztui] ERR : " __VA_ARGS__)
#endif


/* SMC Commands list */
#define TZTUI_SMC_TUI_EVENT         0x0000000a

/* TUI Events list */
#define TUI_EVENT_TOUCH_IRQ         0x00000001
#define TUI_EVENT_CANCEL            0x00000002
#define TUI_EVENT_TIMEOUT           0x00000004

#define tztui_smc_tui_event(tui_event)        tzdev_smc_cmd(TZTUI_SMC_TUI_EVENT, tui_event, 0x0ul, 0x0ul, 0)

#endif  /* __TZTUI_H__ */