1 /* include/linux/android_alarm.h
3 * Copyright (C) 2006-2007 Google, Inc.
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.
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.
16 #ifndef _LINUX_ANDROID_ALARM_H
17 #define _LINUX_ANDROID_ALARM_H
19 #include <linux/compat.h>
20 #include <linux/ioctl.h>
22 #include "uapi/android_alarm.h"
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), \
This page took 0.046485 seconds and 5 git commands to generate.