• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2010 Google, Inc.
3  *
4  * Author:
5  *   Dima Zavin <dima@android.com>
6  *
7  * This software is licensed under the terms of the GNU General Public
8  * License version 2, as published by the Free Software Foundation, and
9  * may be copied, distributed, and modified under those terms.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  */
17 
18 #ifndef __LINUX_TEGRA_SEMA_H
19 #define __LINUX_TEGRA_SEMA_H
20 
21 /* this shares the magic with the tegra RPC and AVP drivers.
22  *  See include/linux/tegra_avp.h and include/linux/tegra_rpc.h */
23 #define TEGRA_SEMA_IOCTL_MAGIC		'r'
24 
25 /* If IOCTL_WAIT is interrupted by a signal and the timeout was not -1,
26  * then the value pointed to by the argument will be updated with the amount
27  * of time remaining for the wait. */
28 #define TEGRA_SEMA_IOCTL_WAIT		_IOW(TEGRA_SEMA_IOCTL_MAGIC, 0x30, long *)
29 #define TEGRA_SEMA_IOCTL_SIGNAL		_IO(TEGRA_SEMA_IOCTL_MAGIC, 0x31)
30 
31 #define TEGRA_SEMA_IOCTL_MIN_NR		_IOC_NR(TEGRA_SEMA_IOCTL_WAIT)
32 #define TEGRA_SEMA_IOCTL_MAX_NR		_IOC_NR(TEGRA_SEMA_IOCTL_SIGNAL)
33 
34 #endif
35