xref: /netbsd-src/share/man/man4/lm.4 (revision 796c32c94f6e154afc9de0f63da35c91bb739b45)
1.\"	$NetBSD: lm.4,v 1.34 2017/07/12 11:23:52 wiz 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 July 12, 2017
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.Cd "lm* at wbsio?"
44.Sh DESCRIPTION
45The
46.Nm
47driver provides support for the
48.Tn National Semiconductor
49LM series hardware monitors and register compatible chips to be used with
50the
51.Xr envsys 4
52API.
53.Pp
54The original LM78 hardware monitor supports 11 sensors:
55.Bl -column "Sensor" "Units" "Typical" -offset indent
56.It Sy "Sensor" Ta Sy "Units" Ta Sy "Typical Use"
57.It Li "IN0" Ta "uV DC" Ta "Core voltage"
58.It Li "IN1" Ta "uV DC" Ta "unknown"
59.It Li "IN2" Ta "uV DC" Ta "+3.3V"
60.It Li "IN3" Ta "uV DC" Ta "+5V"
61.It Li "IN4" Ta "uV DC" Ta "+12V"
62.It Li "IN5" Ta "uV DC" Ta "-12V"
63.It Li "IN6" Ta "uV DC" Ta "-5V"
64.It Li "Temp" Ta "uK" Ta "Motherboard Temperature"
65.It Li "Fan0" Ta "RPM" Ta "Fan"
66.It Li "Fan1" Ta "RPM" Ta "Chassis Fan"
67.It Li "Fan2" Ta "RPM" Ta "Fan"
68.El
69For other devices, sensors' names and numbers will be different.
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.Bl -item -offset indent
78.It
79.Tn National Semiconductor
80.Em LM78 ,
81.Em LM78-J ,
82.Em LM79
83and
84.Em LM81 .
85.It
86.Tn Nuvoton
87.Em NCT5104D ,
88.Em NCT6775F ,
89.Em NCT6776F ,
90.Em NCT6102D ,
91.Em NCT6104D ,
92.Em NCT6106D ,
93.Em NCT6779D ,
94.Em NCT6791D ,
95.Em NCT6792D ,
96.Em NCT6793D ,
97.Em NCT6795D .
98.It
99.Tn Winbond
100.Em W83627HF* ,
101.Em W83627THF* ,
102.Em W83627EHF* ,
103.Em W83627DHG* ,
104.Em W83637HF* ,
105.Em W83697HF* ,
106.Em W83781D ,
107.Em W83782D* ,
108.Em W83783S* ,
109.Em W83791D* ,
110.Em W83791SD
111and
112.Em W83792D .
113.It
114.Tn ASUS
115.Em AS99127F .
116.El
117.Pp
118For most of the Winbond chips (identified with a * above), the
119.Em flags
120configuration option can be specified to select the type of temperature
121sensor:
122.Bl -column "flags" "Sensor Type" -offset indent
123.It Sy "flags" Ta Sy "Sensor Type"
124.It Li "0" Ta "Thermistor diode (Power-On default)"
125.It Li "1" Ta "Pentium-II diode"
126.It Li "2" Ta "2N3904 Bipolar"
127.It Li "4" Ta "Thermistor diode"
128.El
129.Sh SEE ALSO
130.Xr envsys 4 ,
131.Xr wbsio 4 ,
132.Xr envstat 8
133.Sh HISTORY
134The
135.Nm
136device appeared in
137.Nx 1.5 .
138.Sh CAVEATS
139Some vendors connect these chips to non-standard thermal diodes and
140resistors.
141This will result in bogus sensor values.
142.Sh BUGS
143Interrupt support is unimplemented.
144.Pp
145There are currently no known pnpbios IDs assigned to LM chips.
146