summaryrefslogtreecommitdiff
path: root/sys/arch/arc/dev
diff options
context:
space:
mode:
authorPer Fogelstrom <pefo@cvs.openbsd.org>1998-01-28 13:46:39 +0000
committerPer Fogelstrom <pefo@cvs.openbsd.org>1998-01-28 13:46:39 +0000
commitf66efdaa0ee892ee683d1f77196728dd915db7c0 (patch)
tree95abaee36773f8e27e6f5cf217fa840b457f12c9 /sys/arch/arc/dev
parentfbd6c9ead48be65a615a557d3d9e610d26a02fb9 (diff)
Moving around files for new mips arch layout
Diffstat (limited to 'sys/arch/arc/dev')
-rw-r--r--sys/arch/arc/dev/asc.c11
-rw-r--r--sys/arch/arc/dev/pccons.c44
2 files changed, 34 insertions, 21 deletions
diff --git a/sys/arch/arc/dev/asc.c b/sys/arch/arc/dev/asc.c
index 2a515e7a28f..5ab32e0f1ca 100644
--- a/sys/arch/arc/dev/asc.c
+++ b/sys/arch/arc/dev/asc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: asc.c,v 1.6 1997/08/01 23:39:23 deraadt Exp $ */
+/* $OpenBSD: asc.c,v 1.7 1998/01/28 13:46:04 pefo Exp $ */
/* $NetBSD: asc.c,v 1.10 1994/12/05 19:11:12 dean Exp $ */
/*-
@@ -138,16 +138,17 @@
#include <machine/cpu.h>
#include <machine/autoconf.h>
+#include <mips/archtype.h>
+
#include <arc/dev/dma.h>
#include <arc/dev/scsi.h>
#include <arc/dev/ascreg.h>
#include <arc/pica/pica.h>
-#include <arc/arc/arctype.h>
#define readback(a) { register int foo; foo = (a); }
-extern int cputype;
+extern int system_type;
/*
* In 4ns ticks.
@@ -533,7 +534,7 @@ ascattach(parent, self, aux)
* 1) how to do dma
* 2) timing based on chip clock frequency
*/
- switch (cputype) {
+ switch (system_type) {
case ACER_PICA_61:
bufsiz = 63 * 1024; /*XXX check if code handles 0 as 64k */
asc->dma = &asc->__dma;
@@ -545,7 +546,7 @@ ascattach(parent, self, aux)
/*
* Now for timing. The pica has a 25Mhz
*/
- switch (cputype) {
+ switch (system_type) {
case ACER_PICA_61:
asc->min_period = ASC_MIN_PERIOD25;
asc->max_period = ASC_MAX_PERIOD25;
diff --git a/sys/arch/arc/dev/pccons.c b/sys/arch/arc/dev/pccons.c
index 58a057f54da..55308d76511 100644
--- a/sys/arch/arc/dev/pccons.c
+++ b/sys/arch/arc/dev/pccons.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pccons.c,v 1.15 1997/05/19 16:01:07 pefo Exp $ */
+/* $OpenBSD: pccons.c,v 1.16 1998/01/28 13:46:05 pefo Exp $ */
/* $NetBSD: pccons.c,v 1.89 1995/05/04 19:35:20 cgd Exp $ */
/*-
@@ -71,8 +71,10 @@
#include <machine/autoconf.h>
#include <machine/display.h>
#include <machine/pccons.h>
-#include <arc/arc/arctype.h>
-#include <arc/arc/arcbios.h>
+
+#include <mips/archtype.h>
+#include <arch/mips/mips/arcbios.h>
+
#include <arc/pica/pica.h>
#include <arc/dti/desktech.h>
@@ -80,7 +82,7 @@
#include <arc/isa/isa_machdep.h>
#include <machine/kbdreg.h>
-extern int cputype;
+extern int system_type;
#define XFREE86_BUG_COMPAT
@@ -579,7 +581,7 @@ pcattach(parent, self, aux)
printf(": %s\n", vs.color ? "color" : "mono");
do_async_update(1);
- switch(cputype) {
+ switch(system_type) {
case ACER_PICA_61:
BUS_INTR_ESTABLISH(ca, pcintr, (void *)(long)sc);
break;
@@ -858,7 +860,7 @@ pccnprobe(cp)
/* initialize required fields */
cp->cn_dev = makedev(maj, 0);
- if(cputype == ALGOR_P4032) {
+ if(system_type == ALGOR_P4032) {
cp->cn_pri = CN_DEAD; /* XXX For now... */
}
else {
@@ -876,7 +878,7 @@ pccninit(cp)
* For now, don't screw with it.
*/
/* crtat = 0; */
- switch(cputype) {
+ switch(system_type) {
case ACER_PICA_61:
mono_base += PICA_V_LOCAL_VIDEO_CTRL;
@@ -888,14 +890,15 @@ pccninit(cp)
break;
case DESKSTATION_TYNE:
- mono_base += TYNE_V_ISA_IO;
- mono_buf += TYNE_V_ISA_MEM;
- cga_base += TYNE_V_ISA_IO;
- cga_buf += TYNE_V_ISA_MEM;
- kbd_cmdp = TYNE_V_ISA_IO + 0x64;
- kbd_datap = TYNE_V_ISA_IO + 0x60;
- outb(TYNE_V_ISA_IO + 0x3ce, 6); /* Correct video mode */
- outb(TYNE_V_ISA_IO + 0x3cf, inb(TYNE_V_ISA_IO + 0x3cf) | 0xc);
+ mono_base += arc_bus_io.bus_base;
+ mono_buf += arc_bus_mem.bus_base;
+ cga_base += arc_bus_io.bus_base;
+ cga_buf += arc_bus_mem.bus_base;
+ kbd_cmdp = arc_bus_io.bus_base + 0x64;
+ kbd_datap = arc_bus_io.bus_base + 0x60;
+ outb(arc_bus_io.bus_base + 0x3ce, 6); /* Correct video mode */
+ outb(arc_bus_io.bus_base + 0x3cf,
+ inb(arc_bus_io.bus_base + 0x3cf) | 0xc);
kbc_put8042cmd(CMDBYTE); /* Want XT codes.. */
break;
@@ -908,6 +911,15 @@ pccninit(cp)
kbd_datap = arc_bus_io.bus_base + 0x60;
kbc_put8042cmd(CMDBYTE); /* Want XT codes.. */
break;
+
+ case SNI_RM200:
+ mono_base += arc_bus_io.bus_base;
+ mono_buf += arc_bus_mem.bus_base;
+ cga_base += arc_bus_io.bus_base;
+ cga_buf += arc_bus_mem.bus_base;
+ kbd_cmdp = arc_bus_io.bus_base + 0x64;
+ kbd_datap = arc_bus_io.bus_base + 0x60;
+ break;
}
}
@@ -1896,7 +1908,7 @@ pcmmap(dev, offset, nprot)
int nprot;
{
- switch(cputype) {
+ switch(system_type) {
case ACER_PICA_61:
if (offset >= 0xa0000 && offset < 0xc0000)