pass the port's hardware address in COM_INIT_REGS() so the com driver can
figure out wether this is the console or not
This commit is contained in:
parent
20d6d7ec56
commit
e57b94ff3d
|
@ -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 1.10 2015/02/18 16:47:59 macallan Exp $
|
|||
#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_t self, void *aux)
|
|||
*/
|
||||
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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue