From 63e70c1bce393b8e92002c93029eeb1a67f80fcc Mon Sep 17 00:00:00 2001 From: Per Fogelstrom Date: Wed, 12 Mar 1997 19:17:04 +0000 Subject: 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). --- sys/arch/arc/dev/if_sn.c | 6 +++--- sys/arch/arc/dev/pccons.c | 22 ++++++++++++++-------- 2 files changed, 17 insertions(+), 11 deletions(-) (limited to 'sys/arch/arc/dev') diff --git a/sys/arch/arc/dev/if_sn.c b/sys/arch/arc/dev/if_sn.c index 7ec82f8d391..02fc28a0ee3 100644 --- a/sys/arch/arc/dev/if_sn.c +++ b/sys/arch/arc/dev/if_sn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_sn.c,v 1.7 1996/10/19 10:02:51 niklas Exp $ */ +/* $OpenBSD: if_sn.c,v 1.8 1997/03/12 19:16:50 pefo Exp $ */ /* * National Semiconductor SONIC Driver * Copyright (c) 1991 Algorithmics Ltd (http://www.algor.co.uk) @@ -1241,8 +1241,8 @@ sonic_read(sc, rxp) #define sonicdataaddr(eh, off, type) ((type)(((caddr_t)((eh)+1)+(off)))) /* - * munge the recieved packet into an mbuf chain - * because we are using stupif buffer management this + * munge the received packet into a mbuf chain + * because we are using stupid buffer management this * is slow. */ struct mbuf * diff --git a/sys/arch/arc/dev/pccons.c b/sys/arch/arc/dev/pccons.c index b8f302e46ea..9d857d7dd42 100644 --- a/sys/arch/arc/dev/pccons.c +++ b/sys/arch/arc/dev/pccons.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pccons.c,v 1.11 1997/01/17 23:13:57 pefo Exp $ */ +/* $OpenBSD: pccons.c,v 1.12 1997/03/12 19:16:52 pefo Exp $ */ /* $NetBSD: pccons.c,v 1.89 1995/05/04 19:35:20 cgd Exp $ */ /*- @@ -67,6 +67,7 @@ #include #include +#include #include #include #include @@ -815,7 +816,12 @@ pccnprobe(cp) /* initialize required fields */ cp->cn_dev = makedev(maj, 0); - cp->cn_pri = CN_INTERNAL; + if(cputype == ALGOR_P4032) { + cp->cn_pri = CN_DEAD; /* XXX For now... */ + } + else { + cp->cn_pri = CN_INTERNAL; + } } /* ARGSUSED */ @@ -852,12 +858,12 @@ pccninit(cp) break; case DESKSTATION_RPC44: - mono_base += isa_io_base; - mono_buf += isa_mem_base; - cga_base += isa_io_base; - cga_buf = isa_mem_base + 0xa0000; - kbd_cmdp = isa_io_base + 0x64; - kbd_datap = isa_io_base + 0x60; + mono_base += arc_bus.isa_io_base; + mono_buf += arc_bus.isa_mem_base; + cga_base += arc_bus.isa_io_base; + cga_buf = arc_bus.isa_mem_base + 0xa0000; + kbd_cmdp = arc_bus.isa_io_base + 0x64; + kbd_datap = arc_bus.isa_io_base + 0x60; kbc_put8042cmd(CMDBYTE); /* Want XT codes.. */ break; } -- cgit v1.2.3