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 Remove old unused files.



details:   https://anonhg.NetBSD.org/src/rev/22ff3d61e7bc
branches:  trunk
changeset: 473871:22ff3d61e7bc
user:      ragge <ragge%NetBSD.org@localhost>
date:      Sun Jun 20 15:58:28 1999 +0000

description:
Remove old unused files.

diffstat:

 sys/arch/vax/boot/autoconf.c  |  198 ----------------------------
 sys/arch/vax/boot/boot.c      |  255 ------------------------------------
 sys/arch/vax/boot/conf.c      |  105 --------------
 sys/arch/vax/boot/ctu.c       |  181 -------------------------
 sys/arch/vax/boot/data.h      |   74 ----------
 sys/arch/vax/boot/devopen.c   |  144 --------------------
 sys/arch/vax/boot/if_le.c     |  295 ------------------------------------------
 sys/arch/vax/boot/if_qe.c     |  280 ---------------------------------------
 sys/arch/vax/boot/if_ze.c     |  283 ----------------------------------------
 sys/arch/vax/boot/ka410.h     |   82 -----------
 sys/arch/vax/boot/samachdep.h |   42 -----
 sys/arch/vax/boot/srt0.s      |   84 -----------
 sys/arch/vax/boot/start.s     |  190 ---------------------------
 13 files changed, 0 insertions(+), 2213 deletions(-)

diffs (truncated from 2265 to 300 lines):

