diff options
author | Per Fogelstrom <pefo@cvs.openbsd.org> | 1997-03-12 19:17:04 +0000 |
---|---|---|
committer | Per Fogelstrom <pefo@cvs.openbsd.org> | 1997-03-12 19:17:04 +0000 |
commit | 63e70c1bce393b8e92002c93029eeb1a67f80fcc (patch) | |
tree | 1ffb854bd1045ee6f0999913b74a788a879368bc /sys/arch/arc/pica | |
parent | fd5a4621c16957714dbc7335eb5afa6b0f28b29e (diff) |
Addition of support for a PCI based Vr4300 board from Algorithmics, the P-4032.
Changes to io macros were done to handle sparse bus addressing dynamically.
This is a first cut (rough).
Diffstat (limited to 'sys/arch/arc/pica')
-rw-r--r-- | sys/arch/arc/pica/com_pica.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/sys/arch/arc/pica/com_pica.c b/sys/arch/arc/pica/com_pica.c index 5c0252c6361..044c1ad9118 100644 --- a/sys/arch/arc/pica/com_pica.c +++ b/sys/arch/arc/pica/com_pica.c @@ -1,4 +1,4 @@ -/* $OpenBSD: com_pica.c,v 1.1 1996/11/30 13:39:44 niklas Exp $ */ +/* $OpenBSD: com_pica.c,v 1.2 1997/03/12 19:17:03 pefo Exp $ */ /* * Copyright (c) 1993, 1994 Charles Hannum. @@ -73,9 +73,6 @@ #define CLR(t, f) (t) &= ~(f) #define ISSET(t, f) ((t) & (f)) -#undef CONADDR /* This is stupid but using devs before config .. */ -#define CONADDR 0xe0006000 - int com_pica_probe __P((struct device *, void *, void *)); void com_pica_attach __P((struct device *, struct device *, void *)); @@ -83,6 +80,10 @@ struct cfattach com_pica_ca = { sizeof(struct com_softc), com_pica_probe, com_pica_attach }; +struct cfattach com_algor_ca = { + sizeof(struct com_softc), com_pica_probe, com_pica_attach +}; + int com_pica_probe(parent, match, aux) struct device *parent; @@ -97,7 +98,7 @@ com_pica_probe(parent, match, aux) if(!BUS_MATCHNAME(ca, "com")) return(0); iobase = (long)BUS_CVTADDR(ca); - iot = 0; + iot = &arc_bus; needioh = 1; /* if it's in use as console, it's there. */ @@ -131,7 +132,7 @@ com_pica_attach(parent, self, aux) sc->sc_swflags = 0; sc->sc_iobase = iobase = (bus_addr_t)BUS_CVTADDR(ca); sc->sc_ioh = ioh = (bus_space_handle_t)iobase; - sc->sc_iot = iot = 0; + sc->sc_iot = iot = &arc_bus; if (iobase == comconsaddr) { comconsattached = 1; |