aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sensor/lsm330dlc_gyro.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/sensor/lsm330dlc_gyro.h')
-rw-r--r--include/linux/sensor/lsm330dlc_gyro.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/include/linux/sensor/lsm330dlc_gyro.h b/include/linux/sensor/lsm330dlc_gyro.h
new file mode 100644
index 0000000..12a702c
--- /dev/null
+++ b/include/linux/sensor/lsm330dlc_gyro.h
@@ -0,0 +1,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__ */