2 * Copyright (C) 2010 Motorola, Inc.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
22 #include <linux/ioctl.h> /* For IOCTL macros */
24 #define SOC2030_IOCTL_SET_MODE _IOWR('o', 1, struct soc2030_mode)
25 #define SOC2030_IOCTL_GET_STATUS _IOC(_IOC_READ, 'o', 2, 10)
26 #define SOC2030_IOCTL_SET_PRIVATE _IOWR('o', 3, struct soc2030_regs)
27 #define SOC2030_IOCTL_GET_MODES _IO('o', 4)
28 #define SOC2030_IOCTL_GET_NUM_MODES _IOR('o', 5, unsigned int)
29 #define SOC2030_IOCTL_SET_EFFECT _IOWR('o', 6, unsigned int)
30 #define SOC2030_IOCTL_SET_WHITEBALANCE _IOWR('o', 7, unsigned int)
31 #define SOC2030_IOCTL_SET_EXP_COMP _IOWR('o', 8, int)
33 #define SOC2030_POLL_WAITMS 50
34 #define SOC2030_MAX_RETRIES 3
35 #define SOC2030_POLL_RETRIES 5
37 #define SOC2030_MAX_PRIVATE_SIZE 1024
38 #define SOC2030_MAX_NUM_MODES 6
42 #define EXP_TARGET 0x32
88 struct soc2030_regs *regset;
92 struct soc2030_platform_data {
93 int (*power_on)(void);
94 int (*power_off)(void);
97 #endif /* __KERNEL__ */
99 #endif /* __SOC2030_H__ */