Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/vax Styr upp deklarationen av clockchippsparametrarna.



details:   https://anonhg.NetBSD.org/src/rev/a3d2112b0f49
branches:  trunk
changeset: 476111:a3d2112b0f49
user:      ragge <ragge%NetBSD.org@localhost>
date:      Mon Sep 06 19:52:52 1999 +0000

description:
Styr upp deklarationen av clockchippsparametrarna.

diffstat:

 sys/arch/vax/include/clock.h |  4 ++--
 sys/arch/vax/vax/ka410.c     |  5 +----
 sys/arch/vax/vax/ka43.c      |  6 +-----
 sys/arch/vax/vax/ka46.c      |  5 +----
 sys/arch/vax/vax/ka48.c      |  3 ---
 sys/arch/vax/vax/ka630.c     |  6 +-----
 sys/arch/vax/vax/ka820.c     |  4 +---
 7 files changed, 7 insertions(+), 26 deletions(-)

diffs (162 lines):

diff -r 425c9f52d62f -r a3d2112b0f49 sys/arch/vax/include/clock.h
--- a/sys/arch/vax/include/clock.h      Mon Sep 06 19:52:28 1999 +0000
+++ b/sys/arch/vax/include/clock.h      Mon Sep 06 19:52:52 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: clock.h,v 1.3 1999/08/30 21:18:17 ragge Exp $ */
+/*     $NetBSD: clock.h,v 1.4 1999/09/06 19:52:53 ragge Exp $ */
 /*
  * Copyright (c) 1996 Ludd, University of Lule}, Sweden.
  * All rights reserved.
@@ -65,7 +65,7 @@
 #define        CSRD_VRT        0200
 
 /* Var's used when dealing with clock chip */
-extern short *clk_page;
+extern volatile short *clk_page;
 extern int clk_adrshift, clk_tweak;
 
 /* Prototypes */
diff -r 425c9f52d62f -r a3d2112b0f49 sys/arch/vax/vax/ka410.c
--- a/sys/arch/vax/vax/ka410.c  Mon Sep 06 19:52:28 1999 +0000
+++ b/sys/arch/vax/vax/ka410.c  Mon Sep 06 19:52:52 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ka410.c,v 1.20 1999/08/07 10:36:48 ragge Exp $ */
+/*     $NetBSD: ka410.c,v 1.21 1999/09/06 19:52:53 ragge Exp $ */
 /*
  * Copyright (c) 1996 Ludd, University of Lule}, Sweden.
  * All rights reserved.
@@ -64,8 +64,6 @@
 static caddr_t l2cache;        /* mapped in address */
 static long    *cacr;          /* l2csche ctlr reg */
 
-extern  short *clk_page;
-
 /* 
  * Declaration of 410-specific calls.
  */
