Commit Graph

15 Commits

Author SHA1 Message Date
pgoyette 9d05de2fd5 Remove another debug printf() that snuck in. 2015-04-25 23:55:23 +00:00
pgoyette 76a2f91a0e Update module dependencies for all the existing modules that depend on sysmon components. 2015-04-23 23:23:00 +00:00
pgoyette 4525347a98 Add hw.swsensor.state variable for additional control capability. 2012-08-27 20:29:11 +00:00
pgoyette 3dbac3b2ec Use {...} to prevent premature exit from initialization function - this
lets the atf tests run again.

Move validation of current value vs min/max into the refresh routine
where it will get checked every time, not just at initialization.

While here, do a little more housekeeping:
  - Retrieve numeric property value once
  - Ensure that a numeric-specified sensor type is valid
  - printout any unrecognized properties (DEBUG only)
2011-06-19 15:52:48 +00:00
pgoyette 13580ba5b6 Use correct routine to retrieve string value from prop-dictionary 2011-06-19 04:08:48 +00:00
pgoyette eff7c483c3 Rather than requiring the user to know the internal encoding of sensor
types, allow the user to specify the type using the units description.

XXX Numeric specification is still permitted but will be removed soon.
2011-06-19 03:12:31 +00:00
pgoyette 41f31ea216 Remove ability to the value_avg since it no longer exists 2011-06-04 13:26:51 +00:00
pgoyette 40ef889e08 Enable creation of value_{max,min,avg} entries via the proplist, as well
as setting the ENVSYS_FPERCENT flag
2011-06-04 02:02:55 +00:00
pooka 5b13bc43b2 use aprint 2010-12-17 13:37:37 +00:00
pgoyette 5c690f069b Also allow specification of sensor's initial value when it is loaded,
using "-i value=<value>".

Suggested by njoly@
2010-12-16 14:33:30 +00:00
pgoyette cedd9a0b1c Enhance the swsensor(4) pseudo-device's capabilities to emulate more
sensor types
2010-12-11 04:13:03 +00:00
pooka 1b3fe95df5 Revert 1.2 apart from incorrect comment. the devattach() routine
is of course still used by kernel&config pseudodev.

pointed out by jakllsch
2010-10-23 11:24:16 +00:00
pooka 41dc37e6d7 Set sensor state to valid upon refresh to make things generally work.
pgoyette ok
2010-10-20 19:21:04 +00:00
pooka f4fd6656e3 remove unused routine (per comment) 2010-10-20 18:50:46 +00:00
pgoyette 3ae668c1c8 Add a new software-only sensor device. This is intended for use as a
kernel module, and can be helpful to generate sysmon_envsys events
when creating/modifying powerd scripts.  This will also be used in an
upcoming series of atf tests for sysmon_envsys itself.
2010-10-19 11:55:38 +00:00