1 /* include/linux/isl29028.h
3 * Copyright (C) 2009 Google, Inc.
4 * Author: Iliyan Malchev <malchev@google.com>
6 * This software is licensed under the terms of the GNU General Public
7 * License version 2, as published by the Free Software Foundation, and
8 * may be copied, distributed, and modified under those terms.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
17 #ifndef __LINUX_AL3006_H
18 #define __LINUX_AL3006_H
20 #include <linux/types.h>
21 #include <linux/ioctl.h>
23 #define PSENSOR_IOCTL_MAGIC 'c'
24 #define PSENSOR_IOCTL_GET_ENABLED \
25 _IOR(PSENSOR_IOCTL_MAGIC, 1, int *)
26 #define PSENSOR_IOCTL_ENABLE \
27 _IOW(PSENSOR_IOCTL_MAGIC, 2, int *)
29 #define LIGHTSENSOR_IOCTL_MAGIC 'l'
30 #define LIGHTSENSOR_IOCTL_GET_ENABLED _IOR(LIGHTSENSOR_IOCTL_MAGIC, 1, int *)
31 #define LIGHTSENSOR_IOCTL_ENABLE _IOW(LIGHTSENSOR_IOCTL_MAGIC, 2, int *)