Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/vax/boot/boot Machines using KA48 must have memory ...



details:   https://anonhg.NetBSD.org/src/rev/bde5aa2f22ca
branches:  trunk
changeset: 471904:bde5aa2f22ca
user:      ragge <ragge%NetBSD.org@localhost>
date:      Wed Apr 14 16:19:03 1999 +0000

description:
Machines using KA48 must have memory mapped in, and use the same
addresses for console as KA46. From Michael Kukat.

diffstat:

 sys/arch/vax/boot/boot/autoconf.c |  18 ++++++++++++++++--
 sys/arch/vax/boot/boot/consio.c   |   4 ++--
 2 files changed, 18 insertions(+), 4 deletions(-)

diffs (62 lines):

diff -r 37167c3dc70c -r bde5aa2f22ca sys/arch/vax/boot/boot/autoconf.c
--- a/sys/arch/vax/boot/boot/autoconf.c Wed Apr 14 16:00:42 1999 +0000
+++ b/sys/arch/vax/boot/boot/autoconf.c Wed Apr 14 16:19:03 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autoconf.c,v 1.1 1999/03/06 16:36:05 ragge Exp $ */
+/*     $NetBSD: autoconf.c,v 1.2 1999/04/14 16:19:03 ragge Exp $ */
 /*
  * Copyright (c) 1994, 1998 Ludd, University of Lule}, Sweden.
  * All rights reserved.
@@ -198,6 +198,20 @@
                break;
 
        case VAX_TYP_SOC:
+               switch (vax_boardtype) {
+               case VAX_BTYP_48: {
+                       int *map, i;
+
+                       /* Map all 16MB of I/O space to low 16MB of memory */
+                       map = (int *)0x700000; /* XXX */
+                       *(int *)0x20080008 = (int)map; /* XXX */
+                       for (i = 0; i < 0x8000; i++)
+                               map[i] = 0x80000000 | i;
+                       }
+                       clk_adrshift = 1;
+                       clk_tweak = 2;
+                       break;
+               }
                break;
 
        }
@@ -222,4 +236,4 @@
                ;
        return REGPEEK(SEC_OFF) + REGPEEK(MIN_OFF) * SEC_PER_MIN;
 
-}
+}
\ No newline at end of file
diff -r 37167c3dc70c -r bde5aa2f22ca sys/arch/vax/boot/boot/consio.c
--- a/sys/arch/vax/boot/boot/consio.c   Wed Apr 14 16:00:42 1999 +0000
+++ b/sys/arch/vax/boot/boot/consio.c   Wed Apr 14 16:19:03 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: consio.c,v 1.2 1999/03/27 09:33:31 ragge Exp $ */
+/*     $NetBSD: consio.c,v 1.3 1999/04/14 16:19:03 ragge Exp $ */
 /*
  * Copyright (c) 1994, 1998 Ludd, University of Lule}, Sweden.
  * All rights reserved.
@@ -172,7 +172,6 @@
        case VAX_BTYP_49:
        case VAX_BTYP_410:        
        case VAX_BTYP_420:
-       case VAX_BTYP_48:
                put_fp = rom_putchar;
                get_fp = rom_getchar;
                test_fp = rom_testchar;
@@ -185,6 +184,7 @@
                break;
 
        case VAX_BTYP_46:
+       case VAX_BTYP_48:
                put_fp = rom_putchar;
                get_fp = rom_getchar;
                test_fp = rom_testchar;



Home | Main Index | Thread Index | Old Index