staging: binder: Fix ABI for 64bit Android
[deliverable/linux.git] / drivers / staging / android / android_alarm.h
1 /* include/linux/android_alarm.h
2 *
3 * Copyright (C) 2006-2007 Google, Inc.
4 *
5 * This software is licensed under the terms of the GNU General Public
6 * License version 2, as published by the Free Software Foundation, and
7 * may be copied, distributed, and modified under those terms.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 */
15
16 #ifndef _LINUX_ANDROID_ALARM_H
17 #define _LINUX_ANDROID_ALARM_H
18
19 #include <linux/compat.h>
20 #include <linux/ioctl.h>
21
22 #include "uapi/android_alarm.h"
23
24 #ifdef CONFIG_COMPAT
25 #define ANDROID_ALARM_SET_COMPAT(type) ALARM_IOW(2, type, \
26 struct compat_timespec)
27 #define ANDROID_ALARM_SET_AND_WAIT_COMPAT(type) ALARM_IOW(3, type, \
28 struct compat_timespec)
29 #define ANDROID_ALARM_GET_TIME_COMPAT(type) ALARM_IOW(4, type, \
30 struct compat_timespec)
31 #define ANDROID_ALARM_SET_RTC_COMPAT _IOW('a', 5, \
32 struct compat_timespec)
33 #define ANDROID_ALARM_IOCTL_NR(cmd) (_IOC_NR(cmd) & ((1<<4)-1))
34 #define ANDROID_ALARM_COMPAT_TO_NORM(cmd) \
35 ALARM_IOW(ANDROID_ALARM_IOCTL_NR(cmd), \
36 ANDROID_ALARM_IOCTL_TO_TYPE(cmd), \
37 struct timespec)
38
39 #endif
40
41 #endif
This page took 0.048368 seconds and 5 git commands to generate.