1.\" $OpenBSD: lm.4,v 1.25 2013/07/16 16:05:49 schwarze 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: July 16 2013 $ 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 77ASUS AS99127F 78.It 79National Semiconductor LM78 and LM78-J 80.It 81National Semiconductor LM79 82.It 83National Semiconductor LM81 84.It 85Nuvoton NCT6776F 86.It 87Winbond W83627HF, W83627THF, W83637HF and W83697HF 88.It 89Winbond W83627DHG, W83627UHG and W83627EHF 90.It 91Winbond W83781D, W83782D and W83783S 92.It 93Winbond W83791D, W83791SD and W83792D 94.El 95.Pp 96Some devices can attach to both 97.Xr iic 4 98and 99.Xr isa 4 ; 100others can only attach to either one or the other. 101If the 102.Nm 103driver detects a device attaching to both 104.Xr iic 4 105and 106.Xr isa 4 , 107it will detach the device from 108.Xr iic 4 . 109.Sh SEE ALSO 110.Xr iic 4 , 111.Xr isa 4 , 112.Xr wbsio 4 , 113.Xr sensorsd 8 , 114.Xr sysctl 8 115.Sh HISTORY 116The 117.Nm 118driver first appeared in 119.Nx 1.5 ; 120.Ox 121support was added in 122.Ox 3.4 . 123.Sh AUTHORS 124.An -nosplit 125The 126.Nm 127driver was written by 128.An Bill Squier 129and ported to 130.Ox 3.4 131by 132.An Alexander Yurchenko Aq Mt grange@openbsd.org . 133The driver was largely rewritten for 134.Ox 3.9 135by 136.An Mark Kettenis Aq Mt kettenis@openbsd.org . 137.Sh CAVEATS 138Some vendors connect these chips to non-standard thermal diodes and 139resistors. 140This will result in bogus sensor values. 141.Sh BUGS 142Interrupt support is unimplemented. 143.Pp 144There are currently no known pnpbios IDs assigned to LM chips. 145.Pp 146This driver attaches to the Winbond W83791SD chip even though that 147chip does not have any sensors. 148