diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
commit | fcc9d2e5a6c89d22b8b773a64fb4ad21ac318446 (patch) | |
tree | a57612d1888735a2ec7972891b68c1ac5ec8faea /include/linux/tegra_sema.h | |
parent | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (diff) |
Diffstat (limited to 'include/linux/tegra_sema.h')
-rw-r--r-- | include/linux/tegra_sema.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/include/linux/tegra_sema.h b/include/linux/tegra_sema.h new file mode 100644 index 00000000000..7b423b6cb5c --- /dev/null +++ b/include/linux/tegra_sema.h | |||
@@ -0,0 +1,34 @@ | |||
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 | ||