Annotation of sys/arch/sparc/sparc/genassym.cf, Revision 1.1.1.1
1.1 nbrk 1: # $OpenBSD: genassym.cf,v 1.20 2007/05/08 07:23:18 art Exp $
2: # $NetBSD: genassym.cf,v 1.2 1997/06/28 19:59:04 pk Exp $
3:
4: #
5: # Copyright (c) 1997 Christos Zoulas. All rights reserved.
6: # Copyright (c) 1992, 1993
7: # The Regents of the University of California. All rights reserved.
8: #
9: # This software was developed by the Computer Systems Engineering group
10: # at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
11: # contributed to Berkeley.
12: #
13: # All advertising materials mentioning features or use of this software
14: # must display the following acknowledgement:
15: # This product includes software developed by the University of
16: # California, Lawrence Berkeley Laboratory.
17: #
18: # Redistribution and use in source and binary forms, with or without
19: # modification, are permitted provided that the following conditions
20: # are met:
21: # 1. Redistributions of source code must retain the above copyright
22: # notice, this list of conditions and the following disclaimer.
23: # 2. Redistributions in binary form must reproduce the above copyright
24: # notice, this list of conditions and the following disclaimer in the
25: # documentation and/or other materials provided with the distribution.
26: # 3. Neither the name of the University nor the names of its contributors
27: # may be used to endorse or promote products derived from this software
28: # without specific prior written permission.
29: #
30: # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
31: # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
32: # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
33: # ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
34: # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
35: # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
36: # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
37: # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
38: # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
39: # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
40: # SUCH DAMAGE.
41: #
42: # @(#)genassym.c 8.1 (Berkeley) 6/11/93
43: #
44:
45: include <sys/param.h>
46: include <sys/buf.h>
47: include <sys/proc.h>
48: include <sys/mbuf.h>
49: include <sys/msgbuf.h>
50: include <sys/syscall.h>
51: include <sys/user.h>
52: include <sys/device.h>
53: include <sys/disklabel.h>
54: include <sys/disk.h>
55:
56: include <uvm/uvm_extern.h>
57:
58: include <machine/pmap.h>
59: include <machine/cpu.h>
60:
61: include <machine/oldmon.h>
62: include <machine/bsd_openprom.h>
63:
64: include <sparc/sparc/cpuvar.h>
65:
66: include <dev/ic/am7930reg.h>
67: include <sparc/dev/amd7930var.h>
68:
69: include <sparc/dev/fdreg.h>
70: include <sparc/dev/fdvar.h>
71:
72: # general constants
73: export SUN4_PGSHIFT
74: export SUN4CM_PGSHIFT
75: export USRSTACK
76: export IOSPACE_BASE
77: export VM_MIN_KERNEL_ADDRESS
78:
79: # proc fields and values
80: struct proc
81: member p_addr
82: member p_stat
83: member p_wchan
84: member p_vmspace
85:
86: export SRUN
87: export SONPROC
88:
89: # VM structure fields
90: define VM_PMAP offsetof(struct vmspace, vm_map.pmap)
91: struct pmap
92: member PMAP_CTX pm_ctx
93: member PMAP_CTXNUM pm_ctxnum
94:
95: # interrupt/fault metering
96: struct uvmexp V_
97: member swtch
98: member INTR intrs
99: member faults
100:
101: # CPU info structure
102: struct cpu_softc
103: member CPUINFO_GETSYNCFLT get_syncflt
104: member CPUINFO_GETASYNCFLT get_asyncflt
105: member CPUINFO_SYNCFLTDUMP syncfltdump
106: member CPUINFO_PURE_VCACHE_FLS pure_vcache_flush
107: member CPUINFO_CURPROC ci.ci_curproc
108:
109: # PTE bits and related information
110: export PG_W
111: export PG_VSHIFT
112: export PG_PROTSHIFT
113: export PG_PROTUREAD
114: export PG_PROTUWRITE
115: if defined(SUN4M)
116: export SRMMU_TETYPE
117: export SRMMU_TEPTE
118: export SRMMU_PROT_MASK
119: export PPROT_R_RW
120: export PPROT_RX_RX
121: export PPROT_RWX_RWX
122: export PPROT_WRITE
123: endif
124:
125: # FPU state
126: struct fpstate
127: member fs_regs
128: member fs_fsr
129: member fs_qsize
130: member fs_queue
131: export FSR_QNE
132:
133: # system calls
134: export SYS_sigreturn
135: export SYS_execve
136: export SYS_exit
137:
138: # errno
139: export EFAULT
140: export ENAMETOOLONG
141:
142: # PCB fields
143: struct pcb
144: member pcb_nsaved
145: member pcb_onfault
146: member pcb_psr
147: member pcb_rw
148: member pcb_sp
149: member pcb_pc
150: member pcb_uw
151: member pcb_wim
152: member pcb_wcookie
153:
154: # interrupt enable register PTE
155: define IE_REG_PTE_PG (PG_V | PG_W | PG_S | PG_NC | PG_OBIO)
156:
157: # intrhand fields.
158: struct intrhand
159: member ih_fun
160: member ih_arg
161: member ih_ipl
162: member ih_next
163: member IH_COUNT ih_count.ec_count
164:
165: ifdef notyet
166: # ZSCC interrupt fields
167: struct zs_softc Z
168: member sc_a
169: member sc_b
170: struct zs_line
171: member zl_wreg
172: member zl_tbc
173: member zl_tba
174: member zl_rbput
175: member zl_rbuf
176: define ZSRR1_DO_bit ffs(ZSRR1_DO) - 1
177: endif
178:
179: # audio trap handler fields
180: struct auio
181: member au_amd
182: member au_rdata
183: member au_rend
184: member au_pdata
185: member au_pend
186: member AU_COUNT au_ih.ih_count.ec_count
187:
188: struct amd7930 AMD_
189: member ir
190: member bbrb
191: member bbtb
192:
193: export PROM_BASE
194:
195: struct promvec
196: member pv_nodeops
197: member pv_halt
198: member PV_EVAL pv_fortheval.v0_eval
199: member pv_romvec_vers
200:
201: struct nodeops
202: member no_nextnode
203: member no_getprop
204:
205: struct om_vector OLDMON_
206: member printf
207: member HALT exitToMon
208:
209: # floppy trap handler fields
210: struct fdcio
211: member FDC_REG_MSR fdcio_reg_msr
212: member FDC_REG_FIFO fdcio_reg_fifo
213: member FDC_ITASK fdcio_itask
214: member FDC_ISTATUS fdcio_istatus
215: member FDC_STATUS fdcio_status
216: member FDC_NSTAT fdcio_nstat
217: member FDC_DATA fdcio_data
218: member FDC_TC fdcio_tc
219: member FDC_COUNT fdcio_ih.ih_count.ec_count
CVSweb