diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2007-06-24 16:28:40 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2007-06-24 16:28:40 +0000 |
commit | 7e31dec0c652b27e0d7901b51d290105b0bc991a (patch) | |
tree | c405f895d08c5da309fe22ff3e6b6184fe755b9f /sys/arch/hppa | |
parent | 7b62b49ce293def1e4402f8aac61d7648d86efc3 (diff) |
Attach as console when appropriate.
Diffstat (limited to 'sys/arch/hppa')
-rw-r--r-- | sys/arch/hppa/dev/com_ssio.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/arch/hppa/dev/com_ssio.c b/sys/arch/hppa/dev/com_ssio.c index 249bf4a6b3a..97d86fb77e2 100644 --- a/sys/arch/hppa/dev/com_ssio.c +++ b/sys/arch/hppa/dev/com_ssio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: com_ssio.c,v 1.1 2007/06/19 22:51:26 kettenis Exp $ */ +/* $OpenBSD: com_ssio.c,v 1.2 2007/06/24 16:28:39 kettenis Exp $ */ /* * Copyright (c) 2007 Mark Kettenis @@ -22,6 +22,7 @@ #include <sys/tty.h> #include <machine/bus.h> +#include <machine/iomod.h> #include <dev/ic/comreg.h> #include <dev/ic/comvar.h> @@ -67,6 +68,13 @@ com_ssio_attach(struct device *parent, struct device *self, void *aux) return; } + if (PAGE0->mem_cons.pz_class == PCL_DUPLEX && + PAGE0->mem_cons.pz_hpa == sc->sc_ioh) { + bus_space_unmap(sc->sc_iot, sc->sc_ioh, COM_NPORTS); + comcnattach(sc->sc_iot, sc->sc_iobase, comdefaultrate, + COM_SSIO_FREQ, comconscflag); + } + sc->sc_frequency = COM_SSIO_FREQ; com_attach_subr(sc); |