summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormikeb <mikeb@openbsd.org>2012-12-14 13:17:29 +0000
committermikeb <mikeb@openbsd.org>2012-12-14 13:17:29 +0000
commitd78b6a365c3ccf81acbe95adc60d56638a5b582b (patch)
tree9025501aa042200322dd25de53127ba064c159a2
parenta few more comments (diff)
downloadwireguard-openbsd-d78b6a365c3ccf81acbe95adc60d56638a5b582b.tar.xz
wireguard-openbsd-d78b6a365c3ccf81acbe95adc60d56638a5b582b.zip
Support IT8772F; from form@, ok kettenis
-rw-r--r--sys/dev/isa/it.c3
-rw-r--r--sys/dev/isa/itvar.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/isa/it.c b/sys/dev/isa/it.c
index 92d34bd3c42..ec10b023107 100644
--- a/sys/dev/isa/it.c
+++ b/sys/dev/isa/it.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: it.c,v 1.41 2012/10/17 22:32:01 deraadt Exp $ */
+/* $OpenBSD: it.c,v 1.42 2012/12/14 13:17:29 mikeb Exp $ */
/*
* Copyright (c) 2007-2008 Oleg Safiullin <form@pdp-11.org.ru>
@@ -168,6 +168,7 @@ it_match(struct device *parent, void *match, void *aux)
case IT_ID_8720:
case IT_ID_8721:
case IT_ID_8726:
+ case IT_ID_8772:
/* get environment controller base address */
it_writereg(ia->ia_iot, ioh, IT_LDN, IT_EC_LDN);
ec_iobase = it_readreg(ia->ia_iot, ioh, IT_EC_MSB) << 8;
diff --git a/sys/dev/isa/itvar.h b/sys/dev/isa/itvar.h
index 14a486b3018..615c3663a67 100644
--- a/sys/dev/isa/itvar.h
+++ b/sys/dev/isa/itvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: itvar.h,v 1.13 2011/01/20 16:59:55 form Exp $ */
+/* $OpenBSD: itvar.h,v 1.14 2012/12/14 13:17:29 mikeb Exp $ */
/*
* Copyright (c) 2007-2008 Oleg Safiullin <form@pdp-11.org.ru>
@@ -47,6 +47,7 @@
#define IT_ID_8720 0x8720
#define IT_ID_8721 0x8721
#define IT_ID_8726 0x8726
+#define IT_ID_8772 0x8772
#define IT_CCR 0x02
#define IT_LDN 0x07