The NetBSD Project

CVS log for src/sys/sys/envsys.h

[BACK] Up to [cvs.NetBSD.org] / src / sys / sys

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.39 / (download) - annotate - [select for diffs], Mon Nov 21 21:24:01 2022 UTC (15 months ago) by brad
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, HEAD
Changes since 1.38: +2 -1 lines
Diff to previous 1.38 (colored)



A driver for the Bosch BMP280 / BME280 temperature, humidity and
atmospheric pressure sensor.  This is an inexpensive to moderately
expensive chip available from a large number of places.  The driver
supports all aspects of the two chips, except for the repeating read
mode which would allow for sub-second queries, such as fall detection
or perhaps even as an altimeter.  This driver also only supports the
I2C interface and not the SPI interface.

The BME280, the one with humidity, is not fully tested at this point,
awaiting upon a breakout board and may not show proper humidity.

Revision 1.36.16.1 / (download) - annotate - [select for diffs], Mon Jun 25 07:26:07 2018 UTC (5 years, 7 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.36: +3 -2 lines
Diff to previous 1.36 (colored) next main 1.37 (colored)

Sync with HEAD

Revision 1.38 / (download) - annotate - [select for diffs], Sun May 27 06:40:31 2018 UTC (5 years, 8 months ago) by wiz
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, bouyer-sunxi-drm-base, bouyer-sunxi-drm, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.37: +2 -2 lines
Diff to previous 1.37 (colored)

Fix typo in comment.

Revision 1.37 / (download) - annotate - [select for diffs], Sun May 27 01:39:00 2018 UTC (5 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.36: +3 -2 lines
Diff to previous 1.36 (colored)

Add support for light sensors that report Illuminance in lux.

Revision 1.32.2.3 / (download) - annotate - [select for diffs], Sun Dec 3 11:39:20 2017 UTC (6 years, 2 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.32.2.2: +6 -6 lines
Diff to previous 1.32.2.2 (colored) to branchpoint 1.32 (colored) next main 1.33 (colored)

update from HEAD

Revision 1.34.4.1 / (download) - annotate - [select for diffs], Sat Mar 19 11:30:39 2016 UTC (7 years, 11 months ago) by skrll
Branch: nick-nhusb
Changes since 1.34: +7 -7 lines
Diff to previous 1.34 (colored) next main 1.35 (colored)

Sync with HEAD

Revision 1.36 / (download) - annotate - [select for diffs], Sat Jan 23 01:26:14 2016 UTC (8 years, 1 month ago) by dholland
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-base, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: pgoyette-compat
Changes since 1.35: +7 -7 lines
Diff to previous 1.35 (colored)

Apparently a recent round of vandalism by the C++ standards committee
includes disallowing the standard and historic type name "unsigned". Add
a gratuitous "int" to recent changes.

C++ is really a blight on the world.

Revision 1.35 / (download) - annotate - [select for diffs], Fri Jan 22 23:33:42 2016 UTC (8 years, 1 month ago) by dholland
Branch: MAIN
Changes since 1.34: +7 -7 lines
Diff to previous 1.34 (colored)

u_int -> unsigned

Revision 1.32.2.2 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:44 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-maxphys
Changes since 1.32.2.1: +4 -3 lines
Diff to previous 1.32.2.1 (colored) to branchpoint 1.32 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.33.10.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:56:54 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.33: +4 -3 lines
Diff to previous 1.33 (colored) next main 1.34 (colored)

Rebase.

Revision 1.33.2.1 / (download) - annotate - [select for diffs], Sun May 18 17:46:21 2014 UTC (9 years, 9 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.33: +4 -3 lines
Diff to previous 1.33 (colored) next main 1.34 (colored)

sync with head

Revision 1.34 / (download) - annotate - [select for diffs], Sun May 18 11:46:24 2014 UTC (9 years, 9 months ago) by kardel
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, rmind-smpnet-nbase, rmind-smpnet-base, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Branch point for: nick-nhusb
Changes since 1.33: +4 -3 lines
Diff to previous 1.33 (colored)

add HYT-221/271/939 humidity/temperature I2C sensor
extend envsys(4) framework by %rH (relative humidity)

Revision 1.32.2.1 / (download) - annotate - [select for diffs], Mon Feb 25 00:30:11 2013 UTC (10 years, 11 months ago) by tls
Branch: tls-maxphys
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (colored)

resync with head

Revision 1.31.10.2 / (download) - annotate - [select for diffs], Wed Jan 16 05:33:53 2013 UTC (11 years, 1 month ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.31.10.1: +2 -2 lines
Diff to previous 1.31.10.1 (colored) to branchpoint 1.31 (colored) next main 1.32 (colored)

sync with (a bit old) head

Revision 1.33 / (download) - annotate - [select for diffs], Wed Dec 5 04:21:30 2012 UTC (11 years, 2 months ago) by riastradh
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: tls-earlyentropy, rmind-smpnet
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (colored)

Document that ENVSYS_STEMP is in microkelvins.

Revision 1.31.10.1 / (download) - annotate - [select for diffs], Tue Oct 30 17:22:56 2012 UTC (11 years, 3 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.31: +7 -1 lines
Diff to previous 1.31 (colored)

sync with head

Revision 1.31.16.1 / (download) - annotate - [select for diffs], Wed Oct 17 21:21:43 2012 UTC (11 years, 4 months ago) by riz
Branch: netbsd-6
CVS Tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1
Changes since 1.31: +7 -1 lines
Diff to previous 1.31 (colored) next main 1.32 (colored)

Pull up following revision(s) (requested by pgoyette in ticket #545):
	etc/powerd/scripts/sensor_indicator: revision 1.5
	sys/dev/sysmon/sysmon_envsys_tables.c: revision 1.11
	sys/sys/envsys.h: revision 1.32
	sys/dev/sysmon/sysmon_envsysvar.h: revision 1.43
	sys/dev/sysmon/sysmon_envsys_events.c: revision 1.104
Provide names for the values associated with INDICATOR sensors.
1. Enable use of FMONSTCHANGED events for INDICATOR sensors
2. Update handling of FMONCRITICAL event reporting.   The state
    transition does not require a corresponding change in value.
With these changes, you can now have an INDICATOR sensor that
reports the presence or absence of a device, and (if the device
is present) separately monitor it for proper functioning.
Should address the concerns expressed recently with the commit
of changes to wmi(4) BBU handling.
Handle any reports of state changes for INDICATORs

Revision 1.32 / (download) - annotate - [select for diffs], Mon Aug 27 21:07:33 2012 UTC (11 years, 5 months ago) by pgoyette
Branch: MAIN
CVS Tags: yamt-pagecache-base6
Branch point for: tls-maxphys
Changes since 1.31: +7 -1 lines
Diff to previous 1.31 (colored)

Provide names for the values associated with INDICATOR sensors.

Revision 1.28.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:44:32 2010 UTC (13 years, 9 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.28: +3 -69 lines
Diff to previous 1.28 (colored) next main 1.29 (colored)

Sync with HEAD.

Revision 1.21.4.4 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:41 2010 UTC (13 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.21.4.3: +3 -64 lines
Diff to previous 1.21.4.3 (colored) to branchpoint 1.21 (colored) next main 1.22 (colored)

sync with head

Revision 1.31 / (download) - annotate - [select for diffs], Sun Feb 28 20:04:04 2010 UTC (13 years, 11 months ago) by pgoyette
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base7, uebayasi-xip-base6, uebayasi-xip-base5, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-uvmplock, netbsd-6-base, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache, netbsd-6
Changes since 1.30: +1 -70 lines
Diff to previous 1.30 (colored)

Move definitions of internal data structures and flag bits to avoid
exposing them to user-land.

Revision 1.30 / (download) - annotate - [select for diffs], Mon Feb 15 22:32:04 2010 UTC (14 years ago) by pgoyette
Branch: MAIN
Changes since 1.29: +11 -6 lines
Diff to previous 1.29 (colored)

For symmetry, allow warning and critical upper-limits for capacity
sensors.

Revision 1.29 / (download) - annotate - [select for diffs], Sun Feb 14 23:06:01 2010 UTC (14 years ago) by pgoyette
Branch: MAIN
Changes since 1.28: +1 -3 lines
Diff to previous 1.28 (colored)

Remove the flags member of the limits structure.  Its value was only
meaningful for a few limited function calls;  all persitent storage
of limit-present flags is maintained in the edata->upropset member.

Revision 1.28 / (download) - annotate - [select for diffs], Wed Jan 27 04:36:34 2010 UTC (14 years ago) by pgoyette
Branch: MAIN
CVS Tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Changes since 1.27: +5 -2 lines
Diff to previous 1.27 (colored)

Define sets of limits (including the set of all limits) symbolically.
These will be used in an upcoming change.

No functional change intended.

Revision 1.27 / (download) - annotate - [select for diffs], Tue Jan 26 14:22:00 2010 UTC (14 years ago) by pgoyette
Branch: MAIN
Changes since 1.26: +16 -14 lines
Diff to previous 1.26 (colored)

Move the limits out of the event structure and into the main sensor.

Use the limits_flags only for calls to the {get,set}_limits() callbacks
and merge the results into upropset, rather than trying to maintain both
values (error prone).

Revision 1.23.8.1 / (download) - annotate - [select for diffs], Thu Jul 23 23:32:56 2009 UTC (14 years, 7 months ago) by jym
Branch: jym-xensuspend
Changes since 1.23: +34 -5 lines
Diff to previous 1.23 (colored) next main 1.24 (colored)

Sync with HEAD.

Revision 1.21.4.3 / (download) - annotate - [select for diffs], Sat Jun 20 07:20:37 2009 UTC (14 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.21.4.2: +34 -5 lines
Diff to previous 1.21.4.2 (colored) to branchpoint 1.21 (colored)

sync with head

Revision 1.26 / (download) - annotate - [select for diffs], Sat Jun 13 16:08:25 2009 UTC (14 years, 8 months ago) by pgoyette
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, matt-premerge-20091211, jymxensuspend-base, jym-xensuspend-nbase
Changes since 1.25: +19 -2 lines
Diff to previous 1.25 (colored)

Add capability to send sensor limit values to the driver so they can
be programmed into device registers.  This way we can let the hardware
help us out instead of having to always compare the value against each
limit.  (Driver updates for some sensors to take advantage of this
capability will be forthcoming.)

Revision 1.25 / (download) - annotate - [select for diffs], Mon Jun 8 00:55:35 2009 UTC (14 years, 8 months ago) by pgoyette
Branch: MAIN
Changes since 1.24: +16 -1 lines
Diff to previous 1.24 (colored)

General clean-up and some restructuring of event handling.  This is a
precursor to letting sensor drivers actually exchange limits/thresholds
with user-land.

Revision 1.24 / (download) - annotate - [select for diffs], Mon Jun 1 20:08:44 2009 UTC (14 years, 8 months ago) by pgoyette
Branch: MAIN
Changes since 1.23: +2 -5 lines
Diff to previous 1.23 (colored)

Since we no longer have individual events for each sensor value limit,
we don't need individual flag bits.  Clean up extra bit definitions.
Bump kernel version - welcome to 5.99.13

Revision 1.21.4.2 / (download) - annotate - [select for diffs], Mon May 4 08:14:35 2009 UTC (14 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.21.4.1: +2 -1 lines
Diff to previous 1.21.4.1 (colored) to branchpoint 1.21 (colored)

sync with head.

Revision 1.22.6.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:18:09 2008 UTC (15 years, 4 months ago) by haad
Branch: haad-dm
Changes since 1.22: +2 -1 lines
Diff to previous 1.22 (colored) next main 1.23 (colored)

Sync with HEAD.

Revision 1.20.12.3 / (download) - annotate - [select for diffs], Sun Sep 28 10:41:04 2008 UTC (15 years, 4 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.20.12.2: +1 -0 lines
Diff to previous 1.20.12.2 (colored) to branchpoint 1.20 (colored) next main 1.21 (colored)

Sync with HEAD.

Revision 1.22.2.1 / (download) - annotate - [select for diffs], Thu Sep 18 04:37:04 2008 UTC (15 years, 5 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.22: +2 -1 lines
Diff to previous 1.22 (colored) next main 1.23 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.23 / (download) - annotate - [select for diffs], Fri Aug 22 11:27:50 2008 UTC (15 years, 6 months ago) by pgoyette
Branch: MAIN
CVS Tags: yamt-nfs-mp-base4, yamt-nfs-mp-base3, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, nick-hppapmap, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, mjf-devfs2-base, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, jym-xensuspend-base, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: jym-xensuspend
Changes since 1.22: +2 -1 lines
Diff to previous 1.22 (colored)

1. provide for warning-min and warning-max alarm levels in addition to
   critical-min and critical-max; also, a battery warning-capacity is
   added in addition to a critical-capacity.

2. usr.sbin/envstat is modified to introduce a -W command line switch to
   display the warning-* values instead of the critical-* values, and
   envstat(8) and envsys.conf(5) man pages are updated appropriately.

3. Treat user-defined limits as a single continuum and generate a single
   event regardless of how many boundaries a change in sensor value
   crosses;  ditto for driver-defined limits.

Fixes my PR/39021
Fixes my PR/39022

OK'd by christos@ bouyer@ cube@

Revision 1.20.12.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:32 2008 UTC (15 years, 8 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.20.12.1: +0 -7 lines
Diff to previous 1.20.12.1 (colored) to branchpoint 1.20 (colored)

Sync with HEAD.

Revision 1.21.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:35:49 2008 UTC (15 years, 9 months ago) by yamt
Branch: yamt-pf42
Changes since 1.21: +1 -8 lines
Diff to previous 1.21 (colored) next main 1.22 (colored)

sync with head.

Revision 1.21.4.1 / (download) - annotate - [select for diffs], Fri May 16 02:25:50 2008 UTC (15 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.21: +1 -8 lines
Diff to previous 1.21 (colored)

sync with head.

Revision 1.22 / (download) - annotate - [select for diffs], Mon Apr 28 20:24:10 2008 UTC (15 years, 9 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa, haad-dm
Changes since 1.21: +1 -8 lines
Diff to previous 1.21 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.20.12.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:43:11 2008 UTC (15 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.20: +5 -2 lines
Diff to previous 1.20 (colored)

Sync with HEAD.

Revision 1.20.8.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:16:28 2008 UTC (15 years, 11 months ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.20: +5 -2 lines
Diff to previous 1.20 (colored) next main 1.21 (colored)

sync with head.

Revision 1.14.6.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:05:10 2008 UTC (15 years, 11 months ago) by matt
Branch: matt-armv6
Changes since 1.14.6.2: +5 -2 lines
Diff to previous 1.14.6.2 (colored) to branchpoint 1.14 (colored) next main 1.15 (colored)

sync with HEAD

Revision 1.7.18.6 / (download) - annotate - [select for diffs], Mon Mar 17 09:15:47 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.7.18.5: +5 -2 lines
Diff to previous 1.7.18.5 (colored) to branchpoint 1.7 (colored) next main 1.8 (colored)

sync with head.

Revision 1.21 / (download) - annotate - [select for diffs], Thu Feb 28 16:21:34 2008 UTC (15 years, 11 months ago) by xtraeme
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp
Changes since 1.20: +5 -2 lines
Diff to previous 1.20 (colored)

Add three new values for ENVSYS_DRIVE units:

* ENVSYS_DRIVE_OFFLINE, ENVSYS_DRIVE_CHECK and ENVSYS_DRIVE_BUILD

Revision 1.14.6.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:58:07 2008 UTC (16 years, 1 month ago) by matt
Branch: matt-armv6
Changes since 1.14.6.1: +7 -5 lines
Diff to previous 1.14.6.1 (colored) to branchpoint 1.14 (colored)

sync with HEAD

Revision 1.14.4.6 / (download) - annotate - [select for diffs], Sun Dec 9 19:38:47 2007 UTC (16 years, 2 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.14.4.5: +3 -2 lines
Diff to previous 1.14.4.5 (colored) to branchpoint 1.14 (colored) next main 1.15 (colored)

Sync with HEAD.

Revision 1.10.24.1 / (download) - annotate - [select for diffs], Sun Dec 9 16:04:10 2007 UTC (16 years, 2 months ago) by reinoud
Branch: reinoud-bufcleanup
Changes since 1.10: +48 -2 lines
Diff to previous 1.10 (colored) next main 1.11 (colored)

Pullup to HEAD

Revision 1.18.2.2 / (download) - annotate - [select for diffs], Sat Dec 8 18:21:30 2007 UTC (16 years, 2 months ago) by mjf
Branch: mjf-devfs
Changes since 1.18.2.1: +3 -2 lines
Diff to previous 1.18.2.1 (colored) to branchpoint 1.18 (colored) next main 1.19 (colored)

Sync with HEAD.

Revision 1.19.2.1 / (download) - annotate - [select for diffs], Sat Dec 8 17:58:06 2007 UTC (16 years, 2 months ago) by ad
Branch: vmlocking2
Changes since 1.19: +3 -2 lines
Diff to previous 1.19 (colored) next main 1.20 (colored)

Sync with head.

Revision 1.7.18.5 / (download) - annotate - [select for diffs], Fri Dec 7 17:34:53 2007 UTC (16 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.7.18.4: +7 -5 lines
Diff to previous 1.7.18.4 (colored) to branchpoint 1.7 (colored)

sync with head

Revision 1.20 / (download) - annotate - [select for diffs], Fri Dec 7 11:47:49 2007 UTC (16 years, 2 months ago) by xtraeme
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, reinoud-bufcleanup-nbase, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-base, jmcneill-pm-base, hpcarm-cleanup-base, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.19: +3 -2 lines
Diff to previous 1.19 (colored)

Add ENVSYS_DRIVE_MIGRATING for ENVSYS_DRIVE sensors, this is for RAID
volumes that are migrating such as when you change the stripe size.

While I'm here use the same string than we had in the old framework to
report status "online" vs "drive is online", because the sensor might be
a RAID volume and not just a drive.

Revision 1.14.4.5 / (download) - annotate - [select for diffs], Wed Nov 21 21:56:16 2007 UTC (16 years, 3 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.14.4.4: +5 -4 lines
Diff to previous 1.14.4.4 (colored) to branchpoint 1.14 (colored)

Sync with HEAD.

Revision 1.18.2.1 / (download) - annotate - [select for diffs], Mon Nov 19 00:49:27 2007 UTC (16 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.18: +5 -4 lines
Diff to previous 1.18 (colored)

Sync with HEAD.

Revision 1.17.2.2 / (download) - annotate - [select for diffs], Sun Nov 18 19:35:56 2007 UTC (16 years, 3 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.17.2.1: +4 -3 lines
Diff to previous 1.17.2.1 (colored) to branchpoint 1.17 (colored) next main 1.18 (colored)

Sync with HEAD

Revision 1.19 / (download) - annotate - [select for diffs], Fri Nov 16 08:00:17 2007 UTC (16 years, 3 months ago) by xtraeme
Branch: MAIN
CVS Tags: vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-base, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: vmlocking2
Changes since 1.18: +5 -4 lines
Diff to previous 1.18 (colored)

Extend the envsys2 API (one more time, sorry) as defined in:

http://mail-index.netbsd.org/tech-kern/2007/11/09/0001.html

sysmon_envsys_create() and sysmon_envsys_destroy() were added to
create/destroy sysmon_envsys objects (and its TAILQ/LIST for sensors/events).

sysmon_envsys_sensor_attach() and sysmon_envsys_sensor_detach() were
added to attach/detach sensors to a specified sysmon_envsys device.

The events framework is now per device and configurable via the
ENVSYS_SETDICTIONARY ioctl or /etc/envsys.conf and envstat(8).

Update all users and documentation to reflect these changes.

Revision 1.7.18.4 / (download) - annotate - [select for diffs], Thu Nov 15 11:45:30 2007 UTC (16 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.7.18.3: +13 -12 lines
Diff to previous 1.7.18.3 (colored) to branchpoint 1.7 (colored)

sync with head.

Revision 1.17.2.1 / (download) - annotate - [select for diffs], Tue Nov 13 16:03:21 2007 UTC (16 years, 3 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.17: +13 -12 lines
Diff to previous 1.17 (colored)

Sync with HEAD

Revision 1.14.6.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:34:46 2007 UTC (16 years, 3 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.14: +17 -5 lines
Diff to previous 1.14 (colored)

sync with HEAD

Revision 1.14.4.4 / (download) - annotate - [select for diffs], Sun Nov 4 21:03:50 2007 UTC (16 years, 3 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.14.4.3: +13 -12 lines
Diff to previous 1.14.4.3 (colored) to branchpoint 1.14 (colored)

Sync with HEAD.

Revision 1.18 / (download) - annotate - [select for diffs], Sat Nov 3 23:05:21 2007 UTC (16 years, 3 months ago) by xtraeme
Branch: MAIN
CVS Tags: jmcneill-base
Branch point for: mjf-devfs
Changes since 1.17: +13 -12 lines
Diff to previous 1.17 (colored)

- Rename ENVSYS_BATTERY_STATE units to ENVSYS_BATTERY_CAPACITY and
  introduce ENVSYS_BATTERY_CHARGE, which is the same than an Indicator and
  it's used to know if the battery is currently charging or discharging.

- Require two sensors at least for SME_CLASS_BATTERY to make the low-power
  condition work: a ENVSYS_BATTERY_CAPACITY plus ENVSYS_BATTERY_CHARGE.

- Simplify sme_event_check_lowpower() and make it check the required
  sensors in the SME_CLASS_ACADAPTER and SME_CLASS_BATTERY classes.
  If the acadapter is not ready, trust the state returned by the battery
  device.

Based on suggestion from joerg@.

Revision 1.7.18.3 / (download) - annotate - [select for diffs], Sat Oct 27 11:36:28 2007 UTC (16 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.7.18.2: +13 -4 lines
Diff to previous 1.7.18.2 (colored) to branchpoint 1.7 (colored)

sync with head.

Revision 1.7.16.1 / (download) - annotate - [select for diffs], Mon Oct 15 05:09:54 2007 UTC (16 years, 4 months ago) by riz
Branch: netbsd-3
Changes since 1.7: +20 -2 lines
Diff to previous 1.7 (colored) next main 1.8 (colored)

Pull up following revisions via patch (requested by bouyer in ticket #1838):
	distrib/sets/lists/man/mi: revision 1.997
	sbin/bioctl/strtonum.c: revision 1.1
	sys/dev/Makefile: revision 1.25
	sys/arch/amd64/conf/GENERIC: revision 1.139
	sbin/bioctl/strtonum.h: revision 1.1
	sys/dev/bio.c: revision 1.1
	sbin/bioctl/bioctl.c: revision 1.1
	share/man/man4/bio.4: revision 1.1
	sbin/bioctl/bioctl.8: revision 1.1
	sys/sys/envsys.h: revision 1.11
	sbin/bioctl/bioctl.8: revision 1.3
	sbin/bioctl/bioctl.8: revision 1.4
	sys/arch/i386/conf/XEN2_DOM0: revision 1.25
	distrib/sets/lists/base/mi: revision 1.704
	sys/conf/majors: revision 1.34
	share/man/man4/Makefile: revision 1.426
	etc/MAKEDEV.tmpl: revision 1.86
	sys/arch/i386/conf/GENERIC: revision 1.825
	distrib/sets/lists/comp/mi: revision 1.1022
	sys/conf/files: revision 1.839
	usr.sbin/envstat/envstat.c: revision 1.24
	sbin/Makefile: revision 1.105
	sys/dev/ic/mfi.c: revision 1.4
	sys/dev/biovar.h: revision 1.1
	sys/dev/ic/mfivar.h: revision 1.4
	sbin/bioctl/Makefile: revision 1.1
Fix typo.
Add bio(4) and associated bioctl(8) from OpenBSD, a driver control block
device controllers, and more specifically raid controllers.
Add a new sensor type, ENVSYS_DRIVE, to report drive status. From OpenBSD.
Add bio and sysmon support to mfi(4). This allow userland to query
status for drives and logical volumes attached to a mfi(4) controller. While
there fix some debug printfs in mfi so they compile.
Add bio(4) to amd64 and i386 GENERIC.
Add bio(4) and associated bioctl(8) from OpenBSD, a driver control block
device controllers, and more specifically raid controllers.
Add a new sensor type, ENVSYS_DRIVE, to report drive status. From OpenBSD.
Add bio and sysmon support to mfi(4). This allow userland to query
status for drives and logical volumes attached to a mfi(4) controller. While
there fix some debug printfs in mfi so they compile.
Add bio(4) to amd64 and i386 GENERIC.
Fix Dd argument (use full month names).
Use more markup.
Comment out references to safte(4) and softraid(4), which don't exist in
NetBSD.
Remove trailing whitespace.
Use macros instead of characters for HTML output (replace ">", "<"
with \*[Gt], \*[Lt]).
Sort sections.
Create /dev/bio

Revision 1.16.2.1 / (download) - annotate - [select for diffs], Sun Oct 14 11:49:06 2007 UTC (16 years, 4 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.16: +3 -1 lines
Diff to previous 1.16 (colored) next main 1.17 (colored)

sync with head.

Revision 1.10.20.4 / (download) - annotate - [select for diffs], Tue Oct 9 13:45:07 2007 UTC (16 years, 4 months ago) by ad
Branch: vmlocking
Changes since 1.10.20.3: +13 -2 lines
Diff to previous 1.10.20.3 (colored) to branchpoint 1.10 (colored) next main 1.11 (colored)

Sync with head.

Revision 1.14.4.3 / (download) - annotate - [select for diffs], Sun Oct 7 13:25:10 2007 UTC (16 years, 4 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.14.4.2: +3 -1 lines
Diff to previous 1.14.4.2 (colored) to branchpoint 1.14 (colored)

Sync with HEAD.

Revision 1.17 / (download) - annotate - [select for diffs], Sun Oct 7 04:11:15 2007 UTC (16 years, 4 months ago) by xtraeme
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, vmlocking-base
Branch point for: bouyer-xenamd64
Changes since 1.16: +3 -1 lines
Diff to previous 1.16 (colored)

New changes to support the new configuration file format for
envstat(8) and the envsys framework:

- Modify the ENVSYS_SETDICTIONARY ioctl to support the following
  plist structure:

  <dict>
	<key>foo0</key>
	<array>
		<dict>
			<key>index</key>
			<string>sensor0</string>
			<key>description</key>
			<string>cpu temp</string>
			...
			Another property for this sensor
			...
		</dict>
		...
		Another dictionary for other sensor
		...
	</array>
	...
	Another device as above
	...
  </dict>

  Multiple devices with multiple sensors can now be specified, that means
  that to set the properties only one copyin(9) is needed now.

- Added the ENVSYS_REMOVEPROPS ioctl, that accepts a boolean object
  "envsys-remove-props" and when set to true, all properties that were
  set previously by ENVSYS_SETDICTIONARY will be removed. That means that
  you can now set multiple critical limits, descriptions and all they
  will be removed or changed to its default value (for rfact and
  description objects).

- Added the 'index' and 'allow-rfact' objects into the sensor dictionaries,
  for better interactivity with userland. To know the position of the
  sensor and to know if sensor allows to change the rfact.

- Misc cosmetic changes for consistency.

- Use a two clause license for all my code.

Revision 1.14.4.2 / (download) - annotate - [select for diffs], Tue Oct 2 18:29:27 2007 UTC (16 years, 4 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.14.4.1: +11 -4 lines
Diff to previous 1.14.4.1 (colored) to branchpoint 1.14 (colored)

Sync with HEAD.

Revision 1.13.2.3 / (download) - annotate - [select for diffs], Mon Sep 10 10:56:17 2007 UTC (16 years, 5 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.13.2.2: +11 -4 lines
Diff to previous 1.13.2.2 (colored) to branchpoint 1.13 (colored) next main 1.14 (colored)

Sync with HEAD.

Revision 1.16 / (download) - annotate - [select for diffs], Tue Sep 4 16:54:02 2007 UTC (16 years, 5 months ago) by xtraeme
Branch: MAIN
CVS Tags: yamt-x86pmap-base2, yamt-x86pmap-base, nick-csl-alignment-base5
Branch point for: yamt-x86pmap
Changes since 1.15: +11 -4 lines
Diff to previous 1.15 (colored)

- Remove ENVSYS_GSTRING and the genstr member from envsys_data_t.
  (at least three or four persons were against it).
- Add a new sensor type: ENVSYS_BATTERY_STATE, this uses value_cur
  and some predefined values in a static table, like ENVSYS_DRIVE.
- Move all static tables to sysmon_envsys_tables.c and use a function
  on it to retrieve a pointer to the struct of the specified type.
- Rename the ENVSYS_FMONDRVSTCHANGED to ENVSYS_FMONSTCHANGED and make
  it generic for Battery state and drive sensors (this flag enables
  monitoring on these sensors when state has been changed).
- Update sysmon_penvsys_event() to report state changes on
  ENVSYS_BATTERY_STATE sensors and remove other type of events, with
  PENVSYS_EVENT_STATE_CHANGED they are not necessary anymore.

Revision 1.14.4.1 / (download) - annotate - [select for diffs], Mon Sep 3 16:49:12 2007 UTC (16 years, 5 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.14: +3 -1 lines
Diff to previous 1.14 (colored)

Sync with HEAD.

Revision 1.7.18.2 / (download) - annotate - [select for diffs], Mon Sep 3 14:46:10 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.7.18.1: +113 -35 lines
Diff to previous 1.7.18.1 (colored) to branchpoint 1.7 (colored)

sync with head.

Revision 1.13.2.2 / (download) - annotate - [select for diffs], Mon Sep 3 10:23:59 2007 UTC (16 years, 5 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.13.2.1: +3 -1 lines
Diff to previous 1.13.2.1 (colored) to branchpoint 1.13 (colored)

Sync with HEAD.

Revision 1.15 / (download) - annotate - [select for diffs], Sun Sep 2 19:36:59 2007 UTC (16 years, 5 months ago) by xtraeme
Branch: MAIN
Changes since 1.14: +3 -1 lines
Diff to previous 1.14 (colored)

Add a new sensor type to sysmon_envsys(9): ENVSYS_GSTRING.

ENVSYS_GSTRING (aka Generic String) uses the genstr member in
the envsys_data_t struct to add a generic string that envstat(8)
will show as value or state.

It's like the ENVSYS_DRIVER, but doesn't use value_cur. Below
is the dictionary created on these sensors:

<dict>
	<key>description</key>
	<string>acpibat0 charge state</string>
	<key>generic-state-string</key>
	<string>NORMAL</string>
	<key>monitoring-supported</key>
	<false/>
	<key>state</key>
	<string>valid</string>
	<key>type</key>
	<string>Generic string</string>
</dict>

Note that it's limited to 32 chars, but we can grow it if needed.

envstat(8) will print ENVSYS_GSTRING sensors as:

$ envstat -dacpibat0 -s"acpibat0 charge state"
  acpibat0 charge state:     NORMAL
$

Revision 1.10.20.3 / (download) - annotate - [select for diffs], Mon Aug 20 21:28:16 2007 UTC (16 years, 6 months ago) by ad
Branch: vmlocking
Changes since 1.10.20.2: +2 -1 lines
Diff to previous 1.10.20.2 (colored) to branchpoint 1.10 (colored)

Sync with HEAD.

Revision 1.13.2.1 / (download) - annotate - [select for diffs], Wed Aug 15 13:50:54 2007 UTC (16 years, 6 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

Sync with HEAD.

Revision 1.14.8.2 / (download) - annotate - [select for diffs], Sun Jul 22 18:17:03 2007 UTC (16 years, 7 months ago) by xtraeme
Branch: matt-mips64
Changes since 1.14.8.1: +212 -0 lines
Diff to previous 1.14.8.1 (colored) to branchpoint 1.14 (colored) next main 1.15 (colored)

Fix the last point reported by yamt in PR kern/36673:

- There must be three mandatory objects in a sensor to be valid and be
  enabled on its dictionary: units, state and desc. If any of these
  objects fails for some reason, its dictionary won't created in the
  array and sensor will be marked with ENVSYS_FNOTVALID in edata->flags.

  That means there won't never be a partial dictionary.

- Mark all invalid sensors and sensors with duplicate description with
  ENVSYS_FNOTVALID and remove ENVSYS_FDUPDESC. The former is the generic
  way to say that a sensor does not obey the rules and must be not
  created.

- sysmon_envsys_createplist: if the array does not contain any object,
  release the array and return the error.

And with all that stuff I can go to holidays and be happy.

Revision 1.14.8.1, Sun Jul 22 18:17:02 2007 UTC (16 years, 7 months ago) by xtraeme
Branch: matt-mips64
Changes since 1.14: +0 -212 lines
FILE REMOVED

file envsys.h was added on branch matt-mips64 on 2007-07-22 18:17:03 +0000

Revision 1.14 / (download) - annotate - [select for diffs], Sun Jul 22 18:17:02 2007 UTC (16 years, 7 months ago) by xtraeme
Branch: MAIN
CVS Tags: matt-mips64-base, hpcarm-cleanup
Branch point for: matt-mips64, matt-armv6, jmcneill-pm
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

Fix the last point reported by yamt in PR kern/36673:

- There must be three mandatory objects in a sensor to be valid and be
  enabled on its dictionary: units, state and desc. If any of these
  objects fails for some reason, its dictionary won't created in the
  array and sensor will be marked with ENVSYS_FNOTVALID in edata->flags.

  That means there won't never be a partial dictionary.

- Mark all invalid sensors and sensors with duplicate description with
  ENVSYS_FNOTVALID and remove ENVSYS_FDUPDESC. The former is the generic
  way to say that a sensor does not obey the rules and must be not
  created.

- sysmon_envsys_createplist: if the array does not contain any object,
  release the array and return the error.

And with all that stuff I can go to holidays and be happy.

Revision 1.13 / (download) - annotate - [select for diffs], Tue Jul 17 16:47:58 2007 UTC (16 years, 7 months ago) by xtraeme
Branch: MAIN
CVS Tags: nick-csl-alignment-base
Branch point for: nick-csl-alignment
Changes since 1.12: +2 -1 lines
Diff to previous 1.12 (colored)

Skip sensors with the same description on the same device at attach time,
if the description of it is not unique, mark the sensor with
ENVSYS_FDUPDESC, return EEXIST and continue.

Also, when changing a description, check that the new description is not
assigned by any other sensor, otherwise return EEXIST.

Note that these restrictions are only per device. Fixes PR kern/36660.

Revision 1.10.20.2 / (download) - annotate - [select for diffs], Sun Jul 15 13:28:09 2007 UTC (16 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.10.20.1: +93 -36 lines
Diff to previous 1.10.20.1 (colored) to branchpoint 1.10 (colored)

Sync with head.

Revision 1.10.22.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:12:25 2007 UTC (16 years, 7 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.10: +110 -35 lines
Diff to previous 1.10 (colored) next main 1.11 (colored)

Sync with head.

Revision 1.12 / (download) - annotate - [select for diffs], Sun Jul 1 07:36:40 2007 UTC (16 years, 7 months ago) by xtraeme
Branch: MAIN
CVS Tags: mjf-ufs-trans-base
Changes since 1.11: +93 -36 lines
Diff to previous 1.11 (colored)

Imported envsys 2, a brief description of the new features:
(Part 1: API)

* Support for detachable sensors.
* Cleaned up the API for simplicity and efficiency.
* Ability to send capacity/critical/warning events to powerd(8).
* Adapted all the code to the new locking order.
* Compatibility with the old envsys API: the ENVSYS_GTREINFO
  and ENVSYS_GTREDATA ioctl(2)s are supported.
* Added support for a 'dictionary based communication channel' between
  sysmon_power(9) and powerd(8), that means there is no 32 bytes event
  size restriction anymore.
* Binary compatibility with old envstat(8) and powerd(8) via COMPAT_40.
* All drivers with the n^2 gtredata bug were fixed, PR kern/36226.

Tested by:

blymn: smsc(4).
bouyer: ipmi(4), mfi(4).
kefren: ug(4).
njoly: viaenv(4), adt7463.c.
riz: owtemp(4).
xtraeme: acpiacad(4), acpibat(4), acpitz(4), aiboost(4), it(4), lm(4).

Revision 1.10.20.1 / (download) - annotate - [select for diffs], Fri Jun 8 14:18:09 2007 UTC (16 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.10: +20 -2 lines
Diff to previous 1.10 (colored)

Sync with head.

Revision 1.10.14.1 / (download) - annotate - [select for diffs], Tue May 8 10:45:06 2007 UTC (16 years, 9 months ago) by pavel
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.10: +20 -2 lines
Diff to previous 1.10 (colored) next main 1.11 (colored)

Pull up following revision(s) (requested by bouyer in ticket #603):
	distrib/sets/lists/base/mi: revision 1.704
	distrib/sets/lists/comp/mi: revision 1.1022
	distrib/sets/lists/man/mi: revision 1.997
	doc/CHANGES: revision 1.839
	sbin/Makefile: patch
	sbin/bioctl/Makefile: revision 1.1
	sbin/bioctl/bioctl.8: revision 1.1
	sbin/bioctl/bioctl.c: revision 1.1
	sbin/bioctl/strtonum.c: revision 1.1
	sbin/bioctl/strtonum.h: revision 1.1
	share/man/man4/Makefile: revision 1.426
	share/man/man4/bio.4: revision 1.1
	sys/arch/amd64/conf/GENERIC: revision 1.139
	sys/arch/i386/conf/GENERIC: revision 1.825
	sys/arch/i386/conf/XEN2_DOM0: revision 1.25
	sys/conf/files: revision 1.839
	sys/conf/majors: patch
	sys/dev/Makefile: revision 1.25
	sys/dev/bio.c: patch
	sys/dev/biovar.h: patch
	sys/dev/ic/mfi.c: revision 1.4-1.5
	sys/dev/ic/mfivar.h: revision 1.4
	sys/sys/envsys.h: revision 1.11
	usr.sbin/envstat/envstat.c: revision 1.24
Add bio(4) and associated bioctl(8) from OpenBSD, a driver control block
device controllers, and more specifically raid controllers.
Add a new sensor type, ENVSYS_DRIVE, to report drive status. From OpenBSD.
Add bio and sysmon support to mfi(4). This allow userland to query
status for drives and logical volumes attached to a mfi(4) controller. While
there fix some debug printfs in mfi so they compile.
Add bio(4) to amd64 and i386 GENERIC.

note bio(4), envsys(4) DRIVE, and mfi(4) support for both.

tred->sensor is a u_int.

Revision 1.10.16.1 / (download) - annotate - [select for diffs], Mon May 7 10:56:13 2007 UTC (16 years, 9 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.10: +20 -2 lines
Diff to previous 1.10 (colored) next main 1.11 (colored)

sync with head.

Revision 1.11 / (download) - annotate - [select for diffs], Tue May 1 17:18:56 2007 UTC (16 years, 9 months ago) by bouyer
Branch: MAIN
CVS Tags: yamt-idlelwp-base8
Changes since 1.10: +20 -2 lines
Diff to previous 1.10 (colored)

Add bio(4) and associated bioctl(8) from OpenBSD, a driver control block
device controllers, and more specifically raid controllers.
Add a new sensor type, ENVSYS_DRIVE, to report drive status. From OpenBSD.
Add bio and sysmon support to mfi(4). This allow userland to query
status for drives and logical volumes attached to a mfi(4) controller. While
there fix some debug printfs in mfi so they compile.
Add bio(4) to amd64 and i386 GENERIC.

Revision 1.9.2.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:59:41 2006 UTC (17 years, 5 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.9: +4 -4 lines
Diff to previous 1.9 (colored) next main 1.10 (colored)

sync with head

Revision 1.7.18.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:12:03 2006 UTC (17 years, 8 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.7: +9 -9 lines
Diff to previous 1.7 (colored)

sync with head.

Revision 1.9.4.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:40:18 2006 UTC (17 years, 10 months ago) by simonb
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.9: +4 -4 lines
Diff to previous 1.9 (colored) next main 1.10 (colored)

Sync with head.

Revision 1.9.8.1 / (download) - annotate - [select for diffs], Wed Apr 19 04:36:01 2006 UTC (17 years, 10 months ago) by elad
Branch: elad-kernelauth
Changes since 1.9: +4 -4 lines
Diff to previous 1.9 (colored) next main 1.10 (colored)

sync with head.

Revision 1.9.6.1 / (download) - annotate - [select for diffs], Sat Apr 1 12:07:51 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.9: +4 -4 lines
Diff to previous 1.9 (colored) next main 1.10 (colored)

sync with head.

Revision 1.10 / (download) - annotate - [select for diffs], Wed Mar 15 11:22:23 2006 UTC (17 years, 11 months ago) by lukem
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-splraiseipl, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, thorpej-atomic-base, thorpej-atomic, simonb-timecounters-base, rpaulo-netinet-merge-pcb-base, post-newlock2-merge, peter-altq-base, peter-altq, newlock2-nbase, newlock2-base, newlock2, netbsd-4-base, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, chap-midi-nbase, chap-midi-base, chap-midi, ad-audiomp-base, ad-audiomp, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-idlelwp, vmlocking, reinoud-bufcleanup, netbsd-4, mjf-ufs-trans
Changes since 1.9: +4 -4 lines
Diff to previous 1.9 (colored)

Update arguments to ENVSYS_GTREDATA, ENVSYS_STREINFO, and ENVSYS_GTREINFO
to use the typedef-equivalent and more generic envsys_tre_data_t
and envsys_basic_info_t types.
Per discussion on tech-kern in October-November 2005.

Revision 1.8.2.1 / (download) - annotate - [select for diffs], Sun Jan 15 10:03:04 2006 UTC (18 years, 1 month ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored) next main 1.9 (colored)

sync with head.

Revision 1.9 / (download) - annotate - [select for diffs], Sat Dec 31 18:26:14 2005 UTC (18 years, 1 month ago) by matt
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-pdpolicy-base2, yamt-pdpolicy-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, elad-kernelauth
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

Make envsysunitnames const.

Revision 1.8 / (download) - annotate - [select for diffs], Mon Dec 26 18:41:36 2005 UTC (18 years, 2 months ago) by perry
Branch: MAIN
Branch point for: yamt-uio_vmspace
Changes since 1.7: +5 -5 lines
Diff to previous 1.7 (colored)

u_intN_t -> uintN_t

Revision 1.7 / (download) - annotate - [select for diffs], Thu Feb 20 20:57:56 2003 UTC (21 years ago) by christos
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, yamt-km-base4, yamt-km-base3, yamt-km-base2, yamt-km-base, yamt-km, thorpej-vnode-attr-base, thorpej-vnode-attr, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2, ktrace-lwp-base, ktrace-lwp, kent-audio2-base, kent-audio2, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-lazymbuf, netbsd-3
Changes since 1.6: +9 -2 lines
Diff to previous 1.6 (colored)

- comma at the end of an enum list is illegal in ansi c
- provide a list of unit names, so that programs don't have to provide their own

Revision 1.5.4.1 / (download) - annotate - [select for diffs], Fri Jan 3 17:10:41 2003 UTC (21 years, 1 month ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.5: +6 -1 lines
Diff to previous 1.5 (colored) next main 1.6 (colored)

Sync with HEAD.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Dec 31 05:27:29 2002 UTC (21 years, 1 month ago) by explorer
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, fvdl_fs64_base
Changes since 1.5: +6 -1 lines
Diff to previous 1.5 (colored)

add ENVSYS_INDICATOR and ENVSYS_INTEGER types

Revision 1.5.2.2 / (download) - annotate - [select for diffs], Mon Nov 20 18:11:30 2000 UTC (23 years, 3 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.5.2.1: +124 -0 lines
Diff to previous 1.5.2.1 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored)

Update thorpej_scsipi to -current as of a month ago

Revision 1.4.4.1 / (download) - annotate - [select for diffs], Sun Jul 30 17:55:18 2000 UTC (23 years, 6 months ago) by bouyer
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2
Changes since 1.4: +11 -3 lines
Diff to previous 1.4 (colored) next main 1.5 (colored)

Pull up 1.4->1.5 (requested by thorpej):

Pull in <sys/ioccom.h>, and define ENVSYS_NSENSORS (number of sensor
types).

Revision 1.5.2.1, Sat Jun 24 19:50:28 2000 UTC (23 years, 8 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.5: +0 -124 lines
FILE REMOVED

file envsys.h was added on branch thorpej_scsipi on 2000-11-20 18:11:30 +0000

Revision 1.5 / (download) - annotate - [select for diffs], Sat Jun 24 19:50:28 2000 UTC (23 years, 8 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base, thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf, newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, kqueue-beforemerge, kqueue-base, kqueue-aftermerge, kqueue, ifpoll-base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, gehenna-devsw-base, gehenna-devsw, eeh-devprop-base, eeh-devprop
Branch point for: thorpej_scsipi, nathanw_sa
Changes since 1.4: +11 -3 lines
Diff to previous 1.4 (colored)

Pull in <sys/ioccom.h>, and define ENVSYS_NSENSORS (number of sensor
types).

Revision 1.4 / (download) - annotate - [select for diffs], Thu Mar 9 04:13:58 2000 UTC (23 years, 11 months ago) by groo
Branch: MAIN
CVS Tags: netbsd-1-5-base, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.3: +27 -26 lines
Diff to previous 1.3 (colored)

Add rfact multiplication factor for DC voltage sources
Clean up formatting (fit in 80 columns)

Revision 1.3 / (download) - annotate - [select for diffs], Sun Feb 27 04:10:30 2000 UTC (24 years ago) by groo
Branch: MAIN
Changes since 1.2: +3 -1 lines
Diff to previous 1.2 (colored)

Add envsys_basic_info_t and envsys_tre_data_t.  The more specific
typedefs should probably be deprecated.

Revision 1.2.2.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:36:34 1999 UTC (24 years, 2 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.2: +1 -1 lines
Diff to previous 1.2 (colored) next main 1.3 (colored)

Pull up to last week's -current.

Revision 1.2 / (download) - annotate - [select for diffs], Wed Dec 15 20:34:35 1999 UTC (24 years, 2 months ago) by simonb
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, chs-ubc2-newbase
Branch point for: wrstuden-devbsize
Changes since 1.1: +21 -21 lines
Diff to previous 1.1 (colored)

Use 8-char tabstops and make this fit into 80 columns.

Revision 1.1 / (download) - annotate - [select for diffs], Wed Dec 15 08:16:15 1999 UTC (24 years, 2 months ago) by garbled
Branch: MAIN

Add header for ENVSYS API as proposed on tech-kern.  Used currently by the
tadpole sparcbook.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>