diff options
author | Alexander Yurchenko <grange@cvs.openbsd.org> | 2007-02-28 21:54:44 +0000 |
---|---|---|
committer | Alexander Yurchenko <grange@cvs.openbsd.org> | 2007-02-28 21:54:44 +0000 |
commit | db318cbe1f753be07e9ec65254bcd3c0d61969f2 (patch) | |
tree | fc35058e920b62e65c41bdc7db8a2689589ebaea /share | |
parent | db0ffb1635ea02b022284943818714267e0289dd (diff) |
Add Smart Battery Monitor device driver. Provided by
Aaron Linville <aaron@linville.org> in PR 5398.
Diffstat (limited to 'share')
-rw-r--r-- | share/man/man4/Makefile | 4 | ||||
-rw-r--r-- | share/man/man4/onewire.4 | 4 | ||||
-rw-r--r-- | share/man/man4/owsbm.4 | 66 |
3 files changed, 71 insertions, 3 deletions
diff --git a/share/man/man4/Makefile b/share/man/man4/Makefile index aea4a2104fe..e141f792323 100644 --- a/share/man/man4/Makefile +++ b/share/man/man4/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.406 2007/02/24 20:43:05 deraadt Exp $ +# $OpenBSD: Makefile,v 1.407 2007/02/28 21:54:43 grange Exp $ MAN= aac.4 ac97.4 acphy.4 \ acpi.4 acpiac.4 acpibat.4 acpibtn.4 acpicpu.4 acpidock.4 \ @@ -30,7 +30,7 @@ MAN= aac.4 ac97.4 acphy.4 \ moscom.4 mpi.4 mpu.4 msk.4 mtd.4 mtdphy.4 multicast.4 mtio.4 ne.4 \ neo.4 netintro.4 nfe.4 nge.4 nmea.4 noct.4 nofn.4 nsclpcsio.4 \ nsgphy.4 nsphy.4 nsphyter.4 null.4 nviic.4 ohci.4 opl.4 options.4 \ - onewire.4 oosiop.4 osiop.4 owid.4 owtemp.4 \ + onewire.4 oosiop.4 osiop.4 owid.4 owsbm.4 owtemp.4 \ pcagpio.4 pcaled.4 pcdisplay.4 pchb.4 pci.4 pcib.4 pcfadc.4 \ pcfiic.4 pciide.4 pckbc.4 pckbd.4 pcmcia.4 pcn.4 pcppi.4 pcscp.4 \ pf.4 pflog.4 pfsync.4 pgt.4 piixpm.4 pim.4 \ diff --git a/share/man/man4/onewire.4 b/share/man/man4/onewire.4 index aec1d5cd1c3..a8a346fdd4f 100644 --- a/share/man/man4/onewire.4 +++ b/share/man/man4/onewire.4 @@ -1,4 +1,4 @@ -.\" $OpenBSD: onewire.4,v 1.3 2006/09/27 08:54:44 grange Exp $ +.\" $OpenBSD: onewire.4,v 1.4 2007/02/28 21:54:43 grange Exp $ .\" .\" Copyright (c) 2006 Alexander Yurchenko <grange@openbsd.org> .\" @@ -52,6 +52,8 @@ Maxim/Dallas DS2490 USB 1-Wire adapter .Bl -tag -width 10n -offset ind -compact .It Xr owid 4 ID family type device +.It Xr owsbm 4 +smart battery monitor device .It Xr owtemp 4 temperature family type device .El diff --git a/share/man/man4/owsbm.4 b/share/man/man4/owsbm.4 new file mode 100644 index 00000000000..4533970e06c --- /dev/null +++ b/share/man/man4/owsbm.4 @@ -0,0 +1,66 @@ +.\" $OpenBSD: owsbm.4,v 1.1 2007/02/28 21:54:43 grange Exp $ +.\" +.\" Copyright (c) 2007 Aaron Linville <aaron@linville.org> +.\" +.\" Permission to use, copy, modify, and distribute this software for any +.\" purpose with or without fee is hereby granted, provided that the above +.\" copyright notice and this permission notice appear in all copies. +.\" +.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +.\" +.Dd December 4, 2006 +.Dt OWSBM 4 +.Os +.Sh NAME +.Nm owsbm +.Nd 1-Wire smart battery monitor family type device +.Sh SYNOPSIS +.Cd "owsbm* at onewire?" +.Sh DESCRIPTION +The +.Nm +driver provides support for the 1-Wire smart battery monitor. The sensor +possesses a temperature sensor, an A/D converter for measuring both +battery voltage and current, a current accumulator of both incoming and +outgoing current, an elapsed time and 40 bytes of nonvolatile EEPROM. +.Pp +Only the three voltages (VDD, VAD, CR) and temperature are accessible by +the +.Xr sysctl 8 +interface though. +.Pp +The following chips are supported by the driver: +.Pp +.Bl -bullet -compact -offset indent +.It +Maxim/Dallas DS2438 +.El +.Sh MEASURING CURRENT +.Pp +The sensor does not measure current directly. Instead it measures the +voltage across the Rsens pins. +.Bl -bullet -offset indent +I = Voltage CR / Rsens (where Rsens is in Ohms) +.El +.Sh SEE ALSO +.Xr intro 4 , +.Xr onewire 4 , +.Xr owtemp 4 , +.Xr sysctl 8 +.Sh HISTORY +The +.Nm +driver first appeared in +.Ox 4.? . +.Sh AUTHORS +.An -nosplit +The +.Nm +driver was written by +.An Aaron Linville Aq aaron@linville.org . |