Module Name: src
Committed By: pgoyette
Date: Wed Jan 27 04:36:34 UTC 2010
Modified Files:
src/sys/sys: envsys.h
Log Message:
Define sets of limits (including the set of all limits) symbolically.
These will be used in an upcoming change.
No functional change intended.
To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/sys/envsys.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/sys/envsys.h
diff -u src/sys/sys/envsys.h:1.27 src/sys/sys/envsys.h:1.28
--- src/sys/sys/envsys.h:1.27 Tue Jan 26 14:22:00 2010
+++ src/sys/sys/envsys.h Wed Jan 27 04:36:34 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: envsys.h,v 1.27 2010/01/26 14:22:00 pgoyette Exp $ */
+/* $NetBSD: envsys.h,v 1.28 2010/01/27 04:36:34 pgoyette Exp $ */
/*-
* Copyright (c) 1999, 2007 The NetBSD Foundation, Inc.
@@ -173,7 +173,10 @@
#define PROP_RFACT 0x0080
#define PROP_DRIVER_LIMITS 0x8000
-#define PROP_LIMITS 0x003f
+#define PROP_CAP_LIMITS (PROP_BATTCAP | PROP_BATTWARN)
+#define PROP_VAL_LIMITS (PROP_CRITMAX | PROP_CRITMIN | \
+ PROP_WARNMAX | PROP_WARNMIN)
+#define PROP_LIMITS (PROP_CAP_LIMITS | PROP_VAL_LIMITS)
/*
* Compatibility with old interface. Only ENVSYS_GTREDATA