Source-Changes-HG archive

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

[src/netbsd-9]: src/sys/arch/powerpc/ibm4xx/dev Pull up following revision(s)...



details:   https://anonhg.NetBSD.org/src/rev/8f3636875f9d
branches:  netbsd-9
changeset: 963641:8f3636875f9d
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Feb 25 20:12:20 2020 +0000

description:
Pull up following revision(s) (requested by rin in ticket #728):

        sys/arch/powerpc/ibm4xx/dev/com_opb.c: revision 1.23

Belatedly catch up with MI com(4) change in com.c rev. 1.351:
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/ic/com.c#rev1.351

XXX
pullup to netbsd-9

diffstat:

 sys/arch/powerpc/ibm4xx/dev/com_opb.c |  15 ++++-----------
 1 files changed, 4 insertions(+), 11 deletions(-)

diffs (43 lines):

diff -r 152136b4d8a5 -r 8f3636875f9d sys/arch/powerpc/ibm4xx/dev/com_opb.c
--- a/sys/arch/powerpc/ibm4xx/dev/com_opb.c     Tue Feb 25 20:08:38 2020 +0000
+++ b/sys/arch/powerpc/ibm4xx/dev/com_opb.c     Tue Feb 25 20:12:20 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: com_opb.c,v 1.22 2018/12/08 17:46:12 thorpej Exp $ */
+/* $NetBSD: com_opb.c,v 1.22.4.1 2020/02/25 20:12:20 martin Exp $ */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -61,7 +61,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: com_opb.c,v 1.22 2018/12/08 17:46:12 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: com_opb.c,v 1.22.4.1 2020/02/25 20:12:20 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -143,9 +143,6 @@
 com_opb_cnattach(int com_freq, int conaddr, int conspeed, int conmode)
 {
        static int attached = 0;
-#if (NCOM > 0)
-       struct com_regs regs;
-#endif
 
        if (attached)
                return;
@@ -153,12 +150,8 @@
 
 #if (NCOM > 0)
        /* We *know* the com-console attaches to opb */
-       regs.cr_iot = opb_get_bus_space_tag();
-       regs.cr_iobase = conaddr;
-       regs.cr_nports = COM_NPORTS;
-       /* regs.ioh is initialized by comcnattach */
-
-       if (comcnattach1(&regs, conspeed, com_freq, COM_TYPE_NORMAL, conmode))
+       if (comcnattach(opb_get_bus_space_tag(), conaddr, conspeed, com_freq,
+           COM_TYPE_NORMAL, conmode))
                panic("can't init serial console @%x", conaddr);
        else
                return;



Home | Main Index | Thread Index | Old Index