remove bufmgr parameter at the tbm_surface_internal APIs
[platform/core/uifw/libtbm.git] / src / tbm_bufmgr_tgl.h
1 /*
2  * Copyright (c) 2012 Samsung Electronics Co., Ltd.
3  *
4  * This program is free software and is provided to you under the terms of the GNU General Public License version 2
5  * as published by the Free Software Foundation, and any use by you of this program is subject to the terms of such GNU licence.
6  *
7  * A copy of the licence is included with the program, and can also be obtained from Free Software
8  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
9  */
10
11 #ifndef __TBM_BUFMGR_TGL_H__
12 #define __TBM_BUFMGR_TGL_H__
13
14 #include <linux/ioctl.h>
15
16 static char tgl_devfile[] = "/dev/slp_global_lock";
17 static char tgl_devfile1[] = "/dev/tgl";
18
19 #define TGL_IOC_BASE                            0x32
20
21 struct tgl_attribute {
22         unsigned int key;
23         unsigned int timeout_ms;
24 };
25
26 struct tgl_user_data {
27         unsigned int key;
28         unsigned int data1;
29         unsigned int data2;
30         unsigned int locked;
31 };
32
33 typedef enum {
34         _TGL_INIT_LOCK = 1,
35         _TGL_DESTROY_LOCK,
36         _TGL_LOCK_LOCK,
37         _TGL_UNLOCK_LOCK,
38         _TGL_SET_DATA,
39         _TGL_GET_DATA,
40 } _tgl_ioctls;
41
42 #define TGL_IOC_INIT_LOCK                       _IOW(TGL_IOC_BASE, _TGL_INIT_LOCK, struct tgl_attribute *)
43 #define TGL_IOC_DESTROY_LOCK            _IOW(TGL_IOC_BASE, _TGL_DESTROY_LOCK, unsigned int)
44 #define TGL_IOC_LOCK_LOCK                       _IOW(TGL_IOC_BASE, _TGL_LOCK_LOCK, unsigned int)
45 #define TGL_IOC_UNLOCK_LOCK                     _IOW(TGL_IOC_BASE, _TGL_UNLOCK_LOCK, unsigned int)
46 #define TGL_IOC_SET_DATA                        _IOW(TGL_IOC_BASE, _TGL_SET_DATA, struct tgl_user_data *)
47 #define TGL_IOC_GET_DATA                        _IOW(TGL_IOC_BASE, _TGL_GET_DATA, struct tgl_user_data *)
48
49 #endif /* __TBM_BUFMGR_TGL_H__ */