summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorchris <chris@openbsd.org>2015-01-02 23:02:54 +0000
committerchris <chris@openbsd.org>2015-01-02 23:02:54 +0000
commit25c766cdbadcd613cc084d89bc5f11c828019ddd (patch)
tree31de3d3b82a8c30f2846f8ae878f29b8e97dd0b2 /sys
parentFix saving dhclient lease files during installation. (diff)
downloadwireguard-openbsd-25c766cdbadcd613cc084d89bc5f11c828019ddd.tar.xz
wireguard-openbsd-25c766cdbadcd613cc084d89bc5f11c828019ddd.zip
Identify NCT5104D variant in dmesg. (No lm here, these are used for com and
gpio pins on SuperMicro and PC Engines.) ok kettenis@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/isa/wbsio.c6
-rw-r--r--sys/dev/isa/wbsioreg.h3
2 files changed, 7 insertions, 2 deletions
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 <kettenis@openbsd.org>
*
@@ -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 <kettenis@openbsd.org>
*
@@ -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