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