Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/ibm4xx/dev Belatedly catch up with MI com(4...



details:   https://anonhg.NetBSD.org/src/rev/d129df7c0c2f
branches:  trunk
changeset: 847225:d129df7c0c2f
user:      rin <rin%NetBSD.org@localhost>
date:      Sun Dec 15 09:38:40 2019 +0000

description:
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 749d78fba332 -r d129df7c0c2f sys/arch/powerpc/ibm4xx/dev/com_opb.c
--- a/sys/arch/powerpc/ibm4xx/dev/com_opb.c     Sun Dec 15 09:22:28 2019 +0000
+++ b/sys/arch/powerpc/ibm4xx/dev/com_opb.c     Sun Dec 15 09:38:40 2019 +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.23 2019/12/15 09:38:40 rin 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.23 2019/12/15 09:38:40 rin 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