summaryrefslogtreecommitdiff
path: root/sys/arch/arc/isa
diff options
context:
space:
mode:
authorPer Fogelstrom <pefo@cvs.openbsd.org>1997-04-10 16:29:33 +0000
committerPer Fogelstrom <pefo@cvs.openbsd.org>1997-04-10 16:29:33 +0000
commit4c459afa7bc75884058a78d41baa5055b46c867d (patch)
treef543a8884c561f8d6854df4837bd23dd9594bbf7 /sys/arch/arc/isa
parentdac87775916d5fa9ed1d6e922f8c41695291126e (diff)
Attempt to clean up local devices.
Added support for new QED RT52x0 processors.
Diffstat (limited to 'sys/arch/arc/isa')
-rw-r--r--sys/arch/arc/isa/isa_machdep.h6
-rw-r--r--sys/arch/arc/isa/isabus.c8
2 files changed, 7 insertions, 7 deletions
diff --git a/sys/arch/arc/isa/isa_machdep.h b/sys/arch/arc/isa/isa_machdep.h
index d714d2e94e5..5186a287c94 100644
--- a/sys/arch/arc/isa/isa_machdep.h
+++ b/sys/arch/arc/isa/isa_machdep.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: isa_machdep.h,v 1.3 1997/03/12 19:16:58 pefo Exp $ */
+/* $OpenBSD: isa_machdep.h,v 1.4 1997/04/10 16:29:27 pefo Exp $ */
/*
* Copyright (c) 1996 Per Fogelstrom
@@ -40,8 +40,8 @@ typedef struct arc_isa_bus *isa_chipset_tag_t;
* However, the cpu executes an instruction every 7.5ns
* so the bus is much slower so it doesn't matter, really.
*/
-#define isa_outb(x,y) outb(arc_bus.isa_io_base + (x), y)
-#define isa_inb(x) inb(arc_bus.isa_io_base + (x))
+#define isa_outb(x,y) outb(arc_bus_io.bus_base + (x), y)
+#define isa_inb(x) inb(arc_bus_io.bus_base + (x))
struct arc_isa_bus {
void *ic_data;
diff --git a/sys/arch/arc/isa/isabus.c b/sys/arch/arc/isa/isabus.c
index ab8d79944be..acce947fc7e 100644
--- a/sys/arch/arc/isa/isabus.c
+++ b/sys/arch/arc/isa/isabus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: isabus.c,v 1.8 1997/03/12 19:16:59 pefo Exp $ */
+/* $OpenBSD: isabus.c,v 1.9 1997/04/10 16:29:28 pefo Exp $ */
/* $NetBSD: isa.c,v 1.33 1995/06/28 04:30:51 cgd Exp $ */
/*-
@@ -193,8 +193,8 @@ isabrattach(parent, self, aux)
sc->arc_isa_cs.ic_intr_disestablish = isabr_intr_disestablish;
iba.iba_busname = "isa";
- iba.iba_iot = (bus_space_tag_t)&arc_bus;
- iba.iba_memt = (bus_space_tag_t)&arc_bus;
+ iba.iba_iot = (bus_space_tag_t)&arc_bus_io;
+ iba.iba_memt = (bus_space_tag_t)&arc_bus_mem;
iba.iba_ic = &sc->arc_isa_cs;
config_found(self, &iba, isabrprint);
}
@@ -209,7 +209,7 @@ isabrprint(aux, pnp)
if (pnp)
printf("%s at %s", ca->ca_name, pnp);
printf(" isa_io_base 0x%lx isa_mem_base 0x%lx",
- arc_bus.isa_io_base, arc_bus.isa_mem_base);
+ arc_bus_io.bus_base, arc_bus_mem.bus_base);
return (UNCONF);
}