• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2010 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 __BMP085_H__
20 #define __BMP085_H__
21 
22 #include <linux/ioctl.h>  /* For IOCTL macros */
23 
24 #define BMP085_NAME				"bmp085"
25 
26 #define BMP085_IOCTL_BASE 78
27 /** The following define the IOCTL command values via the ioctl macros */
28 #define BMP085_IOCTL_SET_DELAY	_IOW(BMP085_IOCTL_BASE, 0, int)
29 #define BMP085_IOCTL_GET_DELAY	_IOR(BMP085_IOCTL_BASE, 1, int)
30 #define BMP085_IOCTL_SET_ENABLE	_IOW(BMP085_IOCTL_BASE, 2, int)
31 #define BMP085_IOCTL_GET_ENABLE	_IOR(BMP085_IOCTL_BASE, 3, int)
32 #define BMP085_IOCTL_ACCURACY	_IOW(BMP085_IOCTL_BASE, 4, int)
33 
34 #ifdef __KERNEL__
35 struct bmp085_platform_data {
36 	int poll_interval;
37 	int min_interval;
38 
39 	int (*init)(void);
40 	void (*exit)(void);
41 	int (*power_on)(void);
42 	int (*power_off)(void);
43 
44 };
45 #endif /* __KERNEL__ */
46 
47 #endif  /* __BMP085_H__ */
48 
49