scb.h revision 1.5 1 1.5 ragge /* $NetBSD: scb.h,v 1.5 1999/01/19 21:04:48 ragge Exp $ */
2 1.2 cgd
3 1.1 ragge /*
4 1.1 ragge * Copyright (c) 1994 Ludd, University of Lule}, Sweden.
5 1.1 ragge * All rights reserved.
6 1.1 ragge *
7 1.1 ragge * Redistribution and use in source and binary forms, with or without
8 1.1 ragge * modification, are permitted provided that the following conditions
9 1.1 ragge * are met:
10 1.1 ragge * 1. Redistributions of source code must retain the above copyright
11 1.1 ragge * notice, this list of conditions and the following disclaimer.
12 1.1 ragge * 2. Redistributions in binary form must reproduce the above copyright
13 1.1 ragge * notice, this list of conditions and the following disclaimer in the
14 1.1 ragge * documentation and/or other materials provided with the distribution.
15 1.1 ragge * 3. All advertising materials mentioning features or use of this software
16 1.1 ragge * must display the following acknowledgement:
17 1.1 ragge * This product includes software developed at Ludd, University of Lule}.
18 1.1 ragge * 4. The name of the author may not be used to endorse or promote products
19 1.1 ragge * derived from this software without specific prior written permission
20 1.1 ragge *
21 1.1 ragge * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
22 1.1 ragge * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
23 1.1 ragge * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
24 1.1 ragge * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
25 1.1 ragge * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
26 1.1 ragge * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27 1.1 ragge * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28 1.1 ragge * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29 1.1 ragge * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
30 1.1 ragge * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 1.1 ragge */
32 1.1 ragge
33 1.1 ragge
34 1.4 ragge /*
35 1.4 ragge * Definition of the System Control Block. More about it can be
36 1.4 ragge * found in the Vax Architecture Reference Manual, section 6.6.
37 1.4 ragge */
38 1.1 ragge struct scb {
39 1.4 ragge void *scb_unused; /* First unused vector */
40 1.4 ragge void *scb_mcheck;
41 1.4 ragge void *scb_kspinv;
42 1.4 ragge void *scb_powfail;
43 1.4 ragge void *scb_privinst; /* 10 Privileged Instruction fault */
44 1.4 ragge void *scb_xfcinst;
45 1.4 ragge void *scb_resop;
46 1.4 ragge void *scb_resad;
47 1.4 ragge void *scb_accessv; /* 20 Access Control violation fault */
48 1.4 ragge void *scb_transinv;
49 1.4 ragge void *scb_trace;
50 1.4 ragge void *scb_breakp;
51 1.4 ragge void *scb_compat; /* 30 Compatibility instruction fault */
52 1.4 ragge void *scb_arith;
53 1.4 ragge void *scb_unused1;
54 1.4 ragge void *scb_unused2;
55 1.4 ragge void *scb_chmk; /* 40 CHMK */
56 1.4 ragge void *scb_chme;
57 1.4 ragge void *scb_chms;
58 1.4 ragge void *scb_chmu;
59 1.4 ragge void *scb_sbisilo; /* 50 SBI Silo compare */
60 1.4 ragge void *scb_cmrd;
61 1.4 ragge void *scb_sbialert;
62 1.4 ragge void *scb_sbifault;
63 1.4 ragge void *scb_memwtimo; /* 60 Memory write timeout */
64 1.4 ragge void *scb_unused3;
65 1.4 ragge void *scb_unused4;
66 1.4 ragge void *scb_unused5;
67 1.4 ragge void *scb_unused6; /* 70 unused */
68 1.4 ragge void *scb_unused7;
69 1.4 ragge void *scb_unused8;
70 1.4 ragge void *scb_unused9;
71 1.4 ragge void *scb_unused10; /* 80 unused */
72 1.4 ragge void *scb_softint1;
73 1.4 ragge void *scb_softint2;
74 1.4 ragge void *scb_softint3;
75 1.4 ragge void *scb_softint4; /* 90 Software interrupt level 4 */
76 1.4 ragge void *scb_softint5;
77 1.4 ragge void *scb_softint6;
78 1.4 ragge void *scb_softint7;
79 1.4 ragge void *scb_softint8; /* A0 Software interrupt level 8 */
80 1.4 ragge void *scb_softint9;
81 1.4 ragge void *scb_softinta;
82 1.4 ragge void *scb_softintb;
83 1.4 ragge void *scb_softintc; /* B0 Software interrupt level C */
84 1.4 ragge void *scb_softintd;
85 1.4 ragge void *scb_softinte;
86 1.4 ragge void *scb_softintf;
87 1.4 ragge void *scb_timer; /* C0 Interval timer */
88 1.4 ragge void *scb_unused11;
89 1.4 ragge void *scb_unused12;
90 1.4 ragge void *scb_unused13;
91 1.4 ragge void *scb_unused14; /* D0 Unused */
92 1.4 ragge void *scb_unused15;
93 1.4 ragge void *scb_unused16;
94 1.4 ragge void *scb_unused17;
95 1.4 ragge void *scb_unused18; /* E0 Unused */
96 1.4 ragge void *scb_unused19;
97 1.4 ragge void *scb_unused20;
98 1.4 ragge void *scb_unused21;
99 1.4 ragge void *scb_csrint;
100 1.4 ragge void *scb_cstint; /* F0 Console storage transmit interrupt */
101 1.4 ragge void *scb_ctrint;
102 1.4 ragge void *scb_cttint;
103 1.4 ragge struct ivec_dsp *scb_nexvec[4][16]; /* Nexus interrupt vectors */
104 1.1 ragge };
105 1.1 ragge
106 1.5 ragge #define SCB_KSTACK 0
107 1.5 ragge #define SCB_ISTACK 1
108 1.5 ragge
109 1.3 ragge #ifdef _KERNEL
110 1.3 ragge extern struct scb *scb;
111 1.5 ragge
112 1.5 ragge extern paddr_t scb_init __P((paddr_t));
113 1.5 ragge extern int scb_vecref __P((int *, int *));
114 1.5 ragge extern void scb_fake __P((int, int));
115 1.5 ragge extern void scb_vecalloc __P((int, void(*)(int), int, int));
116 1.3 ragge #endif
117