1.\" $NetBSD: lm.4,v 1.30 2010/02/09 14:10:08 pgoyette Exp $ 2.\" 3.\" Copyright (c) 2000 The NetBSD Foundation, Inc. 4.\" All rights reserved. 5.\" 6.\" This code is derived from software contributed to The NetBSD Foundation 7.\" by Bill Squier. 8.\" 9.\" Redistribution and use in source and binary forms, with or without 10.\" modification, are permitted provided that the following conditions 11.\" are met: 12.\" 1. Redistributions of source code must retain the above copyright 13.\" notice, this list of conditions and the following disclaimer. 14.\" 2. Redistributions in binary form must reproduce the above copyright 15.\" notice, this list of conditions and the following disclaimer in the 16.\" documentation and/or other materials provided with the distribution. 17.\" 18.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 19.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 20.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 21.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 22.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 23.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 24.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 25.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 26.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 28.\" POSSIBILITY OF SUCH DAMAGE. 29.\" 30.Dd February 8, 2010 31.Dt LM 4 32.Os 33.Sh NAME 34.Nm lm 35.Nd National Semiconductor LM78, LM79 and compatible hardware monitors 36.Sh SYNOPSIS 37.Cd "lm0 at isa? port 0x280 flags 0x00" 38.Cd "lm1 at isa? port 0x290 flags 0x00" 39.Cd "lm2 at isa? port 0x310 flags 0x00" 40.Cd "lm3 at isa? port 0xa00 flags 0x00" 41.Cd "lm0 at pnpbios0 index ? flags 0x00" 42.Cd "lm0 at iic? addr 0x2e flags 0x00" 43.Sh DESCRIPTION 44The 45.Nm 46driver provides support for the 47.Tn National Semiconductor 48LM series hardware monitors and register compatible chips to be used with 49the 50.Xr envsys 4 51API. 52.Pp 53Most supported devices possess 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 68for some devices (most Winbond devices) sensor names and numbers will be 69different. 70.Pp 71Due to hardware limitations, fresh sensor data is only available every 722 seconds. 73.Sh HARDWARE 74Chips supported by the 75.Nm 76driver include: 77.Pp 78.Bl -item -offset indent 79.It 80.Tn National Semiconductor 81.Em LM78 , 82.Em LM78-J , 83.Em LM79 84and 85.Em LM81 . 86.It 87.Tn Winbond 88.Em W83627HF* , 89.Em W83627THF* , 90.Em W83627EHF* , 91.Em W83627DHG* , 92.Em W83637HF* , 93.Em W83697HF* , 94.Em W83781D , 95.Em W83782D* , 96.Em W83783S* , 97.Em W83791D* , 98.Em W83791SD 99and 100.Em W83792D . 101.It 102.Tn ASUS 103.Em AS99127F . 104.El 105For most of the Winbond chips (identified with a * above), the 106.Em flags 107configuration option can be specified to select the type of temperature 108sensor: 109.Bl -column "flags" "Sensor Type" -offset indent 110.It Sy "flags" Ta Sy "Sensor Type" 111.It Li "0" Ta "Thermistor diode (Power-On default)" 112.It Li "1" Ta "Pentium-II diode" 113.It Li "2" Ta "2N3904 Bipolar" 114.It Li "4" Ta "Thermistor diode" 115.El 116.Sh SEE ALSO 117.Xr envsys 4 , 118.Xr envstat 8 119.Sh HISTORY 120The 121.Nm 122device appeared in 123.Nx 1.5 . 124.Sh BUGS 125Interrupt support is unimplemented. 126.Pp 127There are currently no known pnpbios IDs assigned to LM chips. 128