summaryrefslogtreecommitdiff
path: root/sys/arch/arc/dev/asc.c
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/asc.c
parentfbd6c9ead48be65a615a557d3d9e610d26a02fb9 (diff)
Moving around files for new mips arch layout
Diffstat (limited to 'sys/arch/arc/dev/asc.c')
-rw-r--r--sys/arch/arc/dev/asc.c11
1 files changed, 6 insertions, 5 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;