diff options
-rw-r--r-- | share/man/man4/iic.4 | 4 | ||||
-rw-r--r-- | share/man/man4/man4.macppc/fcu.4 | 10 | ||||
-rw-r--r-- | sys/dev/i2c/fcu.c | 6 |
3 files changed, 10 insertions, 10 deletions
diff --git a/share/man/man4/iic.4 b/share/man/man4/iic.4 index 18894889696..32b0261c66c 100644 --- a/share/man/man4/iic.4 +++ b/share/man/man4/iic.4 @@ -1,4 +1,4 @@ -.\" $OpenBSD: iic.4,v 1.53 2006/09/07 10:42:25 jmc Exp $ +.\" $OpenBSD: iic.4,v 1.54 2007/01/07 18:27:46 deraadt Exp $ .\" .\" Copyright (c) 2004, 2006 Alexander Yurchenko <grange@openbsd.org> .\" @@ -123,7 +123,7 @@ Asus ASB 100 temperature sensor .It Xr asms 4 Apple sudden motion sensor .It Xr fcu 4 -Apple FCU fan controller +Apple Fan Control Unit sensor device .It Xr fintek 4 Fintek F75375 temperature sensor .It Xr glenv 4 diff --git a/share/man/man4/man4.macppc/fcu.4 b/share/man/man4/man4.macppc/fcu.4 index 6454557892b..ee558db0833 100644 --- a/share/man/man4/man4.macppc/fcu.4 +++ b/share/man/man4/man4.macppc/fcu.4 @@ -1,4 +1,4 @@ -.\" $OpenBSD: fcu.4,v 1.5 2006/01/02 11:31:57 jmc Exp $ +.\" $OpenBSD: fcu.4,v 1.6 2007/01/07 18:27:46 deraadt Exp $ .\" .\" Copyright (c) 2005 Theo de Raadt <deraadt@openbsd.org> .\" @@ -19,17 +19,17 @@ .Os .Sh NAME .Nm fcu -.Nd Apple FCU fan controller +.Nd Apple Fan Control Unit sensor device .Sh SYNOPSIS .Cd "fcu* at iic?" .Sh DESCRIPTION The .Nm -driver provides support for the Apple FCU -fan controller. +driver provides support for the Apple +Fan Control Unit (FCU). The device controls and monitors fans found in some Apple machines. -These values are made available through the +Fan speed readings and PWM settings are made available through the .Xr sysctl 8 interface. .Sh SEE ALSO diff --git a/sys/dev/i2c/fcu.c b/sys/dev/i2c/fcu.c index d588f06af4e..ba4dbd0e81d 100644 --- a/sys/dev/i2c/fcu.c +++ b/sys/dev/i2c/fcu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fcu.c,v 1.4 2006/12/23 17:46:39 deraadt Exp $ */ +/* $OpenBSD: fcu.c,v 1.5 2007/01/07 18:27:46 deraadt Exp $ */ /* * Copyright (c) 2005 Mark Kettenis @@ -93,7 +93,7 @@ fcu_attach(struct device *parent, struct device *self, void *aux) for (i = 0; i < FCU_FANS; i++) sc->sc_sensor[i].type = SENSOR_FANRPM; for (i = 0; i < FCU_PWMS; i++) { - sc->sc_sensor[FCU_PWM1 + i].type = SENSOR_FANRPM; + sc->sc_sensor[FCU_PWM1 + i].type = SENSOR_PERCENT; strlcpy(sc->sc_sensor[FCU_PWM1 + i].desc, "PWM", sizeof(sc->sc_sensor[FCU_PWM1 + i].desc)); } @@ -170,7 +170,7 @@ fcu_refresh(void *arg) sc->sc_sensor[FCU_PWM1 + i].flags |= SENSOR_FINVALID; continue; } - sc->sc_sensor[FCU_PWM1 + i].value = (fan[0] * 1000) / 2559; + sc->sc_sensor[FCU_PWM1 + i].value = (fan[0] * 100 * 1000) / 255; } abort: |