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