Home | History | Annotate | Line # | Download | only in man4
 $NetBSD: lm.4,v 1.38 2022/12/16 00:02:28 msaitoh Exp $

Copyright (c) 2000 The NetBSD Foundation, Inc.
All rights reserved.

This code is derived from software contributed to The NetBSD Foundation
by Bill Squier.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.

.Dd December 15, 2022 .Dt LM 4 .Os .Sh NAME .Nm lm .Nd National Semiconductor LM78, LM79 and compatible hardware monitors .Sh SYNOPSIS .Cd "lm0 at isa? port 0x280 flags 0x00" .Cd "lm1 at isa? port 0x290 flags 0x00" .Cd "lm2 at isa? port 0x310 flags 0x00" .Cd "lm3 at isa? port 0xa00 flags 0x00" .Cd "lm0 at pnpbios0 index ? flags 0x00" .Cd "lm0 at iic? addr 0x2e flags 0x00" .Cd "lm* at wbsio?" .Sh DESCRIPTION The .Nm driver provides support for the National Semiconductor LM series hardware monitors and register compatible chips to be used with the .Xr envsys 4 API.

p The original LM78 hardware monitor supports 11 sensors: l -column "Sensor" "Units" "Typical" -offset indent t Sy "Sensor" Ta Sy "Units" Ta Sy "Typical Use" t Li "IN0" Ta "uV DC" Ta "Core voltage" t Li "IN1" Ta "uV DC" Ta "unknown" t Li "IN2" Ta "uV DC" Ta "+3.3V" t Li "IN3" Ta "uV DC" Ta "+5V" t Li "IN4" Ta "uV DC" Ta "+12V" t Li "IN5" Ta "uV DC" Ta "-12V" t Li "IN6" Ta "uV DC" Ta "-5V" t Li "Temp" Ta "uK" Ta "Motherboard Temperature" t Li "Fan0" Ta "RPM" Ta "Fan" t Li "Fan1" Ta "RPM" Ta "Chassis Fan" t Li "Fan2" Ta "RPM" Ta "Fan" .El For other devices, sensors' names and numbers will be different.

p Due to hardware limitations, fresh sensor data is only available every 2 seconds. .Sh HARDWARE Chips supported by the .Nm driver include: l -item -offset indent t National Semiconductor .Em LM78 , .Em LM78-J , .Em LM79 , and .Em LM81 . t Nuvoton .Em NCT5104D , .Em NCT6775F , .Em NCT6776F , .Em NCT6102D , .Em NCT6104D , .Em NCT6106D , .Em NCT6779D and .Em NCT679[12356789]D . t Winbond .Em W83627HF* , .Em W83627THF* , .Em W83627EHF* , .Em W83627DHG* , .Em W83637HF* , .Em W83697HF* , .Em W83781D , .Em W83782D* , .Em W83783S* , .Em W83791D* , .Em W83791SD , and .Em W83792D . t ASUS .Em AS99127F . .El

p For most of the Winbond chips (identified with a * above), the .Em flags configuration option can be specified to select the type of temperature sensor: l -column "flags" "Sensor Type" -offset indent t Sy "flags" Ta Sy "Sensor Type" t Li "0" Ta "Thermistor diode (Power-On default)" t Li "1" Ta "Pentium-II diode" t Li "2" Ta "2N3904 Bipolar" t Li "4" Ta "Thermistor diode" .El .Sh SEE ALSO .Xr envsys 4 , .Xr wbsio 4 , .Xr envstat 8 .Sh HISTORY The .Nm device appeared in .Nx 1.5 . .Sh CAVEATS Some vendors connect these chips to non-standard thermal diodes and resistors. This will result in bogus sensor values. .Sh BUGS Interrupt support is unimplemented.

p There are currently no known pnpbios IDs assigned to LM chips.