xref: /titanic_44/usr/src/uts/i86pc/ml/offsets.in (revision 0173c38a73f34277e0c97a19fedfd25d81ba8380)
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
63proc		PROCSIZE
64	p_link
65	p_next
66	p_child
67	p_sibling
68	p_sig
69	p_flag
70	p_tlist
71	p_as
72	p_lockp
73	p_user
74	p_ldt
75	p_ldt_desc
76	p_model
77	p_pctx
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
293ddi_acc_impl
294	ahi_acc_attr	ACC_ATTR
295	ahi_get8	ACC_GETB
296	ahi_get16	ACC_GETW
297	ahi_get32	ACC_GETL
298	ahi_get64	ACC_GETLL
299	ahi_put8	ACC_PUTB
300	ahi_put16	ACC_PUTW
301	ahi_put32	ACC_PUTL
302	ahi_put64	ACC_PUTLL
303	ahi_rep_get8	ACC_REP_GETB
304	ahi_rep_get16	ACC_REP_GETW
305	ahi_rep_get32	ACC_REP_GETL
306	ahi_rep_get64	ACC_REP_GETLL
307	ahi_rep_put8	ACC_REP_PUTB
308	ahi_rep_put16	ACC_REP_PUTW
309	ahi_rep_put32	ACC_REP_PUTL
310	ahi_rep_put64	ACC_REP_PUTLL
311
312on_trap_data
313	ot_prot
314	ot_trap
315	ot_trampoline
316	ot_jmpbuf
317	ot_prev
318	ot_handle
319	ot_pad1
320
321trap_trace_ctl_t	__TRAPTR_SIZE TRAPTR_SIZE_SHIFT
322	ttc_next	TRAPTR_NEXT
323	ttc_first	TRAPTR_FIRST
324	ttc_limit	TRAPTR_LIMIT
325
326trap_trace_rec_t	TRAP_ENT_SIZE
327	ttr_cr2
328	ttr_info.idt_entry.vector	TTR_VECTOR
329	ttr_info.idt_entry.ipl		TTR_IPL
330	ttr_info.idt_entry.spl		TTR_SPL
331	ttr_info.idt_entry.pri		TTR_PRI
332	ttr_info.gate_entry.sysnum	TTR_SYSNUM
333	ttr_marker
334	ttr_stamp
335	ttr_curthread
336	ttr_sdepth
337	ttr_stack
338
339lgrp_ld
340	lpl_lgrpid
341
342dtrace_id_t	DTRACE_IDSIZE
343
344cpu_core	CPU_CORE_SIZE	CPU_CORE_SHIFT
345	cpuc_dtrace_flags
346	cpuc_dtrace_illval
347
348timespec	TIMESPEC_SIZE
349
350gate_desc	GATE_DESC_SIZE
351
352desctbr_t	DESCTBR_SIZE
353	dtr_limit
354	dtr_base
355
356mod_stub_info	MODS_SIZE
357	mods_func_adr	MODS_INSTFCN
358	mods_errfcn	MODS_RETFCN
359	mods_flag
360
361\#define	TRAP_TSIZE		_MUL(TRAP_ENT_SIZE, TRAPTR_NENT)
362
363copyops
364	cp_copyin
365	cp_xcopyin
366	cp_copyout
367	cp_xcopyout
368	cp_copyinstr
369	cp_copyoutstr
370	cp_fuword8
371	cp_fuword16
372	cp_fuword32
373	cp_fuword64
374	cp_suword8
375	cp_suword16
376	cp_suword32
377	cp_suword64
378	cp_physio
379