@@ -87,7 +85,6 @@
 void
 ka410_conf()
 {
-        extern  int clk_adrshift, clk_tweak;
        struct vs_cpu *ka410_cpu;
 
        ka410_cpu = (struct vs_cpu *)vax_map_physmem(VS_REGS, 1);
diff -r 425c9f52d62f -r a3d2112b0f49 sys/arch/vax/vax/ka43.c
--- a/sys/arch/vax/vax/ka43.c   Mon Sep 06 19:52:28 1999 +0000
+++ b/sys/arch/vax/vax/ka43.c   Mon Sep 06 19:52:52 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ka43.c,v 1.18 1999/08/07 10:36:48 ragge Exp $ */
+/*     $NetBSD: ka43.c,v 1.19 1999/09/06 19:52:53 ragge Exp $ */
 /*
  * Copyright (c) 1996 Ludd, University of Lule}, Sweden.
  * All rights reserved.
@@ -90,8 +90,6 @@
  * but before leving ka43_steal_pages() we reset them to virtual addresses.
  */
 static volatile struct ka43_cpu   *ka43_cpu    = (void*)KA43_CPU_BASE;
-extern  short *clk_page;
-
 static volatile u_int  *ka43_creg = (void*)KA43_CH2_CREG;
 static volatile u_int  *ka43_ctag = (void*)KA43_CT2_BASE;
 
@@ -303,8 +301,6 @@
 void
 ka43_conf()
 {
-        extern  int clk_adrshift, clk_tweak;
-
        printf("cpu: KA43\n");
        ka43_cpu = (void *)vax_map_physmem(VS_REGS, 1);
 
diff -r 425c9f52d62f -r a3d2112b0f49 sys/arch/vax/vax/ka46.c
--- a/sys/arch/vax/vax/ka46.c   Mon Sep 06 19:52:28 1999 +0000
+++ b/sys/arch/vax/vax/ka46.c   Mon Sep 06 19:52:52 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ka46.c,v 1.9 1999/08/07 10:36:48 ragge Exp $ */
+/*     $NetBSD: ka46.c,v 1.10 1999/09/06 19:52:53 ragge Exp $ */
 /*
  * Copyright (c) 1998 Ludd, University of Lule}, Sweden.
  * All rights reserved.
@@ -63,7 +63,6 @@
 static void    ka46_cache_enable __P((void));
 
 struct vs_cpu *ka46_cpu;
-extern  short *clk_page;
 
 /* 
  * Declaration of 46-specific calls.
@@ -85,8 +84,6 @@
 void
 ka46_conf()
 {
-        extern  int clk_adrshift, clk_tweak;
-
        printf("cpu: KA46\n");
        ka46_cpu = (void *)vax_map_physmem(VS_REGS, 1);
        printf("cpu: turning on floating point chip\n");
diff -r 425c9f52d62f -r a3d2112b0f49 sys/arch/vax/vax/ka48.c
--- a/sys/arch/vax/vax/ka48.c   Mon Sep 06 19:52:28 1999 +0000
+++ b/sys/arch/vax/vax/ka48.c   Mon Sep 06 19:52:52 1999 +0000
@@ -64,7 +64,6 @@
 static void    ka48_cache_enable __P((void));
 
 struct vs_cpu *ka48_cpu;
-extern  short *clk_page;
 
 /* 
  * Declaration of 48-specific calls.
@@ -86,8 +85,6 @@
 void
 ka48_conf()
 {
-        extern  int clk_adrshift, clk_tweak;
-
        printf("cpu: KA48\n");
        ka48_cpu = (void *)vax_map_physmem(VS_REGS, 1);
        printf("cpu: turning on floating point chip\n");
diff -r 425c9f52d62f -r a3d2112b0f49 sys/arch/vax/vax/ka630.c
--- a/sys/arch/vax/vax/ka630.c  Mon Sep 06 19:52:28 1999 +0000
+++ b/sys/arch/vax/vax/ka630.c  Mon Sep 06 19:52:52 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ka630.c,v 1.16 1999/08/07 10:36:48 ragge Exp $ */
+/*     $NetBSD: ka630.c,v 1.17 1999/09/06 19:52:52 ragge Exp $ */
 /*-
  * Copyright (c) 1982, 1988, 1990, 1993
  *     The Regents of the University of California.  All rights reserved.
@@ -59,8 +59,6 @@
 static void ka630_reboot __P((int));
 static void ka630_clrf __P((void));
 
-extern short *clk_page;
-
 struct cpu_dep ka630_calls = {
        0,
        ka630_mchk,
@@ -81,8 +79,6 @@
 void
 ka630_conf()
 {
-       extern  int clk_adrshift, clk_tweak;
-
        clk_adrshift = 0;       /* Addressed at short's... */
        clk_tweak = 0;          /* ...and no shifting */
        clk_page = (short *)vax_map_physmem((paddr_t)KA630CLK, 1);
diff -r 425c9f52d62f -r a3d2112b0f49 sys/arch/vax/vax/ka820.c
--- a/sys/arch/vax/vax/ka820.c  Mon Sep 06 19:52:28 1999 +0000
+++ b/sys/arch/vax/vax/ka820.c  Mon Sep 06 19:52:52 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ka820.c,v 1.16 1999/08/04 19:11:01 ragge Exp $ */
+/*     $NetBSD: ka820.c,v 1.17 1999/09/06 19:52:52 ragge Exp $ */
 /*
  * Copyright (c) 1988 Regents of the University of California.
  * All rights reserved.
@@ -125,8 +125,6 @@
 {
        struct bi_attach_args *ba = aux;
        register int csr;
-       extern  short *clk_page;
-       extern  int clk_adrshift, clk_tweak;
        u_short rev;
        extern  char cpu_model[];
 



Home | Main Index | Thread Index | Old Index