Module Name: src Committed By: macallan Date: Wed Sep 30 19:44:58 UTC 2015
Modified Files: src/sys/arch/sgimips/mace: com_mace.c Log Message: pass the port's hardware address in COM_INIT_REGS() so the com driver can figure out wether this is the console or not To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/sys/arch/sgimips/mace/com_mace.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/sgimips/mace/com_mace.c diff -u src/sys/arch/sgimips/mace/com_mace.c:1.10 src/sys/arch/sgimips/mace/com_mace.c:1.11 --- src/sys/arch/sgimips/mace/com_mace.c:1.10 Wed Feb 18 16:47:59 2015 +++ src/sys/arch/sgimips/mace/com_mace.c Wed Sep 30 19:44:58 2015 @@ -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 @@ __KERNEL_RCSID(0, "$NetBSD: com_mace.c,v #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 @@ com_mace_attach(device_t parent, device_ */ 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;