Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/sysmon Group things in this file a bit more logically.
details: https://anonhg.NetBSD.org/src/rev/3276e89012be
branches: trunk
changeset: 545540:3276e89012be
user: thorpej <thorpej%NetBSD.org@localhost>
date: Thu Apr 10 18:04:20 2003 +0000
description:
Group things in this file a bit more logically.
diffstat:
sys/dev/sysmon/sysmonvar.h | 28 ++++++++++++++++++----------
1 files changed, 18 insertions(+), 10 deletions(-)
diffs (59 lines):
diff -r ba609b993484 -r 3276e89012be sys/dev/sysmon/sysmonvar.h
--- a/sys/dev/sysmon/sysmonvar.h Thu Apr 10 17:05:25 2003 +0000
+++ b/sys/dev/sysmon/sysmonvar.h Thu Apr 10 18:04:20 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sysmonvar.h,v 1.3 2000/11/05 04:06:14 thorpej Exp $ */
+/* $NetBSD: sysmonvar.h,v 1.4 2003/04/10 18:04:20 thorpej Exp $ */
/*-
* Copyright (c) 2000 Zembu Labs, Inc.
@@ -40,9 +40,15 @@
#include <sys/wdog.h>
#include <sys/queue.h>
+struct proc;
+
#define SYSMON_MINOR_ENVSYS 0
#define SYSMON_MINOR_WDOG 1
+/*****************************************************************************
+ * Environmental sensor support
+ *****************************************************************************/
+
struct sysmon_envsys {
int32_t sme_envsys_version; /* ENVSYS API version */
@@ -63,6 +69,17 @@
#define SME_SENSOR_IDX(sme, idx) ((idx) - (sme)->sme_fsensor)
+int sysmonopen_envsys(dev_t, int, int, struct proc *);
+int sysmonclose_envsys(dev_t, int, int, struct proc *);
+int sysmonioctl_envsys(dev_t, u_long, caddr_t, int, struct proc *);
+
+int sysmon_envsys_register(struct sysmon_envsys *);
+void sysmon_envsys_unregister(struct sysmon_envsys *);
+
+/*****************************************************************************
+ * Watchdog timer support
+ *****************************************************************************/
+
struct sysmon_wdog {
const char *smw_name; /* watchdog device name */
@@ -77,15 +94,6 @@
pid_t smw_tickler; /* last process to tickle */
};
-struct proc;
-
-int sysmonopen_envsys(dev_t, int, int, struct proc *);
-int sysmonclose_envsys(dev_t, int, int, struct proc *);
-int sysmonioctl_envsys(dev_t, u_long, caddr_t, int, struct proc *);
-
-int sysmon_envsys_register(struct sysmon_envsys *);
-void sysmon_envsys_unregister(struct sysmon_envsys *);
-
int sysmonopen_wdog(dev_t, int, int, struct proc *);
int sysmonclose_wdog(dev_t, int, int, struct proc *);
int sysmonioctl_wdog(dev_t, u_long, caddr_t, int, struct proc *);
Home |
Main Index |
Thread Index |
Old Index