diff options
author | Per Fogelstrom <pefo@cvs.openbsd.org> | 1998-03-16 09:38:53 +0000 |
---|---|---|
committer | Per Fogelstrom <pefo@cvs.openbsd.org> | 1998-03-16 09:38:53 +0000 |
commit | a963ca51673d0d081904efce31dd28f05d83e730 (patch) | |
tree | f51de935de8777cae9204bbaa29b11aa7007425d /sys/arch/arc/dev | |
parent | c1aa08ed9b8f4b392adef8685e4f55ff3b189dbb (diff) |
DDB.
Support for Algorithmics R5000/R10000 evaluation board. So far only the
RM5260 is supported. RM5270 - RM7000 later. R5000 and R10000 depending
on access to cpu modules.
vm_machdep.c moved to arch/mips/mips.
Diffstat (limited to 'sys/arch/arc/dev')
-rw-r--r-- | sys/arch/arc/dev/asc.c | 4 | ||||
-rw-r--r-- | sys/arch/arc/dev/com_lbus.c | 12 | ||||
-rw-r--r-- | sys/arch/arc/dev/pccons.c | 9 |
3 files changed, 19 insertions, 6 deletions
diff --git a/sys/arch/arc/dev/asc.c b/sys/arch/arc/dev/asc.c index 961cdabe6d5..1e9105c569e 100644 --- a/sys/arch/arc/dev/asc.c +++ b/sys/arch/arc/dev/asc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: asc.c,v 1.8 1998/01/29 14:54:50 pefo Exp $ */ +/* $OpenBSD: asc.c,v 1.9 1998/03/16 09:38:39 pefo Exp $ */ /* $NetBSD: asc.c,v 1.10 1994/12/05 19:11:12 dean Exp $ */ /*- @@ -535,6 +535,7 @@ ascattach(parent, self, aux) */ switch (system_type) { case ACER_PICA_61: + case MAGNUM: bufsiz = 63 * 1024; /*XXX check if code handles 0 as 64k */ asc->dma = &asc->__dma; asc_dma_init(asc->dma); @@ -547,6 +548,7 @@ ascattach(parent, self, aux) */ switch (system_type) { case ACER_PICA_61: + case MAGNUM: asc->min_period = ASC_MIN_PERIOD25; asc->max_period = ASC_MAX_PERIOD25; asc->ccf = ASC_CCF(25); diff --git a/sys/arch/arc/dev/com_lbus.c b/sys/arch/arc/dev/com_lbus.c index 0b6109075b6..c88bce3df0c 100644 --- a/sys/arch/arc/dev/com_lbus.c +++ b/sys/arch/arc/dev/com_lbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: com_lbus.c,v 1.6 1998/03/01 16:19:13 niklas Exp $ */ +/* $OpenBSD: com_lbus.c,v 1.7 1998/03/16 09:38:41 pefo Exp $ */ /* * Copyright (c) 1993, 1994 Charles Hannum. @@ -141,6 +141,7 @@ com_localbus_attach(parent, self, aux) /* look for a NS 16550AF UART with FIFOs */ + sc->sc_fifolen = 1; bus_space_write_1(iot, ioh, com_fifo, FIFO_ENABLE | FIFO_RCV_RST | FIFO_XMT_RST | FIFO_TRIGGER_14); delay(100); @@ -150,10 +151,15 @@ com_localbus_attach(parent, self, aux) FIFO_TRIGGER_14) == FIFO_TRIGGER_14) { SET(sc->sc_hwflags, COM_HW_FIFO); printf(": ns16550a, working fifo\n"); - } else + sc->sc_fifolen = 16; + } + else { printf(": ns16550, broken fifo\n"); - } else + } + } + else { printf(": ns8250 or ns16450, no fifo\n"); + } bus_space_write_1(iot, ioh, com_fifo, 0); /* disable interrupts */ diff --git a/sys/arch/arc/dev/pccons.c b/sys/arch/arc/dev/pccons.c index 63c7f3caae1..7e4b07dd537 100644 --- a/sys/arch/arc/dev/pccons.c +++ b/sys/arch/arc/dev/pccons.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pccons.c,v 1.18 1998/03/01 16:45:50 niklas Exp $ */ +/* $OpenBSD: pccons.c,v 1.19 1998/03/16 09:38:43 pefo Exp $ */ /* $NetBSD: pccons.c,v 1.89 1995/05/04 19:35:20 cgd Exp $ */ /*- @@ -493,6 +493,9 @@ pcprobe(parent, cfdata, aux) return(0); } + if(system_type == MAGNUM) + return(0); /* Magnums have different graphics */ + /* Enable interrupts and keyboard, etc. */ if (!kbc_put8042cmd(CMDBYTE)) { printf("pcprobe: command error\n"); @@ -856,7 +859,9 @@ pccnprobe(cp) /* initialize required fields */ cp->cn_dev = makedev(maj, 0); - if(system_type == ALGOR_P4032) { + if(system_type == ALGOR_P4032 || + system_type == ALGOR_P5064 || + system_type == MAGNUM) { cp->cn_pri = CN_DEAD; /* XXX For now... */ } else { |