Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/sparc64 Remove unused file.



details:   https://anonhg.NetBSD.org/src/rev/a980d3d92d39
branches:  trunk
changeset: 525848:a980d3d92d39
user:      eeh <eeh%NetBSD.org@localhost>
date:      Thu Apr 18 17:24:09 2002 +0000

description:
Remove unused file.

diffstat:

 sys/arch/sparc64/sparc64/cpuvar.h |  288 --------------------------------------
 1 files changed, 0 insertions(+), 288 deletions(-)

diffs (292 lines):

diff -r c19bb6a1ffe8 -r a980d3d92d39 sys/arch/sparc64/sparc64/cpuvar.h
--- a/sys/arch/sparc64/sparc64/cpuvar.h Thu Apr 18 17:19:12 2002 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,288 +0,0 @@
-/*     $NetBSD: cpuvar.h,v 1.3 2001/12/04 00:53:20 darrenr Exp $ */
-
-/*
- *  Copyright (c) 1996 The NetBSD Foundation, Inc.
- *  All rights reserved.
- *
- *  This code is derived from software contributed to The NetBSD Foundation
- *  by Paul Kranenburg.
- *
- *  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 NetBSD
- *         Foundation, Inc. and its contributors.
- *  4. Neither the name of The NetBSD Foundation 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 NETBSD FOUNDATION, INC. 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 FOUNDATION 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.
- */
-
-#ifndef _sparc64_cpuvar_h
-#define _sparc64_cpuvar_h
-
-#if defined(_KERNEL_OPT)
-#include "opt_sparc_arch.h"
-#endif
-
-#include <sys/device.h>
-
-#include <sparc64/sparc64/cache.h>     /* for cacheinfo */
-
-/*
- * CPU/MMU module information.
- * There is one of these for each "mainline" CPU module we support.
- * The information contained in the structure is used only during
- * auto-configuration of the CPUs; some fields are copied into the
- * per-cpu data structure (cpu_softc) for easy access during normal
- * operation.
- */
-struct cpu_softc;
-struct module_info {
-       int  cpu_type;
-       enum vactype vactype;
-       void (*cpu_match)__P((struct cpu_softc *, struct module_info *, int));
-       void (*getcacheinfo)__P((struct cpu_softc *sc, int node));
-       void (*hotfix) __P((struct cpu_softc *));
-       void (*mmu_enable)__P((void));
-       void (*cache_enable)__P((void));
-       int  ncontext;                  /* max. # of contexts (we use) */
-
-       void (*get_faultstatus)__P((void));
-       void (*cache_flush)__P((caddr_t, u_int));
-       void (*vcache_flush_page)__P((int));
-       void (*vcache_flush_segment)__P((int, int));
-       void (*vcache_flush_region)__P((int));
-       void (*vcache_flush_context)__P((void));
-       void (*pcache_flush_line)__P((int, int));
-};
-
-
-/*
- * The cpu_softc structure. This structure maintains information about one
- * currently installed CPU (there may be several of these if the machine
- * supports multiple CPUs, as on some Sun4m architectures). The information
- * in this structure supercedes the old "cpumod", "mmumod", and similar
- * fields.
- */
-
-struct cpu_softc {
-       struct device   dv;             /* generic device info */
-
-       int             node;           /* PROM node for this CPU */
-
-       /* CPU information */
-       char            *cpu_name;      /* CPU model */
-       int             cpu_impl;       /* CPU implementation code */
-       int             cpu_vers;       /* CPU version code */
-       int             mmu_impl;       /* MMU implementation code */
-       int             mmu_vers;       /* MMU version code */
-       int             master;         /* 1 if this is bootup CPU */
-
-       int             id;             /* Module ID for MP systems */
-       int             bus;            /* 1 if CPU is on MBus */
-       int             mxcc;           /* 1 if a MBus-level MXCC is present */
-
-       caddr_t         mailbox;        /* VA of CPU's mailbox */
-
-
-       int             mmu_ncontext;   /* Number of contexts supported */
-       int             mmu_nregion;    /* Number of regions supported */
-       int             mmu_nsegment;   /* [4/4c] Segments */
-       int             mmu_npmeg;      /* [4/4c] Pmegs */
-       int             sun4_mmu3l;     /* [4]: 3-level MMU present */
-#if defined(SUN4_MMU3L)
-#define HASSUN4_MMU3L  (cpuinfo.sun4_mmu3l)
-#else
-#define HASSUN4_MMU3L  (0)
-#endif
-
-       /* Context administration */
-       int             *ctx_tbl;       /* [4m] SRMMU-edible context table */
-       union ctxinfo   *ctxinfo;
-       union ctxinfo   *ctx_freelist;  /* context free list */
-       int             ctx_kick;       /* allocation rover when none free */
-       int             ctx_kickdir;    /* ctx_kick roves both directions */
-
-       /* MMU tables that map `cpuinfo'' on each CPU */
-       int             *L1_ptps;       /* XXX */
-
-/* XXX - of these, we currently use only cpu_type */
-       int             arch;           /* Architecture: CPU_SUN4x */
-       int             class;          /* Class: SuperSPARC, microSPARC... */
-       int             classlvl;       /* Iteration in class: 1, 2, etc. */
-       int             classsublvl;    /* stepping in class (version) */
-       int             cpu_type;       /* Type: see CPUTYP_xxx below */
-
-       int             hz;             /* Clock speed */
-
-       /* Cache information */
-       struct cacheinfo        cacheinfo;      /* see cache.h */
-
-       /* FPU information */
-       int             fpupresent;     /* true if FPU is present */
-       int             fpuvers;        /* FPU revision */
-
-       /* various flags to workaround anomalies in chips */
-       int             flags;          /* see CPUFLG_xxx, below */
-
-       /* Per processor counter register (sun4m only) */
-       struct counter_4m       *counterreg_4m;
-
-       /*
-        * The following pointers point to processes that are somehow
-        * associated with this CPU--running on it, using its FPU,
-        * etc.
-        *
-        * XXXMP: much more needs to go here
-        */
-       struct  proc    *fpproc;                /* FPU owner */
-
-       /*
-        * The following are function pointers to do interesting CPU-dependent
-        * things without having to do type-tests all the time
-        */
-
-       /* bootup things: access to physical memory */
-       u_int   (*read_physmem) __P((u_int addr, int space));
-       void    (*write_physmem) __P((u_int addr, u_int data));
-       void    (*cache_tablewalks) __P((void));
-       void    (*mmu_enable) __P((void));
-       void    (*hotfix) __P((struct cpu_softc *));
-
-       /* locore defined: */
-       void    (*get_faultstatus) __P((void));
-
-       /* Cache handling functions */
-       void    (*cache_enable) __P((void));
-       void    (*cache_flush)__P((caddr_t, u_int));
-       void    (*vcache_flush_page)__P((int));
-       void    (*vcache_flush_segment)__P((int, int));
-       void    (*vcache_flush_region)__P((int));
-       void    (*vcache_flush_context)__P((void));
-       void    (*pcache_flush_line)__P((int, int));
-
-#ifdef SUN4M
-       /* hardware-assisted block operation routines */
-       void            (*hwbcopy)
-                               __P((const void *from, void *to, size_t len));
-       void            (*hwbzero) __P((void *buf, size_t len));
-
-       /* routine to clear mbus-sbus buffers */
-       void            (*mbusflush) __P((void));
-#endif
-
-       /* XXX: Add more here! */
-};
-
-/*
- * CPU architectures
- */
-#define CPUARCH_UNKNOWN                0
-#define CPUARCH_SUN4           1
-#define CPUARCH_SUN4C          2
-#define CPUARCH_SUN4M          3
-#define        CPUARCH_SUN4D           4
-#define CPUARCH_SUN4U          5
-
-/*
- * CPU classes
- */
-#define CPUCLS_UNKNOWN         0
-
-#if defined(SUN4)
-#define CPUCLS_SUN4            1
-#endif
-
-#if defined(SUN4C)
-#define CPUCLS_SUN4C           5
-#endif
-
-#if defined(SUN4M)
-#define CPUCLS_MICROSPARC      10      /* MicroSPARC-II */
-#define CPUCLS_SUPERSPARC      11      /* Generic SuperSPARC */
-#define CPUCLS_HYPERSPARC      12      /* Ross HyperSPARC RT620 */
-#endif
-
-/*
- * CPU busses
- */
-
-#define CPU_NONE               0       /* No particular bus */
-#define CPU_MBUS               1       /* SBUS attached */
-#define CPU_UPA                        2       /* UPA bus attached */
-
-/*
- * CPU types. Each of these should uniquely identify one platform/type of
- * system, i.e. "MBus-based 75 MHz SuperSPARC-II with ECache" is
- * CPUTYP_SS2_MBUS_MXCC. The general form is
- *     CPUTYP_proctype_bustype_cachetype_etc_etc
- *
- * XXX: This is far from complete/comprehensive
- * XXX: ADD SUN4, SUN4C TYPES
- */
-#define CPUTYP_UNKNOWN         0
-
-#define CPUTYP_4_100           1       /* Sun4/100 */
-#define CPUTYP_4_200           2       /* Sun4/200 */
-#define CPUTYP_4_300           3       /* Sun4/300 */
-#define CPUTYP_4_400           4       /* Sun4/400 */
-
-#define CPUTYP_SLC             10      /* SPARCstation SLC */
-#define CPUTYP_ELC             11      /* SPARCstation ELC */
-#define CPUTYP_IPX             12      /* SPARCstation IPX */
-#define CPUTYP_IPC             13      /* SPARCstation IPC */
-#define CPUTYP_1               14      /* SPARCstation 1 */
-#define CPUTYP_1P              15      /* SPARCstation 1+ */
-#define CPUTYP_2               16      /* SPARCstation 2 */
-
-/* We classify the Sun4m's by feature, not by model (XXX: do same for 4/4c) */
-#define        CPUTYP_SS2_MBUS_MXCC    20      /* SuperSPARC-II, Mbus, MXCC (SS20) */
-#define CPUTYP_SS1_MBUS_MXCC   21      /* SuperSPARC-I, Mbus, MXCC (SS10) */
-#define CPUTYP_SS2_MBUS_NOMXCC 22      /* SuperSPARC-II, on MBus w/o MXCC */
-#define CPUTYP_SS1_MBUS_NOMXCC 23      /* SuperSPARC-I, on MBus w/o MXCC */
-#define CPUTYP_MS2             24      /* MicroSPARC-2 */
-#define CPUTYP_MS1             25      /* MicroSPARC-1 */
-#define CPUTYP_HS_MBUS         26      /* MBus-based HyperSPARC */
-#define CPUTYP_CYPRESS         27      /* MBus-based Cypress */
-
-/*
- * CPU flags
- */
-#define CPUFLG_CACHEPAGETABLES 0x1     /* caching pagetables OK on Sun4m */
-#define CPUFLG_CACHEIOMMUTABLES        0x2     /* caching IOMMU translations OK */
-#define CPUFLG_CACHEDVMA       0x4     /* DVMA goes through cache */
-#define CPUFLG_SUN4CACHEBUG    0x8     /* trap page can't be cached */
-#define CPUFLG_CACHE_MANDATORY 0x10    /* if cache is on, don't use
-                                          uncached access */
-
-/*
- * Related function prototypes
- */
-void getcpuinfo __P((struct cpu_softc *sc, int node));
-void mmu_install_tables __P((struct cpu_softc *));
-void pmap_alloc_cpu __P((struct cpu_softc *));
-
-#define cpuinfo        (*(struct cpu_softc *)CPUINFO_VA)
-
-struct cpu_softc       **cpu_info;
-
-#endif /* _sparc_cpuvar_h */



Home | Main Index | Thread Index | Old Index