Commit Graph

222 Commits

Author SHA1 Message Date
hannken
4005d75059 ibmhawk_set: No need to set states ENVSYS_SWARNxxx, sysmon will do it. 2011-02-14 14:15:25 +00:00
hannken
48c7d44313 Initial implementation of ibmhawk(4) driver for sensors behind the IBM Hawk
on-board Integrated Systems Management Processor found on some eServers.

Tested on an IBM eServer x335.
2011-02-14 08:50:38 +00:00
jakllsch
b3a8e9810d Per suggestion from tsutsui, convert to todr_[gs]ettime_ymdhms flavor. 2011-01-21 22:42:16 +00:00
jakllsch
2ecc058a1c Add pcf8563rtc(4), yet another I2C real time clock. 2011-01-21 19:11:47 +00:00
phx
77d12ff8eb Fixed DPRINTF macro to make it compile when DEBUG is not defined. 2011-01-12 18:06:26 +00:00
phx
846d34516e Include i2cvar.h for i2c_controller, which is usually not needed by devices
using this MI driver, so they shouldn't have to bother with that.
2011-01-12 18:05:18 +00:00
nisimura
aa74cd0406 withdraw my name from the copyright notice as there is little code
substance made by me.
2011-01-04 02:50:08 +00:00
matt
d4c26fdc30 Add a generic Motorola/Freescale i2c driver. This was taken from sandpoint
and heavily modified.  It works on most Freescale PowerPC and ARM SoCs.
2011-01-04 01:24:56 +00:00
jmcneill
0d017a0558 don't make module declaration conditional on _MODULE 2010-12-28 00:11:50 +00:00
jmcneill
9a5027bf20 add au8522, xc5k, auvitek config glue 2010-12-27 20:42:51 +00:00
jmcneill
33ca440f18 add driver for the Auvitek AU0828 USB video controllers's analog video
capture functions:

 auvitek0 at uhub6 port 2: AU0828
 video0 at auvitek0: WinTV HVR-950Q
 uaudio0 at auvitek0 port 2 configuration 1 interface 1
 uaudio0: vendor 0x2040 product 0x7200, rev 2.00/0.05, addr 2
 uaudio0: audio rev 1.00
 audio1 at uaudio0: full duplex, playback, capture, independent
2010-12-27 15:42:11 +00:00
uebayasi
8184d5dc03 Don't pull in the whole uvm(9) API to access only PAGE_SIZE and
some other constants.  These are provided by sys/param.h now.
2010-11-13 13:51:57 +00:00
kiyohara
f96f01c382 Add options STRTC_NO_USERRAM and STRTC_NO_WATCHDOG for m41t80. 2010-10-10 05:17:44 +00:00
kiyohara
bdef090b06 Add G760a fan speed controller driver. 2010-10-02 06:07:37 +00:00
pgoyette
a5e851409f Use SYSCTL_DESCR() 2010-08-17 23:36:51 +00:00
pgoyette
100b434aef When interpreting the alarm bits from the chip, don't report state for
any thresholds which have not been set.  Fixes problem reported by
njoly@ in private E-mail, where chip was initialized with only a Critical
threshold, but was reporting a warning.
2010-07-29 13:07:14 +00:00
njoly
5cafa81808 Cleanup hardware monitor limits retrieval. Do use the softc variables
to be filled by sdtemp_get_limits() directly.

ok pgoyette.
2010-07-29 12:01:21 +00:00
pgoyette
e2679ccb18 Fix a typo (missing digit) in chip name table. 2010-07-28 18:43:10 +00:00
pgoyette
bf9efd1436 Fix typo. 2010-07-12 03:39:05 +00:00
pgoyette
8ce827973b Add another pair of chips to the pile: IDT TS3000B3 & TSE2002B3 2010-07-11 15:16:41 +00:00
pgoyette
bdf3e0ffb7 Add additional chip IDs, and be more specific about which revs we match.
From Guenter Roeck on a Linux mailing list.
2010-07-08 23:27:17 +00:00
tsutsui
53fae86685 Fix typo in comments. 2010-04-25 00:35:58 +00:00
pgoyette
0321f1cd9a Save initial, boot-time limit values, and restore them upon request
from sysmon_envsys(9).
2010-04-10 19:02:39 +00:00
macallan
2e75e5a699 don't divide by zero. ever. 2010-04-01 05:26:48 +00:00
macallan
a6ad2de3be add some more ADM1031 support:
- additional temperature and fan speed sensors work now
- limits on should work on all temperature sensors
Controlling fan behaviour doesn't work yet, the ADM1031 uses the same
register for both fans which doesn't quite fit with the way the dbcool
driver works.
2010-04-01 04:29:35 +00:00
macallan
ab2f46a1d0 Add preliminary support for the ADM1031 found in the Sun Blade 2500 and similar
machines. For now we treat it like an ADM1030 - the only difference is the
device ID and a few previously reserved registers.
2010-03-31 18:07:13 +00:00
pgoyette
d41a3cef46 Split spdmem driver into a bus attachment and a common back-end
probe and ROM decode, to follow similar changes made in OpenBSD:

        http://article.gmane.org/gmane.os.openbsd.cvs/94948
        http://article.gmane.org/gmane.os.openbsd.cvs/94956

