summaryrefstree
path: root/kernel/drivers/misc/tui/stui_ioctl.h
blob: 02e1631afa648ec226e2657042cb617496c647c8 (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
/* tui/stui_ioctl.h
 *
 * Samsung TUI HW Handler driver.
 *
 * Copyright (c) 2015 Samsung Electronics
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */

#ifndef __STUI_IOCTL_H_
#define __STUI_IOCTL_H_

/* Commands and Structures for TUI */
#define STUI_HW_IOCTL_START_TUI         0x10
#define STUI_HW_IOCTL_FINISH_TUI        0x11
#ifdef SAMSUNG_TUI_TEST
#define STUI_HW_IOCTL_GET_PHYS_ADDR     0x12
#endif //SAMSUNG_TUI_TEST
#define STUI_HW_IOCTL_GET_RESOLUTION    0x13

struct tui_hw_buffer {
	uint32_t width;
	uint32_t height;
	uint64_t fb_physical;
	uint64_t fb_size;
	uint64_t wb_physical;
	uint64_t wb_size;
	uint64_t disp_physical;
	uint64_t disp_size;
} __packed;

#define STUI_RET_OK                   0x00030000
#define STUI_RET_ERR_INTERNAL_ERROR   0x00030003

#endif /* __STUI_IOCTL_H_ */