1.\" $OpenBSD: lm.4,v 1.22 2010/09/19 12:41:23 jmc Exp $ 2.\" $NetBSD: lm.4,v 1.11 2001/09/22 01:22:49 wiz Exp $ 3.\" 4.\" Copyright (c) 2000 The NetBSD Foundation, Inc. 5.\" All rights reserved. 6.\" 7.\" This code is derived from software contributed to The NetBSD Foundation 8.\" by Bill Squier. 9.\" 10.\" Redistribution and use in source and binary forms, with or without 11.\" modification, are permitted provided that the following conditions 12.\" are met: 13.\" 1. Redistributions of source code must retain the above copyright 14.\" notice, this list of conditions and the following disclaimer. 15.\" 2. Redistributions in binary form must reproduce the above copyright 16.\" notice, this list of conditions and the following disclaimer in the 17.\" documentation and/or other materials provided with the distribution. 18.\" 19.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 20.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 21.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 22.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 23.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29.\" POSSIBILITY OF SUCH DAMAGE. 30.\" 31.Dd $Mdocdate: September 19 2010 $ 32.Dt LM 4 33.Os 34.Sh NAME 35.Nm lm 36.Nd National Semiconductor LM78/79/81 temperature, voltage, and fan sensor 37.Sh SYNOPSIS 38.Cd "lm0 at isa? port 0x290" 39.Cd "lm1 at isa? port 0x280" 40.Cd "lm2 at isa? port 0x310" 41.\" .Cd "lm0 at pnpbios0" 42.Cd "lm* at iic?" 43.Cd "lm* at wbsio?" 44.Sh DESCRIPTION 45The 46.Nm 47driver provides support for the 48National Semiconductor LM78/79/81 49hardware monitors and register compatible chips to be used with the 50.Xr sysctl 8 51interface. 52.Pp 53The original LM78 hardware monitor supports 11 sensors: 54.Bl -column "Sensor" "Units" "Typical" -offset indent 55.It Sy "Sensor" Ta Sy "Units" Ta Sy "Typical Use" 56.It Li "IN0" Ta "uV DC" Ta "Core voltage" 57.It Li "IN1" Ta "uV DC" Ta "Unknown" 58.It Li "IN2" Ta "uV DC" Ta "+3.3V" 59.It Li "IN3" Ta "uV DC" Ta "+5V" 60.It Li "IN4" Ta "uV DC" Ta "+12V" 61.It Li "IN5" Ta "uV DC" Ta "-12V" 62.It Li "IN6" Ta "uV DC" Ta "-5V" 63.It Li "Temp" Ta "uK" Ta "Motherboard Temperature" 64.It Li "Fan0" Ta "RPM" Ta "Fan" 65.It Li "Fan1" Ta "RPM" Ta "Chassis Fan" 66.It Li "Fan2" Ta "RPM" Ta "Fan" 67.El 68.Pp 69For other devices, sensors' names and numbers will be different. 70.Sh HARDWARE 71Chips supported by the 72.Nm 73driver include: 74.Pp 75.Bl -dash -offset indent -compact 76.It 77National Semiconductor LM78 and LM78-J 78.It 79National Semiconductor LM79 80.It 81National Semiconductor LM81 82.It 83Winbond W83627HF, W83627THF, W83637HF and W83697HF 84.It 85Winbond W83627DHG and W83627EHF 86.It 87Winbond W83781D, W83782D and W83783S 88.It 89Winbond W83791D, W83791SD and W83792D 90.It 91ASUS AS99127F 92.El 93.Pp 94Some devices can attach to both 95.Xr iic 4 96and 97.Xr isa 4 ; 98others can only attach to either one or the other. 99If the 100.Nm 101driver detects a device attaching to both 102.Xr iic 4 103and 104.Xr isa 4 , 105it will detach the device from 106.Xr iic 4 . 107.Sh SEE ALSO 108.Xr iic 4 , 109.Xr isa 4 , 110.Xr wbsio 4 , 111.Xr sensorsd 8 , 112.Xr sysctl 8 113.Sh HISTORY 114The 115.Nm 116driver first appeared in 117.Nx 1.5 ; 118.Ox 119support was added in 120.Ox 3.4 . 121.Sh AUTHORS 122.An -nosplit 123The 124.Nm 125driver was written by 126.An Bill Squier 127and ported to 128.Ox 3.4 129by 130.An Alexander Yurchenko Aq grange@openbsd.org . 131The driver was largely rewritten for 132.Ox 3.9 133by 134.An Mark Kettenis Aq kettenis@openbsd.org . 135.Sh CAVEATS 136Some vendors connect these chips to non-standard thermal diodes and 137resistors. 138This will result in bogus sensor values. 139.Sh BUGS 140Interrupt support is unimplemented. 141.Pp 142There are currently no known pnpbios IDs assigned to LM chips. 143.Pp 144This driver attaches to the Winbond W83791SD chip even though that 145chip does not have any sensors. 146