• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2009 Motorola, Inc.
3  *
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.
7  *
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.
12  *
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
16  * 02111-1307, USA
17  */
18 
19 #ifndef _LINUX_SFH7743_H_
20 #define _LINUX_SFH7743_H_
21 
22 #include <linux/ioctl.h>
23 
24 #ifdef __KERNEL__
25 
26 struct sfh7743_platform_data {
27 	int (*init)(void);
28 	void (*exit)(void);
29 	int (*power_on)(void);
30 	int (*power_off)(void);
31 
32 	int gpio;
33 } __attribute__ ((packed));
34 
35 #endif /* __KERNEL__ */
36 
37 #define SFH7743_IO			0xA2
38 
39 #define SFH7743_IOCTL_GET_ENABLE	_IOR(SFH7743_IO, 0x00, char)
40 #define SFH7743_IOCTL_SET_ENABLE	_IOW(SFH7743_IO, 0x01, char)
41 
42 #endif /* _LINUX_SFH7743_H__ */
43