1 /* $NetBSD: scb.h,v 1.11 2000/07/10 09:14:34 ragge Exp $ */
4 * Copyright (c) 1994 Ludd, University of Lule}, Sweden.
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
15 * 3. All advertising materials mentioning features or use of this software
16 * must display the following acknowledgement:
17 * This product includes software developed at Ludd, University of Lule}.
18 * 4. The name of the author may not be used to endorse or promote products
19 * derived from this software without specific prior written permission
21 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
22 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
23 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
24 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
25 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
26 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
30 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36 * Definition of the System Control Block. More about it can be
37 * found in the Vax Architecture Reference Manual, section 6.6.
40 void *scb_unused
; /* First unused vector */
44 void *scb_privinst
; /* 10 Privileged Instruction fault */
48 void *scb_accessv
; /* 20 Access Control violation fault */
52 void *scb_compat
; /* 30 Compatibility instruction fault */
56 void *scb_chmk
; /* 40 CHMK */
60 void *scb_sbisilo
; /* 50 SBI Silo compare */
64 void *scb_memwtimo
; /* 60 Memory write timeout */
68 void *scb_unused6
; /* 70 unused */
72 void *scb_unused10
; /* 80 unused */
76 void *scb_softint4
; /* 90 Software interrupt level 4 */
80 void *scb_softint8
; /* A0 Software interrupt level 8 */
84 void *scb_softintc
; /* B0 Software interrupt level C */
88 void *scb_timer
; /* C0 Interval timer */
92 void *scb_unused14
; /* D0 Unused */
96 void *scb_unused18
; /* E0 Unused */
101 void *scb_cstint
; /* F0 Console storage transmit interrupt */
104 struct ivec_dsp
*scb_nexvec
[4][16]; /* Nexus interrupt vectors */
110 #define vecnum(bus, ipl, tr) (256+(ipl-0x14)*64+tr*4+bus*256)
113 * This struct is used when setting up interrupt vectors dynamically.
114 * It put a opaque 32 bit quanity on the stack and also has a placeholder
115 * for evcnt structure.
118 char pushr
; /* pushr */
119 char pushrarg
; /* $0x3f */
123 void (*hoppaddr
)(void *);
129 extern const struct ivec_dsp idsptch
;
130 extern struct scb
*scb
;
131 extern struct ivec_dsp
*scb_vec
;
132 extern struct evcnt devipl_intrcnts
[4]; /* IPL 2[0123] */
134 paddr_t
scb_init (paddr_t
);
135 int scb_vecref (int *, int *);
136 void scb_fake (int, int);
137 void scb_vecalloc (int, void(*)(void *), void *, int, struct evcnt
*);
140 #endif /* _VAX_SCB_H */