summaryrefslogtreecommitdiff
path: root/sys/dev/softraidvar.h
diff options
context:
space:
mode:
authorMarco Peereboom <marco@cvs.openbsd.org>2007-04-21 23:05:20 +0000
committerMarco Peereboom <marco@cvs.openbsd.org>2007-04-21 23:05:20 +0000
commitf0ad0e23481cd28bfe28ae749f36211812173433 (patch)
tree85bf3c4d06867e56a62d858bbb39aa22f4225f18 /sys/dev/softraidvar.h
parentf45092b9b5beee0075cf194130e00b35028c650e (diff)
Add volumes to sensors.
Diffstat (limited to 'sys/dev/softraidvar.h')
-rw-r--r--sys/dev/softraidvar.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/dev/softraidvar.h b/sys/dev/softraidvar.h
index 7fba3477ae8..4a0dcbef094 100644
--- a/sys/dev/softraidvar.h
+++ b/sys/dev/softraidvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: softraidvar.h,v 1.9 2007/04/19 02:44:29 marco Exp $ */
+/* $OpenBSD: softraidvar.h,v 1.10 2007/04/21 23:05:19 marco Exp $ */
/*
* Copyright (c) 2006 Marco Peereboom <sro@peereboom.us>
*
@@ -187,6 +187,10 @@ struct sr_volume {
/* runtime data */
struct sr_chunk_head sv_chunk_list; /* linked list of all chunks */
struct sr_chunk **sv_chunks; /* array to same chunks */
+
+ /* sensors */
+ struct ksensor sv_sensor;
+ struct ksensordev sv_sensordev;
};
/* RAID 1 */
@@ -257,11 +261,14 @@ struct sr_softc {
int (*sc_ioctl)(struct device *, u_long, caddr_t);
struct rwlock sc_lock;
+
+ int sc_sensors_running;
/*
* during scsibus attach this is the discipline that is in use
* this variable is protected by sc_lock and splhigh
*/
struct sr_discipline *sc_attach_dis;
+
/*
* XXX expensive, alternative would be nice but has to be cheap
* since the scsibus lookup happens on each IO