2 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
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.
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.
11 #ifndef __TBM_BUFMGR_TGL_H__
12 #define __TBM_BUFMGR_TGL_H__
14 #include <linux/ioctl.h>
16 static char tgl_devfile[] = "/dev/slp_global_lock";
17 static char tgl_devfile1[] = "/dev/tgl";
19 #define TGL_IOC_BASE 0x32
21 struct tgl_attribute {
23 unsigned int timeout_ms;
26 struct tgl_user_data {
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 *)
49 #endif /* __TBM_BUFMGR_TGL_H__ */