diff -r 90fa88ed5136 -r 22ff3d61e7bc sys/arch/vax/boot/autoconf.c
--- a/sys/arch/vax/boot/autoconf.c      Sun Jun 20 15:52:51 1999 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,198 +0,0 @@
-/*     $NetBSD: autoconf.c,v 1.13 1999/03/09 12:57:57 ragge Exp $ */
-/*
- * Copyright (c) 1994, 1998 Ludd, University of Lule}, Sweden.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- *    must display the following acknowledgement:
- *     This product includes software developed at Ludd, University of Lule}.
- * 4. The name of the author may not be used to endorse or promote products
- *    derived from this software without specific prior written permission
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
- * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
- /* All bugs are subject to removal without further notice */
-               
-
-
-#include "sys/param.h"
-#include "../include/mtpr.h"
-#include "../include/sid.h"
-#include "vaxstand.h"
-
-int    nmba=0, nuba=0, nbi=0,nsbi=0,nuda=0;
-int    *mbaaddr, *ubaaddr, *biaddr;
-int    *udaaddr, *uioaddr, tmsaddr, *bioaddr;
-
-static int mba750[]={0xf28000,0xf2a000,0xf2c000};
-static int uba750[]={0xf30000,0xf32000};
-static int uio750[]={0xfc0000,0xf80000};
-static int uda750[]={0772150};
-
-/* 11/780's only have 4, 8600 have 8 of these. */
-/* XXX - all of these should be bound to physical addresses */
-static int mba780[]={0x20010000,0x20012000,0x20014000,0x20016000,
-       0x22010000,0x22012000,0x22014000,0x22016000};
-static int uba780[]={0, 0, 0, 0x20006000,0x20008000,0x2000a000,0x2000c000, 0,
-               0, 0, 0, 0, 0, 0, 0, 0, 
-               0, 0, 0, 0x22006000,0x22008000,0x2200a000,0x2200c000};
-static int uio780[]={0, 0, 0, 0x20100000,0x20140000,0x20180000,0x201c0000, 0,
-               0, 0, 0, 0, 0, 0, 0, 0, 
-               0, 0, 0, 0x22100000,0x22140000,0x22180000,0x221c0000};
-static int bi8200[]={0x20000000, 0x22000000, 0x24000000, 0x26000000,
-       0x28000000, 0x2a000000};
-static int bio8200[]={0x20400000};
-
-static int uba630[]={0x20087800};
-static int uio630[]={0x30000000};
-#define qbdev(csr) (((csr) & 017777)-0x10000000)
-static int uda630[]={qbdev(0772150),qbdev(0760334)};
-
-static int uba670[]={0x20040000};
-static int uio670[]={0x20000000};
-static int uda670[]={0x20004030,0x20004230};
-#define qb670dev(csr) (((csr) & 017777)+0x20000000)
-
-/*
- * Autoconf routine is really stupid; but it actually don't
- * need any intelligence. We just assume that all possible
- * devices exists on each cpu. Fast & easy.
- */
-
-autoconf()
-{
-       extern int memsz;
-
-       switch (vax_cputype) {
-
-       default:
-               printf("CPU type %d not supported by boot\n",vax_cputype);
-               printf("trying anyway...\n");
-               break;
-
-       case VAX_8600:
-               memsz = 0;
-               nmba = 8;
-               nuba = 32; /* XXX */
-               nuda = 1;
-               mbaaddr = mba780;
-               ubaaddr = uba780;
-               udaaddr = uda750;
-               uioaddr = uio780;
-               tmsaddr = 0774500;
-               break;
-
-       case VAX_780:
-               memsz = 0;
-               nmba = 4;
-               nuba = 4;
-               nuda = 1;
-               mbaaddr = mba780;
-               ubaaddr = uba780;
-               udaaddr = uda750;
-               uioaddr = uio780;
-               tmsaddr = 0774500;
-               break;
-
-       case VAX_750:
-               memsz = 0;
-               nmba = 3;
-               nuba = 2;
-               nuda = 1;
-               mbaaddr = mba750;
-               ubaaddr = uba750;
-               udaaddr = uda750;
-               uioaddr = uio750;
-               tmsaddr = 0774500;
-               break;
-
-       case VAX_650:   /* the same for uvaxIII */
-       case VAX_78032:
-               nuba = 1;
-               nuda = 2;
-               ubaaddr = uba630;
-               udaaddr = uda630;
-               uioaddr = uio630;
-               tmsaddr = qbdev(0774500);
-               break;
-
-       case VAX_8200:
-               memsz = 0;
-               nbi = 1;
-               biaddr = bi8200;
-               bioaddr = bio8200;
-                break;
-
-        case VAX_TYP_RIGEL:     /* we'll assume all Rigels are KA670s for now */
-                nuba = 1;
-                nuda = 2;
-                ubaaddr = uba670;
-                udaaddr = uda670;
-                uioaddr = uio670;
-                tmsaddr = qb670dev(0774500);
-                break;
-
-       case VAX_TYP_MARIAH:
-               switch (vax_boardtype) {
-               case VAX_BTYP_46: {
-                       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;
-                       }
-                       break;
-               }
-               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;
-                       }
-                       break;
-               }
-               break;
-
-       }
-}
-
-/*
- * Return seconds since sometime...
- * Some VAXen doesn't have TODR, return a fake value...
- */
-getsecs()
-{
-       static int fakesecs;
-       int todr = mfpr(PR_TODR);
-
-       if (todr)
-               return todr/100;
-       return ++fakesecs;
-}
diff -r 90fa88ed5136 -r 22ff3d61e7bc sys/arch/vax/boot/boot.c
--- a/sys/arch/vax/boot/boot.c  Sun Jun 20 15:52:51 1999 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,255 +0,0 @@
-/*     $NetBSD: boot.c,v 1.9 1998/08/22 09:16:45 ragge Exp $ */
-/*-
- * Copyright (c) 1982, 1986 The Regents of the University of California.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- *    must display the following acknowledgement:
- *     This product includes software developed by the University of
- *     California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
- *    may be used to endorse or promote products derived from this software
- *    without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- *     @(#)boot.c      7.15 (Berkeley) 5/4/91
- */
-
-#include "sys/param.h"
-#include "sys/reboot.h"
-#include "lib/libsa/stand.h"
-
-#define V750UCODE(x)    ((x>>8)&255)
-
-#include <a.out.h>
-
-/*
- * Boot program... arguments passed in r10 and r11 determine
- * whether boot stops to ask for system name and which device
- * boot comes from.
- */
-
-char line[100];
-volatile int devtype, bootdev;
-extern unsigned opendev;
-extern  unsigned *bootregs;
-
-Xmain()
-{
-       register howto asm("r11");
-       register bdev  asm("r10");
-       int io, retry, type;
-       extern  char vers[];
-
-       io=0;
-       bootdev=bdev;
-       autoconf();
-
-       if ((howto & RB_ASKNAME) == 0) {
-               type = (devtype >> B_TYPESHIFT) & B_TYPEMASK;
-               if ((unsigned)type < ndevs && devsw[type].dv_name)
-                       strcpy(line, "/netbsd");
-               else
-                       howto |= RB_SINGLE|RB_ASKNAME;
-       }
-
-       for (retry = 0;;) {
-               if (io >= 0)
-                       printf("\n%s\n", vers);
-               if (howto & RB_ASKNAME) {
-                       printf(": ");
-                       gets(line);
-                       if (line[0] == 0) {
-                               strcpy(line, "/netbsd");
-                               printf(": %s\n", line);
-                       }
-               } else
-                       printf(": %s\n", line);
-               io = open(line, 0);
-               if (io >= 0) {
-                       loadpcs();
-                       copyunix(howto, opendev, io);
-                       close(io);
-                       howto |= RB_SINGLE|RB_ASKNAME;
-               } else {
-                       printf("%s\n",strerror(errno));



Home | Main Index | Thread Index | Old Index