xref: /titanic_44/usr/src/uts/i86pc/ml/offsets.in (revision a1e4879402b1a0a7c410577cff81f1ce31ace7af)
1\
2\ Copyright 2007 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_fsw			FXSAVE_STATE_FSW
170	fx_mxcsr_mask		FXSAVE_STATE_MXCSR_MASK
171
172
173autovec		AUTOVECSIZE
174	av_vector
175	av_intarg1
176	av_intarg2
177	av_ticksp
178	av_link
179	av_prilevel
180	av_dip
181
182av_head
183	avh_link
184	avh_hi_pri
185	avh_lo_pri
186
187cpu
188	cpu_id
189	cpu_flags
190	cpu_self
191	cpu_thread
192	cpu_thread_lock
193	cpu_kprunrun
194	cpu_lwp
195	cpu_fpowner
196	cpu_idle_thread
197	cpu_intr_thread
198	cpu_intr_actv
199	cpu_base_spl
200	cpu_intr_stack
201	cpu_stats.sys.cpumigrate	CPU_STATS_SYS_CPUMIGRATE
202	cpu_stats.sys.intr		CPU_STATS_SYS_INTR
203	cpu_stats.sys.intrblk		CPU_STATS_SYS_INTRBLK
204	cpu_stats.sys.syscall		CPU_STATS_SYS_SYSCALL
205	cpu_profile_pc
206	cpu_profile_upc
207	cpu_profile_pil
208	cpu_ftrace.ftd_state		CPU_FTRACE_STATE
209	cpu_mstate
210	cpu_intracct
211
212\#define	CPU_INTR_ACTV_REF	_CONST(CPU_INTR_ACTV + 2)
213
214cpu
215	cpu_m.pil_high_start	CPU_PIL_HIGH_START
216	cpu_m.intrstat		CPU_INTRSTAT
217	cpu_m.mcpu_current_hat	CPU_CURRENT_HAT
218	cpu_m.mcpu_gdt		CPU_GDT
219	cpu_m.mcpu_idt		CPU_IDT
220	cpu_m.mcpu_tss		CPU_TSS
221	cpu_m.mcpu_softinfo	CPU_SOFTINFO
222	cpu_m.mcpu_pri		CPU_PRI
223	cpu_m.mcpu_pri_data	CPU_PRI_DATA
224
225machcpu
226	mcpu_pri_data	MCPU_PRI_DATA
227
228standard_pic
229	c_curmask
230	c_iplmask
231
232ddi_dma_impl
233	dmai_rflags
234	dmai_rdip
235
236dev_info
237	devi_ops		DEVI_DEV_OPS
238	devi_bus_ctl
239	devi_bus_dma_map
240	devi_bus_dma_ctl
241	devi_bus_dma_allochdl
242	devi_bus_dma_freehdl
243	devi_bus_dma_bindhdl
244	devi_bus_dma_unbindhdl
245	devi_bus_dma_flush
246	devi_bus_dma_win
247
248dev_ops
249	devo_bus_ops		DEVI_BUS_OPS
250
251bus_ops
252	bus_ctl			OPS_CTL
253	bus_dma_map		OPS_MAP
254	bus_dma_ctl		OPS_MCTL
255	bus_dma_allochdl	OPS_ALLOCHDL
256	bus_dma_freehdl		OPS_FREEHDL
257	bus_dma_bindhdl		OPS_BINDHDL
258	bus_dma_unbindhdl	OPS_UNBINDHDL
259	bus_dma_flush		OPS_FLUSH
260	bus_dma_win		OPS_WIN
261
262sysent	SYSENT_SIZE	SYSENT_SIZE_SHIFT
263	sy_callc
264	sy_flags
265	sy_narg
266
267stdata
268	sd_lock
269
270queue
271	q_flag
272	q_next
273	q_stream
274	q_syncq
275	q_qinfo
276
277qinit
278	qi_putp
279
280syncq
281	sq_flags
282	sq_count
283	sq_lock
284	sq_wait
285
286rm_platter
287	rm_idt_lim		IDTROFF
288	rm_gdt_lim		GDTROFF
289	rm_pdbr			CR3OFF
290	rm_cpu			CPUNOFF
291	rm_cr4			CR4OFF
292	rm_x86feature		X86FEATURE
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
381brand
382	b_machops
383