summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorthorpej <thorpej@NetBSD.org>2000-02-11 01:32:42 +0000
committerthorpej <thorpej@NetBSD.org>2000-02-11 01:32:42 +0000
commit29ae6dbe053c89c8d2d93f080b0b1eac53f5cc7c (patch)
treea37991a1987522a4b0d3d80e98ebd67ed06a8359 /sys/dev
parentddcdaa6b453be3561f13f43ab53a90662339e65d (diff)
We're given a K1SEG address already.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/tc/asc_tc.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/sys/dev/tc/asc_tc.c b/sys/dev/tc/asc_tc.c
index 892b040b37a..764d00fbe01 100644
--- a/sys/dev/tc/asc_tc.c
+++ b/sys/dev/tc/asc_tc.c
@@ -1,4 +1,4 @@
-/* $NetBSD: asc_tc.c,v 1.11 1999/11/15 05:25:57 nisimura Exp $ */
+/* $NetBSD: asc_tc.c,v 1.12 2000/02/11 01:32:42 thorpej Exp $ */
/*
* Copyright 1996 The Board of Trustees of The Leland Stanford
@@ -80,17 +80,14 @@ asc_tc_attach(parent, self, aux)
register asc_softc_t asc = (asc_softc_t) self;
u_char *buff;
int i, speed;
- tc_addr_t ascaddr;
int unit;
- /* Use uncached address for chip registers. */
- ascaddr = (tc_addr_t)MIPS_PHYS_TO_KSEG1(t->ta_addr);
unit = asc->sc_dev.dv_unit;
/*
* Initialize hw descriptor, cache some pointers
*/
- asc->regs = (asc_regmap_t *)(ascaddr + ASC_OFFSET_53C94);
+ asc->regs = (asc_regmap_t *)(t->ta_addr + ASC_OFFSET_53C94);
/*
* Set up machine dependencies.
@@ -101,8 +98,8 @@ asc_tc_attach(parent, self, aux)
/*
* Fall through for turbochannel option.
*/
- asc->dmar = (volatile int *)(ascaddr + ASC_OFFSET_DMAR);
- buff = (u_char *)(ascaddr + ASC_OFFSET_RAM);
+ asc->dmar = (volatile int *)(t->ta_addr + ASC_OFFSET_DMAR);
+ buff = (u_char *)(t->ta_addr + ASC_OFFSET_RAM);
/*
* Statically partition the DMA buffer between targets.