Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mmeye/mmeye sync with bscreg.h



details:   https://anonhg.NetBSD.org/src/rev/cab5580fe384
branches:  trunk
changeset: 476457:cab5580fe384
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Thu Sep 16 21:20:20 1999 +0000

description:
sync with bscreg.h

diffstat:

 sys/arch/mmeye/mmeye/machdep.c |  32 ++++++++++++++++----------------
 1 files changed, 16 insertions(+), 16 deletions(-)

diffs (122 lines):

diff -r b10ea2dbf2f5 -r cab5580fe384 sys/arch/mmeye/mmeye/machdep.c
--- a/sys/arch/mmeye/mmeye/machdep.c    Thu Sep 16 21:18:55 1999 +0000
+++ b/sys/arch/mmeye/mmeye/machdep.c    Thu Sep 16 21:20:20 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.2 1999/09/14 11:20:54 tsubai Exp $       */
+/*     $NetBSD: machdep.c,v 1.3 1999/09/16 21:20:20 msaitoh Exp $      */
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -1354,7 +1354,7 @@
         * Area4 = Normal Memory
         * Area6 = Normal memory
         */
-       SHREG_BSC.BCR1.WORD  = 0x1010;
+       SHREG_BCR1 = 0x1010;
 #else
        /*
         * Drive RAS,CAS in stand by mode and bus release mode
@@ -1363,7 +1363,7 @@
         * Area4 = Normal Memory
         * Area6 = PCMCIA
         */
-       SHREG_BSC.BCR1.WORD  = 0x1013;
+       SHREG_BCR1 = 0x1013;
 #endif
 
 #define PCMCIA_16
@@ -1375,7 +1375,7 @@
         * Area1 = 8bit
         * Area2,3: Bus width = 32bit
         */
-       SHREG_BSC.BCR2.WORD  = 0x2af4;
+       SHREG_BCR2 = 0x2af4;
 #else
        /*
         * Bus Width
@@ -1384,14 +1384,14 @@
         * Area1 = 8bit
         * Area2,3: Bus width = 32bit
         */
-       SHREG_BSC.BCR2.WORD  = 0x16f4;
+       SHREG_BCR2 = 0x16f4;
 #endif
        /*
         * Idle cycle number in transition area and read to write
         * Area6 = 3, Area5 = 3, Area4 = 3, Area3 = 3, Area2 = 3
         * Area1 = 3, Area0 = 3
         */
-       SHREG_BSC.WCR1.WORD  = 0x3fff;
+       SHREG_WCR1 = 0x3fff;
 
 #if 0
        /*
@@ -1402,7 +1402,7 @@
         * Area 2,1 = 3
         * Area 0 = 6
         */
-       SHREG_BSC.WCR2.WORD  = 0x4bdd;
+       SHREG_WCR2 = 0x4bdd;
 #else
        /*
         * Wait cycle
@@ -1413,7 +1413,7 @@
         * Area 2,1 = 3
         * Area 0 = 6
         */
-       SHREG_BSC.WCR2.WORD  = 0xabfd;
+       SHREG_WCR2 = 0xabfd;
 #endif
 
        /*
@@ -1423,18 +1423,18 @@
         * Disable burst, Bus size=32bit, Column Address=10bit,Refresh ON
         * CAS before RAS refresh ON, EDO DRAM
         */
-       SHREG_BSC.MCR.WORD   = 0x6135;
-       /* SHREG_BSC.MCR.WORD   = 0x4135; */
+       SHREG_MCR = 0x6135;
+       /* SHREG_MCR = 0x4135; */
 
        /* DRAM Control Register */
-       SHREG_BSC.DCR.WORD   = 0x0000;
+       SHREG_DCR = 0x0000;
 
        /*
         * PCMCIA Control Register
         * OE/WE assert delay 3.5 cycle
         * OE/WE negate-address delay 3.5 cycle
         */
-       SHREG_BSC.PCR.WORD   = 0x00ff;
+       SHREG_PCR = 0x00ff;
 
        /*
         * Refresh Timer Control/Status Register
@@ -1443,23 +1443,23 @@
         * In following statement, the reason why high byte = 0xa5(a4 in RFCR)
         * is the rule of SH3 in writing these register .
         */
-       SHREG_BSC.RTCSR.WORD = 0xa594;
+       SHREG_RTCSR = 0xa594;
 
        /*
         * Refresh Timer Counter
         * initialize to 0
         */
-       SHREG_BSC.RTCNT      = 0xa500;
+       SHREG_RTCNT = 0xa500;
 
        /*
         * set Refresh Time Constant Register
         */
-       SHREG_BSC.RTCOR      = 0xa50d;
+       SHREG_RTCOR = 0xa50d;
 
        /*
         * init Refresh Count Register
         */
-       SHREG_BSC.RFCR       = 0xa400;
+       SHREG_RFCR = 0xa400;
 
        /*
         * Set Clock mode (make internal clock double speed)



Home | Main Index | Thread Index | Old Index