Annotation of sys/arch/mvme68k/mvme68k/genassym.cf, Revision 1.1.1.1
1.1 nbrk 1: # $OpenBSD: genassym.cf,v 1.20 2004/09/29 07:34:42 miod Exp $
2:
3: #
4: # Copyright (c) 1995 Theo de Raadt
5: #
6: # Redistribution and use in source and binary forms, with or without
7: # modification, are permitted provided that the following conditions
8: # are met:
9: # 1. Redistributions of source code must retain the above copyright
10: # notice, this list of conditions and the following disclaimer.
11: # 2. Redistributions in binary form must reproduce the above copyright
12: # notice, this list of conditions and the following disclaimer in the
13: # documentation and/or other materials provided with the distribution.
14: #
15: # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
16: # OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17: # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18: # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
19: # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20: # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21: # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22: # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23: # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24: # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25: # SUCH DAMAGE.
26: #
27: # Copyright (c) 1982, 1990, 1993
28: # The Regents of the University of California. All rights reserved.
29: #
30: # Redistribution and use in source and binary forms, with or without
31: # modification, are permitted provided that the following conditions
32: # are met:
33: # 1. Redistributions of source code must retain the above copyright
34: # notice, this list of conditions and the following disclaimer.
35: # 2. Redistributions in binary form must reproduce the above copyright
36: # notice, this list of conditions and the following disclaimer in the
37: # documentation and/or other materials provided with the distribution.
38: # 3. Neither the name of the University nor the names of its contributors
39: # may be used to endorse or promote products derived from this software
40: # without specific prior written permission.
41: #
42: # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
43: # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
44: # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
45: # ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
46: # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
47: # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
48: # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
49: # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
50: # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
51: # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
52: # SUCH DAMAGE.
53: #
54: # @(#)genassym.c 8.3 (Berkeley) 1/4/94
55: #
56:
57: include <sys/param.h>
58: include <sys/buf.h>
59: include <sys/proc.h>
60: include <sys/mbuf.h>
61: include <sys/msgbuf.h>
62: include <sys/syscall.h>
63: include <sys/types.h>
64: include <sys/user.h>
65:
66: include <uvm/uvm_extern.h>
67:
68: include <machine/cpu.h>
69: include <machine/psl.h>
70: include <machine/nvram.h>
71: include <machine/reg.h>
72: include <machine/autoconf.h>
73: include <machine/prom.h>
74: include <machine/pte.h>
75:
76: # general constants
77: export USPACE
78: export PGSHIFT
79: export USRSTACK
80:
81: # proc fields and values
82: struct proc
83: member P_MD_FLAGS p_md.md_flags
84: member P_MD_REGS p_md.md_regs
85:
86: # PSL values
87: export PSL_S
88: export PSL_IPL7
89: export PSL_LOWIPL
90: export PSL_USER
91: define SPL1 PSL_S | PSL_IPL1
92:
93: # pte/ste bits
94: export PG_FRAME
95:
96: # pcb fields
97: struct pcb
98: member pcb_ps
99: member pcb_usp
100: member pcb_regs
101: member PCB_FPCTX pcb_fpregs
102: define SIZEOF_PCB sizeof(struct pcb)
103:
104: # exception frame size
105: define FR_SIZE sizeof(struct trapframe)
106:
107: define SIZEOF_MVMEPROM_BRDID sizeof(struct mvmeprom_brdid)
108: define MVMEPROM_BRDID_MODEL offsetof(struct mvmeprom_brdid, model)
109:
110: struct nvram_147 NVRAM_147_
111: member ether
112: member emem
113:
114: export INTIOBASE_147
115: export INTIOBASE_162
116: export INTIOSIZE_147
117: export INTIOSIZE_162
118:
119: export CPU_147
120: export CPU_162
121: export CPU_166
122: export CPU_167
123: export CPU_172
124: export CPU_177
125:
126: struct prom_netctrl NETCTRL_
127: member dev
128: member ctrl
129: member cmd
130: member addr
131: member len
CVSweb