summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorYojiro Uo <yuo@cvs.openbsd.org>2012-09-20 20:11:59 +0000
committerYojiro Uo <yuo@cvs.openbsd.org>2012-09-20 20:11:59 +0000
commit862a65ad28ed788f381eaec33721df1ee8b6ee61 (patch)
tree6f03c3aec2b8c99104edb01384f26c9896b7f700 /sys
parent0e23b6d7673107501af89200b19d0af5aea84086 (diff)
add more sensor types to sensor framework.
- Pressure (10^-3 Pa) - distance (10^-6 m) - acceleration (10^-6 m/s^2) ok deraadt@ reyk@
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/sensors.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/sys/sensors.h b/sys/sys/sensors.h
index 9e7828faa5e..71a9299ac97 100644
--- a/sys/sys/sensors.h
+++ b/sys/sys/sensors.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sensors.h,v 1.31 2011/09/16 15:44:31 yuo Exp $ */
+/* $OpenBSD: sensors.h,v 1.32 2012/09/20 20:11:58 yuo Exp $ */
/*
* Copyright (c) 2003, 2004 Alexander Yurchenko <grange@openbsd.org>
@@ -49,6 +49,9 @@ enum sensor_type {
SENSOR_HUMIDITY, /* humidity (m%RH) */
SENSOR_FREQ, /* frequency (muHz) */
SENSOR_ANGLE, /* angle (mudegrees) */
+ SENSOR_DISTANCE, /* distance (muMeter) */
+ SENSOR_PRESSURE, /* pressure (mPa) */
+ SENSOR_ACCEL, /* acceleration (mu m/s^2) */
SENSOR_MAX_TYPES
};
@@ -72,6 +75,9 @@ static const char * const sensor_type_s[SENSOR_MAX_TYPES + 1] = {
"humidity",
"frequency",
"angle",
+ "distance",
+ "pressure",
+ "acceleration",
"undefined"
};
#endif /* !_KERNEL */