summaryrefslogtreecommitdiff
path: root/sys/dev/tc/if_le_tc.c
diff options
context:
space:
mode:
authorMartin Reindl <martin@cvs.openbsd.org>2005-10-11 06:03:19 +0000
committerMartin Reindl <martin@cvs.openbsd.org>2005-10-11 06:03:19 +0000
commit688795133e8ac5e2bbc5ed0eecdea1d80aad4d6e (patch)
tree99fba7123816774e6ad7c82e3913ca7ea6af7e10 /sys/dev/tc/if_le_tc.c
parentd0215d873747458b7b6831df41d8d62925db4b61 (diff)
TC le(4) needs to be accessed in sparse address space for alpha.
Should fix TC ethernet cards as noted by some people. from NetBSD ok miod@
Diffstat (limited to 'sys/dev/tc/if_le_tc.c')
-rw-r--r--sys/dev/tc/if_le_tc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/tc/if_le_tc.c b/sys/dev/tc/if_le_tc.c
index deb0c87ac63..de60195b9fd 100644
--- a/sys/dev/tc/if_le_tc.c
+++ b/sys/dev/tc/if_le_tc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_le_tc.c,v 1.6 2002/05/02 22:56:06 miod Exp $ */
+/* $OpenBSD: if_le_tc.c,v 1.7 2005/10/11 06:03:18 martin Exp $ */
/* $NetBSD: if_le_tc.c,v 1.12 2001/11/13 06:26:10 lukem Exp $ */
/*
@@ -90,7 +90,8 @@ le_tc_attach(parent, self, aux)
* It's on the turbochannel proper, or a kn02
* baseboard implementation of a TC option card.
*/
- lesc->sc_r1 = (struct lereg1 *)(d->ta_addr + LE_OFFSET_LANCE);
+ lesc->sc_r1 = (struct lereg1 *)
+ TC_DENSE_TO_SPARSE(TC_PHYS_TO_UNCACHED(d->ta_addr + LE_OFFSET_LANCE));
sc->sc_mem = (void *)(d->ta_addr + LE_OFFSET_RAM);
sc->sc_copytodesc = am7990_copytobuf_contig;