xref: /titanic_41/usr/src/uts/i86pc/ml/offsets.in (revision 47644099886aa8d3f43120b9eede3044342be473)
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	cpu_mstate
204	cpu_intracct
205
206\#define	CPU_INTR_ACTV_REF	_CONST(CPU_INTR_ACTV + 2)
207
208cpu
209	cpu_m.pil_high_start	CPU_PIL_HIGH_START
210	cpu_m.intrstat		CPU_INTRSTAT
211	cpu_m.mcpu_current_hat	CPU_CURRENT_HAT
212	cpu_m.mcpu_gdt		CPU_GDT
213	cpu_m.mcpu_idt		CPU_IDT
214	cpu_m.mcpu_tss		CPU_TSS
215	cpu_m.mcpu_softinfo	CPU_SOFTINFO
216	cpu_m.mcpu_pri		CPU_PRI
217	cpu_m.mcpu_pri_data	CPU_PRI_DATA
218
219machcpu
220	mcpu_pri_data	MCPU_PRI_DATA
221
222standard_pic
223	c_curmask
224	c_iplmask
225
226ddi_dma_impl
227	dmai_rflags
228	dmai_rdip
229
230dev_info
231	devi_ops		DEVI_DEV_OPS
232	devi_bus_ctl
233	devi_bus_dma_map
234	devi_bus_dma_ctl
235	devi_bus_dma_allochdl
236	devi_bus_dma_freehdl
237	devi_bus_dma_bindhdl
238	devi_bus_dma_unbindhdl
239	devi_bus_dma_flush
240	devi_bus_dma_win
241
242dev_ops
243	devo_bus_ops		DEVI_BUS_OPS
244
245bus_ops
246	bus_ctl			OPS_CTL
247	bus_dma_map		OPS_MAP
248	bus_dma_ctl		OPS_MCTL
249	bus_dma_allochdl	OPS_ALLOCHDL
250	bus_dma_freehdl		OPS_FREEHDL
251	bus_dma_bindhdl		OPS_BINDHDL
252	bus_dma_unbindhdl	OPS_UNBINDHDL
253	bus_dma_flush		OPS_FLUSH
254	bus_dma_win		OPS_WIN
255
256sysent	SYSENT_SIZE	SYSENT_SIZE_SHIFT
257	sy_callc
258	sy_flags
259	sy_narg
260
261stdata
262	sd_lock
263
264queue
265	q_flag
266	q_next
267	q_stream
268	q_syncq
269	q_qinfo
270
271qinit
272	qi_putp
273
274syncq
275	sq_flags
276	sq_count
277	sq_lock
278	sq_wait
279
280rm_platter
281	rm_idt_lim		IDTROFF
282	rm_gdt_lim		GDTROFF
283	rm_pdbr			CR3OFF
284	rm_cpu			CPUNOFF
285	rm_cr4			CR4OFF
286	rm_x86feature		X86FEATURE
287
288cpu_tables
289	ct_stack
290	ct_gdt
291
292\#define	DEFAULTSTKSZ	_CONST(CT_GDT - CT_STACK)
293
294ddi_acc_impl
295	ahi_acc_attr	ACC_ATTR
296	ahi_get8	ACC_GETB
297	ahi_get16	ACC_GETW
298	ahi_get32	ACC_GETL
299	ahi_get64	ACC_GETLL
300	ahi_put8	ACC_PUTB
301	ahi_put16	ACC_PUTW
302	ahi_put32	ACC_PUTL
303	ahi_put64	ACC_PUTLL
304	ahi_rep_get8	ACC_REP_GETB
305	ahi_rep_get16	ACC_REP_GETW
306	ahi_rep_get32	ACC_REP_GETL
307	ahi_rep_get64	ACC_REP_GETLL
308	ahi_rep_put8	ACC_REP_PUTB
309	ahi_rep_put16	ACC_REP_PUTW
310	ahi_rep_put32	ACC_REP_PUTL
311	ahi_rep_put64	ACC_REP_PUTLL
312
313on_trap_data
314	ot_prot
315	ot_trap
316	ot_trampoline
317	ot_jmpbuf
318	ot_prev
319	ot_handle
320	ot_pad1
321
322trap_trace_ctl_t	__TRAPTR_SIZE TRAPTR_SIZE_SHIFT
323	ttc_next	TRAPTR_NEXT
324	ttc_first	TRAPTR_FIRST
325	ttc_limit	TRAPTR_LIMIT
326
327trap_trace_rec_t	TRAP_ENT_SIZE
328	ttr_cr2
329	ttr_info.idt_entry.vector	TTR_VECTOR
330	ttr_info.idt_entry.ipl		TTR_IPL
331	ttr_info.idt_entry.spl		TTR_SPL
332	ttr_info.idt_entry.pri		TTR_PRI
333	ttr_info.gate_entry.sysnum	TTR_SYSNUM
334	ttr_marker
335	ttr_stamp
336	ttr_curthread
337	ttr_sdepth
338	ttr_stack
339
340lgrp_ld
341	lpl_lgrpid
342
343dtrace_id_t	DTRACE_IDSIZE
344
345cpu_core	CPU_CORE_SIZE	CPU_CORE_SHIFT
346	cpuc_dtrace_flags
347	cpuc_dtrace_illval
348
349timespec	TIMESPEC_SIZE
350
351gate_desc	GATE_DESC_SIZE
352
353desctbr_t	DESCTBR_SIZE
354	dtr_limit
355	dtr_base
356
357mod_stub_info	MODS_SIZE
358	mods_func_adr	MODS_INSTFCN
359	mods_errfcn	MODS_RETFCN
360	mods_flag
361
362\#define	TRAP_TSIZE		_MUL(TRAP_ENT_SIZE, TRAPTR_NENT)
363
364copyops
365	cp_copyin
366	cp_xcopyin
367	cp_copyout
368	cp_xcopyout
369	cp_copyinstr
370	cp_copyoutstr
371	cp_fuword8
372	cp_fuword16
373	cp_fuword32
374	cp_fuword64
375	cp_suword8
376	cp_suword16
377	cp_suword32
378	cp_suword64
379	cp_physio
380