From: chris Date: Fri, 2 Jan 2015 23:02:54 +0000 (+0000) Subject: Identify NCT5104D variant in dmesg. (No lm here, these are used for com and X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=25c766cdbadcd613cc084d89bc5f11c828019ddd;p=openbsd Identify NCT5104D variant in dmesg. (No lm here, these are used for com and gpio pins on SuperMicro and PC Engines.) ok kettenis@ --- diff --git a/sys/dev/isa/wbsio.c b/sys/dev/isa/wbsio.c index b30e2ecc696..94beddaf840 100644 --- a/sys/dev/isa/wbsio.c +++ b/sys/dev/isa/wbsio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wbsio.c,v 1.8 2012/07/01 02:15:09 lteo Exp $ */ +/* $OpenBSD: wbsio.c,v 1.9 2015/01/02 23:02:54 chris Exp $ */ /* * Copyright (c) 2008 Mark Kettenis * @@ -112,6 +112,7 @@ wbsio_probe(struct device *parent, void *match, void *aux) case WBSIO_ID_W83637HF: case WBSIO_ID_W83697HF: case WBSIO_ID_NCT6776F: + case WBSIO_ID_NCT5104D: ia->ipa_nio = 1; ia->ipa_io[0].length = WBSIO_IOSIZE; ia->ipa_nmem = 0; @@ -173,6 +174,9 @@ wbsio_attach(struct device *parent, struct device *self, void *aux) case WBSIO_ID_NCT6776F: printf(": NCT6776F"); break; + case WBSIO_ID_NCT5104D: + printf(": NCT5104D"); + break; } /* Read device revision */ diff --git a/sys/dev/isa/wbsioreg.h b/sys/dev/isa/wbsioreg.h index 2a5a4eac283..574a19f358b 100644 --- a/sys/dev/isa/wbsioreg.h +++ b/sys/dev/isa/wbsioreg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: wbsioreg.h,v 1.3 2012/07/01 02:15:09 lteo Exp $ */ +/* $OpenBSD: wbsioreg.h,v 1.4 2015/01/02 23:02:54 chris Exp $ */ /* * Copyright (c) 2008 Mark Kettenis * @@ -43,6 +43,7 @@ #define WBSIO_ID_W83637HF 0x70 #define WBSIO_ID_W83697HF 0x60 #define WBSIO_ID_NCT6776F 0xc3 +#define WBSIO_ID_NCT5104D 0xc4 /* Logical Device Number (LDN) Assignments */ #define WBSIO_LDN_HM 0x0b