There exists at least one alternative attachment (for SGI IP35
systems; see http://article.gmane.org/gmane.os.openbsd.cvs/94947),
and there could be more in the future.

Thanks to Christoph Egger for pointing out the OpenBSD activity.
2010-03-24 00:31:41 +00:00
njoly
712d8d88f4 Add some missing aprint_naive calls. 2010-03-23 12:13:28 +00:00
pgoyette
9f799e4338 Use correct format directive in aprint_debug_dev()
Thanks to Kurt Schreiner for reporting this on current-users@
2010-03-20 19:04:51 +00:00
pgoyette
9a70d7bce8 Fix the dbcool_{get,set}_limits() routines to properly deal with min/max
values on temp limits.  The actual ranges for temp limits varies if the
chip is running in "extended temperature" mode, so we need to handle this
difference, too.

Verified on my home machine which runs in extended-temp mode and by
njoly@ on a machine which does runs in the older 2s-complement mode.
2010-03-20 02:42:19 +00:00
pgoyette
89bf6ebb9f Remove setting of edata->monitor since that member no longer exists. 2010-03-14 18:05:07 +00:00
mrg
ebc9e23316 various aprint_* fixes. 2010-03-11 03:54:56 +00:00
njoly
3fab0f4f60 Do initialise i2c_attach_args new members, for indirect configuration
too.
2010-03-01 17:35:21 +00:00
pgoyette
7e73c12204 Now that sysmon_envsys(8) has learned how to retrieve and update sensor
limit values from the device driver, remove the high_limit and low_limit
entries from the hw.dbcool<#>.<sensor> sysctl(8) tree.  These limits are
now directly accessible via envstat(8).  Simplify the remaining code
somewhat.

No objections raised on either tech-kern@ or current-users@

XXX The fan controllers's parameters (including those that are tied to
XXX temperature sensors) are still in sysctl, since there isn't any clean
XXX way to implement the fan controllers in sysmon_envsys yet.  It is on
XXX my To-Do list...
2010-03-01 03:14:49 +00:00
snj
77db2769ee Spelling police. 2010-02-28 15:33:21 +00:00
martin
a56e529332 Add direct config support for a few devices 2010-02-28 11:36:27 +00:00
martin
9d9a688916 Generic (device property based) framework for optional direct configuration
of i2c devices, as discussed on tech-kern.
2010-02-28 11:34:42 +00:00
pgoyette
933c70b5e1 Disable DBCOOL_DEBUG by default, and make it compile that way. 2010-02-26 18:16:18 +00:00
pgoyette
c138fa58da Fix handling of 6bit VID register (6th bit takes place of 12VIn sensor).
Move VID out of sysctl tree - make it a separate sensor of type INTEGER.

Clean-up some of the chip-descriptors.
2010-02-24 23:37:45 +00:00
dyoung
c1b390d493 A pointer typedef entails trading too much flexibility to declare const
and non-const types, and the kernel uses both const and non-const
PMF qualifiers and device suspensors, so change the pmf_qual_t and
device_suspensor_t typedefs from "pointers to const" to non-pointer,
non-const types.
2010-02-24 22:37:54 +00:00
pgoyette
3bb3920ad0 Correct calculation and display of SDR DRAM speed. From OpenBSD.
Fixes PR kern/42736
2010-02-23 00:13:06 +00:00
pgoyette
b5f89aa493 Import smcsmon(4) driver for SMSC LPC47M192 hardware monitor
From Takahiro HAYASHI in PR kern/40420
2010-02-22 03:50:56 +00:00
pgoyette
f7613feb09 Adapt to changes in sysmon's limit structure 2010-02-14 23:07:22 +00:00
dyoung
cd6e1fbf91 Expand PMF_FN_* macros. 2010-01-08 19:53:10 +00:00
pgoyette
7317e028e7 Explicitly inform envsys that the driver is capable of doing its own
limit checking at initialization time.  Later on, if user specifics any
unsupported limits, the driver will relinquish this task.
2010-01-01 15:43:49 +00:00
tsutsui
471e528b58 Remove `volatile' qualifier from argument types of
struct timeval passed to todr_gettime(9) and todr_settime(9).
We no longer have an ancient and volatile struct timeval `time'
global since we have switched to MI timercounter(9) on all port.

XXX1: some of these RTC drivers still assume 32bit time_t
XXX2: some of these should be rewritten to use todr_[gs]ettime_ymdhms()
XXX3: todr(9) man page doesn't mention todr_[gs]ettime_ymdhms()
2009-12-12 14:44:08 +00:00
christos
2365d83de9 don't pull a 1.5K softc on the stack to do a chip ident. Idea from mrg. 2009-11-02 21:37:44 +00:00
pgoyette
e0b6ea852c Correct usage of PROP_DRIVER_LIMITS flag 2009-07-10 15:30:45 +00:00
pgoyette
c1af07659e Update {get,set}_limits() routines. 2009-06-14 19:44:46 +00:00
pgoyette
3441b533fb No need to set flag=I2C_F_POLL when releasing the bus. Pointed out
in private Email from njoly@
2009-06-13 20:27:19 +00:00