Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sgimips/mace pass the port's hardware address in CO...



details:   https://anonhg.NetBSD.org/src/rev/1c67fdd76a18
branches:  trunk
changeset: 340780:1c67fdd76a18
user:      macallan <macallan%NetBSD.org@localhost>
date:      Wed Sep 30 19:44:58 2015 +0000

description:
pass the port's hardware address in COM_INIT_REGS() so the com driver can
figure out wether this is the console or not

diffstat:

 sys/arch/sgimips/mace/com_mace.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (36 lines):

diff -r c01314083e3e -r 1c67fdd76a18 sys/arch/sgimips/mace/com_mace.c
--- a/sys/arch/sgimips/mace/com_mace.c  Wed Sep 30 14:22:02 2015 +0000
+++ b/sys/arch/sgimips/mace/com_mace.c  Wed Sep 30 19:44:58 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: com_mace.c,v 1.10 2015/02/18 16:47:59 macallan Exp $   */
+/*     $NetBSD: com_mace.c,v 1.11 2015/09/30 19:44:58 macallan Exp $   */
 
 /*
  * Copyright (c) 2000 Soren S. Jorvang
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: com_mace.c,v 1.10 2015/02/18 16:47:59 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: com_mace.c,v 1.11 2015/09/30 19:44:58 macallan Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -55,6 +55,7 @@
 #include <machine/machtype.h>
 
 #include <sgimips/mace/macevar.h>
+#include <sgimips/mace/macereg.h>
 
 #include <dev/arcbios/arcbios.h>
 #include <dev/arcbios/arcbiosvar.h>
@@ -96,7 +97,8 @@
         */
        ioh = maa->maa_sh + maa->maa_offset;
        /* note that ioh on mac is *also* the iobase address */
-       COM_INIT_REGS(sc->sc_regs, mace_isa_memt, ioh, 0);
+       COM_INIT_REGS(sc->sc_regs, mace_isa_memt, ioh,
+           MACE_BASE + maa->maa_offset);
 
        sc->sc_frequency = COM_FREQ;
 



Home | Main Index | Thread Index | Old Index