Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/tc Lance chip needs to be accessed in sparse address...
details: https://anonhg.NetBSD.org/src/rev/7e54c1ebf5e7
branches: trunk
changeset: 542122:7e54c1ebf5e7
user: mhitch <mhitch%NetBSD.org@localhost>
date: Wed Jan 22 08:06:21 2003 +0000
description:
Lance chip needs to be accessed in sparse address space for alpha. Fixes
Turbochannel Ethernet card on Alpha 3000 systems.
diffstat:
sys/dev/tc/if_le_tc.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r d77af769c93d -r 7e54c1ebf5e7 sys/dev/tc/if_le_tc.c
--- a/sys/dev/tc/if_le_tc.c Wed Jan 22 06:04:30 2003 +0000
+++ b/sys/dev/tc/if_le_tc.c Wed Jan 22 08:06:21 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_le_tc.c,v 1.15 2002/10/02 16:53:03 thorpej Exp $ */
+/* $NetBSD: if_le_tc.c,v 1.16 2003/01/22 08:06:21 mhitch Exp $ */
/*
* Copyright (c) 1996 Carnegie-Mellon University.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_le_tc.c,v 1.15 2002/10/02 16:53:03 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_le_tc.c,v 1.16 2003/01/22 08:06:21 mhitch Exp $");
#include "opt_inet.h"
@@ -97,7 +97,8 @@
* 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 = lance_copytobuf_contig;
Home |
Main Index |
Thread Index |
Old Index