Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/luna68k/luna68k Use the same address as LUNA to pro...



details:   https://anonhg.NetBSD.org/src/rev/b43eb0f26220
branches:  trunk
changeset: 325901:b43eb0f26220
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat Jan 11 01:43:22 2014 +0000

description:
Use the same address as LUNA to probe LANCE on LUNA-II.

It looks the device is mapped at both regions.
4.4BSD/luna68k probes it at 0xf1000000, but UniOS-Mach for LUNA-II
attaches the lance at 0xf0000000.  It is probably because
the UniOS needs to map DS1220 NVRAM (mapped at 0xf1000004 and
used to store the MAC address) to the different kernel page,
but there is no reason for us to use different addresses.
(Note our bootloader already use the same address for both machines.)

This change will make (forthcoming) booted device check easier.

diffstat:

 sys/arch/luna68k/luna68k/mainbus.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 1bcbb6dc1fdf -r b43eb0f26220 sys/arch/luna68k/luna68k/mainbus.c
--- a/sys/arch/luna68k/luna68k/mainbus.c        Sat Jan 11 00:30:23 2014 +0000
+++ b/sys/arch/luna68k/luna68k/mainbus.c        Sat Jan 11 01:43:22 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mainbus.c,v 1.12 2013/09/23 17:11:22 tsutsui Exp $ */
+/* $NetBSD: mainbus.c,v 1.13 2014/01/11 01:43:22 tsutsui Exp $ */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.12 2013/09/23 17:11:22 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.13 2014/01/11 01:43:22 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -50,7 +50,7 @@
 
 static const struct mainbus_attach_args luna2_devs[] = {
        { "clock",  0x45000000, -1 },   /* Dallas TimeKeeper */
-       { "le",     0xf0000000, 3 },    /* Am7990 */
+       { "le",     0xf1000000, 3 },    /* Am7990 */
        { "sio",    0x51000000, 6 },    /* uPD7201A */
        { "fb",     0xc1100000, -1 },   /* BrookTree RAMDAC */
        { "spc",    0xe1000000, 2 },    /* internal MB89352 */



Home | Main Index | Thread Index | Old Index