aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sensor/lsm330dlc_gyro.h
blob: 12a702c1695a4ea52bbe1b3fc4c2b3c7eaba69cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 *	Copyright (C) 2011, Samsung Electronics Co. Ltd. All Rights Reserved.
 *
 *	This program is free software; you can redistribute it and/or modify
 *	it under the terms of the GNU General Public License as published by
 *	the Free Software Foundation; either version 2 of the License, or
 *	(at your option) any later version.
 *
 *	This program is distributed in the hope that it will be useful,
 *	but WITHOUT ANY WARRANTY; without even the implied warranty of
 *	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *	GNU General Public License for more details.
 *
 */

#ifndef __L3GD20_H__
#define __L3GD20_H__

#define LSM330DLC_GYRO_DEV_NAME	"lsm330dlc_gyro"
#define L3GD20_GYR_INPUT_NAME "gyro_sensor"
#define GYR_DEV_FILE_NAME "lsm330dlc_gyro_misc"

#define LSM330DLC_GYRO_IOCTL_BASE	80
#define LSM330DLC_GYRO_IOCTL_SET_DELAY\
	_IOW(LSM330DLC_GYRO_IOCTL_BASE, 0, int64_t)
#define LSM330DLC_GYRO_IOCTL_GET_DELAY\
	_IOR(LSM330DLC_GYRO_IOCTL_BASE, 1, int64_t)
#define LSM330DLC_GYRO_IOCTL_READ_DATA_XYZ\
	_IOR(LSM330DLC_GYRO_IOCTL_BASE, 2, int)
#endif /* __L3GD20_H__ */