diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2005-12-25 10:23:28 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2005-12-25 10:23:28 +0000 |
commit | ffb544621d0b5efd45b6300ee18774eb6a403b23 (patch) | |
tree | 4db38d3b3dd512f749fc83c8243a334dbf1d0060 /sys | |
parent | 2a7013660f8d60fca4e8a9efd24876284180b3f7 (diff) |
Add support for AS99127F, an Asus W83781D clone.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ic/nslm7x.c | 8 | ||||
-rw-r--r-- | sys/dev/ic/nslm7xvar.h | 3 |
2 files changed, 8 insertions, 3 deletions
diff --git a/sys/dev/ic/nslm7x.c b/sys/dev/ic/nslm7x.c index 8524a9bdf99..fcd50ac3052 100644 --- a/sys/dev/ic/nslm7x.c +++ b/sys/dev/ic/nslm7x.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nslm7x.c,v 1.9 2005/12/24 23:30:55 kettenis Exp $ */ +/* $OpenBSD: nslm7x.c,v 1.10 2005/12/25 10:23:27 kettenis Exp $ */ /* $NetBSD: nslm7x.c,v 1.17 2002/11/15 14:55:41 ad Exp $ */ /*- @@ -258,7 +258,11 @@ wb_match(struct lm_softc *sc) switch(j) { case WB_CHIPID_83781: case WB_CHIPID_83781_2: - printf(": W83781D\n"); + case AS_CHIPID_99127: + if (j == AS_CHIPID_99127) + printf(": AS99127F\n"); + else + printf(": W83781D\n"); for (i = 0; i < 7; ++i) { sc->sensors[i].type = SENSOR_VOLTS_DC; diff --git a/sys/dev/ic/nslm7xvar.h b/sys/dev/ic/nslm7xvar.h index f0433b1d30b..4b055856294 100644 --- a/sys/dev/ic/nslm7xvar.h +++ b/sys/dev/ic/nslm7xvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: nslm7xvar.h,v 1.4 2003/10/21 18:58:49 jmc Exp $ */ +/* $OpenBSD: nslm7xvar.h,v 1.5 2005/12/25 10:23:27 kettenis Exp $ */ /* $NetBSD: nslm7xvar.h,v 1.10 2002/11/15 14:55:42 ad Exp $ */ /*- @@ -92,6 +92,7 @@ #define WB_BANK0_CHIPID 0x58 #define WB_CHIPID_83781 0x10 #define WB_CHIPID_83781_2 0x11 +#define AS_CHIPID_99127 0x31 /* Asus W83781D clone */ #define WB_CHIPID_83782 0x30 #define WB_CHIPID_83627 0x21 #define WB_CHIPID_83627THF 0x90 |