Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-8]: src/sys/dev/isa Pull up following revision(s) (requested by m...



details:   https://anonhg.NetBSD.org/src/rev/7aac2c33a717
branches:  netbsd-8
changeset: 434427:7aac2c33a717
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Nov 23 11:39:42 2017 +0000

description:
Pull up following revision(s) (requested by msaitoh in ticket #373):
        sys/dev/isa/itesio_isavar.h: revision 1.10
        sys/dev/isa/itesio_isavar.h: revision 1.11
        sys/dev/isa/itesio_isa.c: revision 1.26
        sys/dev/isa/itesio_isa.c: revision 1.27
Enable the IT8628E shipped with my gigabyte GA-N3150N-D3V board.
XXX These IT suoer IO chips appear to be all fairly alike. Maybe add a
comprehensive list of IDs to recognize them, then deal with the
fallout?
  Add IT8728F and IT877[12]E.

diffstat:

 sys/dev/isa/itesio_isa.c    |  8 ++++++--
 sys/dev/isa/itesio_isavar.h |  6 +++++-
 2 files changed, 11 insertions(+), 3 deletions(-)

diffs (63 lines):

diff -r 3fee627fd198 -r 7aac2c33a717 sys/dev/isa/itesio_isa.c
--- a/sys/dev/isa/itesio_isa.c  Thu Nov 23 11:04:18 2017 +0000
+++ b/sys/dev/isa/itesio_isa.c  Thu Nov 23 11:39:42 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: itesio_isa.c,v 1.25 2015/04/23 23:23:00 pgoyette Exp $ */
+/*     $NetBSD: itesio_isa.c,v 1.25.10.1 2017/11/23 11:39:42 martin Exp $ */
 /*     Derived from $OpenBSD: it.c,v 1.19 2006/04/10 00:57:54 deraadt Exp $    */
 
 /*
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: itesio_isa.c,v 1.25 2015/04/23 23:23:00 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: itesio_isa.c,v 1.25.10.1 2017/11/23 11:39:42 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -136,6 +136,7 @@
        bus_space_unmap(ia->ia_iot, ioh, 2);
 
        switch (cr) {
+       case ITESIO_ID8628:
        case ITESIO_ID8705:
        case ITESIO_ID8712:
        case ITESIO_ID8716:
@@ -143,6 +144,9 @@
        case ITESIO_ID8720:
        case ITESIO_ID8721:
        case ITESIO_ID8726:
+       case ITESIO_ID8728:
+       case ITESIO_ID8771:
+       case ITESIO_ID8772:
                ia->ia_nio = 1;
                ia->ia_io[0].ir_size = 2;
                ia->ia_niomem = 0;
diff -r 3fee627fd198 -r 7aac2c33a717 sys/dev/isa/itesio_isavar.h
--- a/sys/dev/isa/itesio_isavar.h       Thu Nov 23 11:04:18 2017 +0000
+++ b/sys/dev/isa/itesio_isavar.h       Thu Nov 23 11:39:42 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: itesio_isavar.h,v 1.9 2012/11/15 04:45:01 msaitoh Exp $        */
+/*     $NetBSD: itesio_isavar.h,v 1.9.30.1 2017/11/23 11:39:42 martin Exp $    */
 /*     $OpenBSD: itvar.h,v 1.2 2003/11/05 20:57:10 grange Exp $        */
 
 /*
@@ -57,6 +57,7 @@
 #define ITESIO_CHIPID2 0x21    /* Chip ID 2 */
 #define ITESIO_DEVREV  0x22    /* Device Revision */
 
+#define ITESIO_ID8628  0x8628
 #define ITESIO_ID8705  0x8705
 #define ITESIO_ID8712  0x8712
 #define ITESIO_ID8716  0x8716
@@ -64,6 +65,9 @@
 #define ITESIO_ID8720  0x8720
 #define ITESIO_ID8721  0x8721
 #define ITESIO_ID8726  0x8726
+#define ITESIO_ID8728  0x8728
+#define ITESIO_ID8771  0x8771
+#define ITESIO_ID8772  0x8772
 
 /* 
  * Control registers for the Environmental Controller, relative



Home | Main Index | Thread Index | Old Index