xref: /titanic_41/usr/src/uts/i86pc/ml/offsets.in (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
1\
2\ Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
3\ Use is subject to license terms.
4\
5\ CDDL HEADER START
6\
7\ The contents of this file are subject to the terms of the
8\ Common Development and Distribution License, Version 1.0 only
9\ (the "License").  You may not use this file except in compliance
10\ with the License.
11\
12\ You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
13\ or http://www.opensolaris.org/os/licensing.
14\ See the License for the specific language governing permissions
15\ and limitations under the License.
16\
17\ When distributing Covered Code, include this CDDL HEADER in each
18\ file and include the License file at usr/src/OPENSOLARIS.LICENSE.
19\ If applicable, add the following below this CDDL HEADER, with the
20\ fields enclosed by brackets "[]" replaced with your own identifying
21\ information: Portions Copyright [yyyy] [name of copyright owner]
22\
23\ CDDL HEADER END
24\
25
26#pragma ident	"%Z%%M%	%I%	%E% SMI"
27
28\
29\ offsets.in: input file to produce assym.h using the ctfstabs program
30\
31
32#ifndef	_GENASSYM
33#define	_GENASSYM
34#endif
35
36#define	SIZES	1
37
38#include <sys/types.h>
39#include <sys/bootsvcs.h>
40#include <sys/systm.h>
41#include <sys/sysinfo.h>
42#include <sys/user.h>
43#include <sys/thread.h>
44#include <sys/proc.h>
45#include <sys/cpuvar.h>
46#include <sys/tss.h>
47#include <sys/privregs.h>
48#include <sys/segments.h>
49#include <sys/devops.h>
50#include <sys/ddi_impldefs.h>
51#include <vm/as.h>
52#include <sys/avintr.h>
53#include <sys/pic.h>
54#include <sys/rm_platter.h>
55#include <sys/stream.h>
56#include <sys/strsubr.h>
57#include <sys/sunddi.h>
58#include <sys/modctl.h>
59#include <sys/traptrace.h>
60#include <sys/ontrap.h>
61#include <sys/lgrp.h>
62#include <sys/dtrace.h>
63
64proc		PROCSIZE
65	p_link
66	p_next
67	p_child
68	p_sibling
69	p_sig
70	p_flag
71	p_tlist
72	p_as
73	p_lockp
74	p_user
75	p_ldt
76	p_ldt_desc
77	p_model
78	p_agenttp
79
80_kthread	THREAD_SIZE
81	t_pcb			T_LABEL
82	t_lock
83	t_lockstat
84	t_lockp
85	t_lock_flush
86	t_kpri_req
87	t_oldspl
88	t_pri
89	t_pil
90	t_lwp
91	t_procp
92	t_link
93	t_state
94	t_mstate
95	t_preempt_lk
96	t_stk			T_STACK
97	t_swap
98	t_lwpchan.lc_wchan	T_WCHAN
99	t_flag			T_FLAGS
100	t_ctx
101	t_lofault
102	t_onfault
103	t_ontrap
104	t_cpu
105	t_lpl
106	t_bound_cpu
107	t_intr
108	t_forw
109	t_back
110	t_sig
111	t_tid
112	t_pre_sys
113	t_preempt
114	t_proc_flag
115	t_startpc
116	t_sysnum
117	t_intr_start
118	_tu._ts._t_astflag	T_ASTFLAG
119	_tu._ts._t_post_sys	T_POST_SYS
120	_tu._t_post_sys_ast	T_POST_SYS_AST
121	t_copyops
122
123ctxop
124	save_op			CTXOP_SAVE
125
126as
127	a_hat
128
129user	USIZEBYTES
130	u_comm
131	u_signal
132
133_label_t
134	val	LABEL_VAL
135
136\#define	LABEL_PC	LABEL_VAL
137\#define	LABEL_SP	_CONST(LABEL_VAL + LABEL_VAL_INCR)
138\#define	T_PC		_CONST(T_LABEL + LABEL_PC)
139\#define	T_SP		_CONST(T_LABEL + LABEL_SP)
140
141_klwp
142	lwp_thread
143	lwp_procp
144	lwp_eosys
145	lwp_regs
146	lwp_arg
147	lwp_ap
148	lwp_cursig
149	lwp_state
150	lwp_mstate.ms_acct	LWP_MS_ACCT
151	lwp_mstate.ms_prev	LWP_MS_PREV
152	lwp_mstate.ms_start	LWP_MS_START
153	lwp_mstate.ms_state_start LWP_MS_STATE_START
154	lwp_pcb
155	lwp_ru.sysc		LWP_RU_SYSC
156
157\#define	LWP_ACCT_USER	_CONST(LWP_MS_ACCT + _MUL(LMS_USER, LWP_MS_ACCT_INCR))
158\#define	LWP_ACCT_SYSTEM	_CONST(LWP_MS_ACCT + _MUL(LMS_SYSTEM, LWP_MS_ACCT_INCR))
159
160fpu_ctx
161	fpu_regs		FPU_CTX_FPU_REGS
162	fpu_flags		FPU_CTX_FPU_FLAGS
163
164fxsave_state	FXSAVE_STATE_SIZE
165	fx_mxcsr_mask		FXSAVE_STATE_MXCSR_MASK
166
167
168autovec		AUTOVECSIZE
169	av_vector
170	av_intarg1
171	av_intarg2
172	av_link
173	av_prilevel
174	av_dip
175
176av_head
177	avh_link
178	avh_hi_pri
179	avh_lo_pri
180
181cpu
182	cpu_id
183	cpu_flags
184	cpu_self
185	cpu_thread
186	cpu_thread_lock
187	cpu_kprunrun
188	cpu_lwp
189	cpu_fpowner
190	cpu_idle_thread
191	cpu_intr_thread
192	cpu_intr_actv
193	cpu_base_spl
194	cpu_intr_stack
195	cpu_stats.sys.cpumigrate	CPU_STATS_SYS_CPUMIGRATE
196	cpu_stats.sys.intr		CPU_STATS_SYS_INTR
197	cpu_stats.sys.intrblk		CPU_STATS_SYS_INTRBLK
198	cpu_stats.sys.syscall		CPU_STATS_SYS_SYSCALL
199	cpu_profile_pc
200	cpu_profile_upc
201	cpu_profile_pil
202	cpu_ftrace.ftd_state		CPU_FTRACE_STATE
203
204\#define	CPU_INTR_ACTV_REF	_CONST(CPU_INTR_ACTV + 2)
205
206cpu
207	cpu_m.pil_high_start	CPU_PIL_HIGH_START
208	cpu_m.intrstat		CPU_INTRSTAT
209	cpu_m.mcpu_current_hat	CPU_CURRENT_HAT
210	cpu_m.mcpu_gdt		CPU_GDT
211	cpu_m.mcpu_idt		CPU_IDT
212	cpu_m.mcpu_tss		CPU_TSS
213	cpu_m.mcpu_softinfo	CPU_SOFTINFO
214	cpu_m.mcpu_pri		CPU_PRI
215	cpu_m.mcpu_pri_data	CPU_PRI_DATA
216
217machcpu
218	mcpu_pri_data	MCPU_PRI_DATA
219
220standard_pic
221	c_curmask
222	c_iplmask
223
224ddi_dma_impl
225	dmai_rflags
226	dmai_rdip
227
228dev_info
229	devi_ops		DEVI_DEV_OPS
230	devi_bus_ctl
231	devi_bus_dma_map
232	devi_bus_dma_ctl
233	devi_bus_dma_allochdl
234	devi_bus_dma_freehdl
235	devi_bus_dma_bindhdl
236	devi_bus_dma_unbindhdl
237	devi_bus_dma_flush
238	devi_bus_dma_win
239
240dev_ops
241	devo_bus_ops		DEVI_BUS_OPS
242
243bus_ops
244	bus_ctl			OPS_CTL
245	bus_dma_map		OPS_MAP
246	bus_dma_ctl		OPS_MCTL
247	bus_dma_allochdl	OPS_ALLOCHDL
248	bus_dma_freehdl		OPS_FREEHDL
249	bus_dma_bindhdl		OPS_BINDHDL
250	bus_dma_unbindhdl	OPS_UNBINDHDL
251	bus_dma_flush		OPS_FLUSH
252	bus_dma_win		OPS_WIN
253
254sysent	SYSENT_SIZE	SYSENT_SIZE_SHIFT
255	sy_callc
256	sy_flags
257	sy_narg
258
259stdata
260	sd_lock
261
262queue
263	q_flag
264	q_next
265	q_stream
266	q_syncq
267	q_qinfo
268
269qinit
270	qi_putp
271
272syncq
273	sq_flags
274	sq_count
275	sq_lock
276	sq_wait
277
278rm_platter
279	rm_idt_lim		IDTROFF
280	rm_gdt_lim		GDTROFF
281	rm_pdbr			CR3OFF
282	rm_cpu			CPUNOFF
283	rm_cr4			CR4OFF
284	rm_x86feature		X86FEATURE
285
286cpu_tables
287	ct_stack
288	ct_gdt
289
290\#define	DEFAULTSTKSZ	_CONST(CT_GDT - CT_STACK)
291
292ddi_acc_impl
293	ahi_acc_attr	ACC_ATTR
294	ahi_get8	ACC_GETB
295	ahi_get16	ACC_GETW
296	ahi_get32	ACC_GETL
297	ahi_get64	ACC_GETLL
298	ahi_put8	ACC_PUTB
299	ahi_put16	ACC_PUTW
300	ahi_put32	ACC_PUTL
301	ahi_put64	ACC_PUTLL
302	ahi_rep_get8	ACC_REP_GETB
303	ahi_rep_get16	ACC_REP_GETW
304	ahi_rep_get32	ACC_REP_GETL
305	ahi_rep_get64	ACC_REP_GETLL
306	ahi_rep_put8	ACC_REP_PUTB
307	ahi_rep_put16	ACC_REP_PUTW
308	ahi_rep_put32	ACC_REP_PUTL
309	ahi_rep_put64	ACC_REP_PUTLL
310
311on_trap_data
312	ot_prot
313	ot_trap
314	ot_trampoline
315	ot_jmpbuf
316	ot_prev
317	ot_handle
318	ot_pad1
319
320trap_trace_ctl_t	__TRAPTR_SIZE TRAPTR_SIZE_SHIFT
321	ttc_next	TRAPTR_NEXT
322	ttc_first	TRAPTR_FIRST
323	ttc_limit	TRAPTR_LIMIT
324
325trap_trace_rec_t	TRAP_ENT_SIZE
326	ttr_cr2
327	ttr_info.idt_entry.vector	TTR_VECTOR
328	ttr_info.idt_entry.ipl		TTR_IPL
329	ttr_info.idt_entry.spl		TTR_SPL
330	ttr_info.idt_entry.pri		TTR_PRI
331	ttr_info.gate_entry.sysnum	TTR_SYSNUM
332	ttr_marker
333	ttr_stamp
334	ttr_curthread
335	ttr_sdepth
336	ttr_stack
337
338lgrp_ld
339	lpl_lgrpid
340
341dtrace_id_t	DTRACE_IDSIZE
342
343cpu_core	CPU_CORE_SIZE	CPU_CORE_SHIFT
344	cpuc_dtrace_flags
345	cpuc_dtrace_illval
346
347timespec	TIMESPEC_SIZE
348
349gate_desc	GATE_DESC_SIZE
350
351desctbr_t	DESCTBR_SIZE
352	dtr_limit
353	dtr_base
354
355mod_stub_info	MODS_SIZE
356	mods_func_adr	MODS_INSTFCN
357	mods_errfcn	MODS_RETFCN
358	mods_flag
359
360\#define	TRAP_TSIZE		_MUL(TRAP_ENT_SIZE, TRAPTR_NENT)
361
362copyops
363	cp_copyin
364	cp_xcopyin
365	cp_copyout
366	cp_xcopyout
367	cp_copyinstr
368	cp_copyoutstr
369	cp_fuword8
370	cp_fuword16
371	cp_fuword32
372	cp_fuword64
373	cp_suword8
374	cp_suword16
375	cp_suword32
376	cp_suword64
377	cp_physio
378