xref: /titanic_53/usr/src/uts/sun4/ml/offsets.in (revision 9acbbeaf2a1ffe5c14b244867d427714fab43c5c)
17c478bd9Sstevel@tonic-gate\ offsets.in: input file to produce assym.h using the stabs program
21e2e7a75Shuah\ Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
37c478bd9Sstevel@tonic-gate\ Use is subject to license terms.
47c478bd9Sstevel@tonic-gate\
57c478bd9Sstevel@tonic-gate\ CDDL HEADER START
67c478bd9Sstevel@tonic-gate\
77c478bd9Sstevel@tonic-gate\ The contents of this file are subject to the terms of the
81e2e7a75Shuah\ Common Development and Distribution License (the "License").
91e2e7a75Shuah\ You may not use this file except in compliance with the License.
107c478bd9Sstevel@tonic-gate\
117c478bd9Sstevel@tonic-gate\ You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
127c478bd9Sstevel@tonic-gate\ or http://www.opensolaris.org/os/licensing.
137c478bd9Sstevel@tonic-gate\ See the License for the specific language governing permissions
147c478bd9Sstevel@tonic-gate\ and limitations under the License.
157c478bd9Sstevel@tonic-gate\
167c478bd9Sstevel@tonic-gate\ When distributing Covered Code, include this CDDL HEADER in each
177c478bd9Sstevel@tonic-gate\ file and include the License file at usr/src/OPENSOLARIS.LICENSE.
187c478bd9Sstevel@tonic-gate\ If applicable, add the following below this CDDL HEADER, with the
197c478bd9Sstevel@tonic-gate\ fields enclosed by brackets "[]" replaced with your own identifying
207c478bd9Sstevel@tonic-gate\ information: Portions Copyright [yyyy] [name of copyright owner]
217c478bd9Sstevel@tonic-gate\
227c478bd9Sstevel@tonic-gate\ CDDL HEADER END
237c478bd9Sstevel@tonic-gate\
247c478bd9Sstevel@tonic-gate\
257c478bd9Sstevel@tonic-gate\
267c478bd9Sstevel@tonic-gate\ Guidelines:
277c478bd9Sstevel@tonic-gate\
287c478bd9Sstevel@tonic-gate\ A blank line is required between structure/union/intrinsic names.
297c478bd9Sstevel@tonic-gate\
307c478bd9Sstevel@tonic-gate\ The general form is:
317c478bd9Sstevel@tonic-gate\
327c478bd9Sstevel@tonic-gate\	name size_define [shift_define]
337c478bd9Sstevel@tonic-gate\		member_name [offset_define]
347c478bd9Sstevel@tonic-gate\	{blank line}
357c478bd9Sstevel@tonic-gate\
367c478bd9Sstevel@tonic-gate\ If offset_define is not specified then the member_name is
377c478bd9Sstevel@tonic-gate\ converted to all caps and used instead.  If the size of an item is
387c478bd9Sstevel@tonic-gate\ a power of two then an optional shift count may be output using
397c478bd9Sstevel@tonic-gate\ shift_define as the name but only if shift_define was specified.
407c478bd9Sstevel@tonic-gate\
417c478bd9Sstevel@tonic-gate\ Arrays cause stabs to automatically output the per-array-item increment
427c478bd9Sstevel@tonic-gate\ in addition to the base address:
437c478bd9Sstevel@tonic-gate\
447c478bd9Sstevel@tonic-gate\	 foo FOO_SIZE
457c478bd9Sstevel@tonic-gate\		array	FOO_ARRAY
467c478bd9Sstevel@tonic-gate\
477c478bd9Sstevel@tonic-gate\ results in:
487c478bd9Sstevel@tonic-gate\
497c478bd9Sstevel@tonic-gate\	#define	FOO_ARRAY	0x0
507c478bd9Sstevel@tonic-gate\	#define	FOO_ARRAY_INCR	0x4
517c478bd9Sstevel@tonic-gate\
527c478bd9Sstevel@tonic-gate\ which allows \#define's to be used to specify array items:
537c478bd9Sstevel@tonic-gate\
547c478bd9Sstevel@tonic-gate\	#define	FOO_0	(FOO_ARRAY + (0 * FOO_ARRAY_INCR))
557c478bd9Sstevel@tonic-gate\	#define	FOO_1	(FOO_ARRAY + (1 * FOO_ARRAY_INCR))
567c478bd9Sstevel@tonic-gate\	...
577c478bd9Sstevel@tonic-gate\	#define	FOO_n	(FOO_ARRAY + (n * FOO_ARRAY_INCR))
587c478bd9Sstevel@tonic-gate\
597c478bd9Sstevel@tonic-gate\ There are several examples below (search for _INCR).
607c478bd9Sstevel@tonic-gate\
617c478bd9Sstevel@tonic-gate\ There is currently no manner in which to identify "anonymous"
627c478bd9Sstevel@tonic-gate\ structures or unions so if they are to be used in assembly code
637c478bd9Sstevel@tonic-gate\ they must be given names.
647c478bd9Sstevel@tonic-gate\
657c478bd9Sstevel@tonic-gate\ When specifying the offsets of nested structures/unions each nested
667c478bd9Sstevel@tonic-gate\ structure or union must be listed separately then use the
677c478bd9Sstevel@tonic-gate\ "\#define" escapes to add the offsets from the base structure/union
687c478bd9Sstevel@tonic-gate\ and all of the nested structures/unions together.  See the many
697c478bd9Sstevel@tonic-gate\ examples already in this file.
707c478bd9Sstevel@tonic-gate
717c478bd9Sstevel@tonic-gate#pragma ident	"%Z%%M%	%I%	%E% SMI"
727c478bd9Sstevel@tonic-gate
737c478bd9Sstevel@tonic-gate#ifndef	_GENASSYM
747c478bd9Sstevel@tonic-gate#define	_GENASSYM
757c478bd9Sstevel@tonic-gate#endif
767c478bd9Sstevel@tonic-gate
777c478bd9Sstevel@tonic-gate#define	SIZES	1
787c478bd9Sstevel@tonic-gate
797c478bd9Sstevel@tonic-gate#include <sys/vmmeter.h>
807c478bd9Sstevel@tonic-gate#include <sys/mutex_impl.h>
817c478bd9Sstevel@tonic-gate#include <sys/lockstat.h>
827c478bd9Sstevel@tonic-gate#include <sys/ddi_isa.h>
837c478bd9Sstevel@tonic-gate#include <sys/ivintr.h>
847c478bd9Sstevel@tonic-gate#include <sys/ddi_impldefs.h>
857c478bd9Sstevel@tonic-gate#include <vm/hat_sfmmu.h>
867c478bd9Sstevel@tonic-gate#include <sys/avintr.h>
877c478bd9Sstevel@tonic-gate#include <sys/strsubr.h>
887c478bd9Sstevel@tonic-gate#include <sys/dmv.h>
897c478bd9Sstevel@tonic-gate#include <sys/fpu/fpu_simulator.h>
907c478bd9Sstevel@tonic-gate#include <sys/ontrap.h>
917c478bd9Sstevel@tonic-gate#include <sys/lgrp.h>
927c478bd9Sstevel@tonic-gate#include <sys/ddifm_impl.h>
93*9acbbeafSnn35248#include <sys/brand.h>
947c478bd9Sstevel@tonic-gate
957c478bd9Sstevel@tonic-gategreg_t		GREGSIZE
967c478bd9Sstevel@tonic-gate
977c478bd9Sstevel@tonic-gateuintptr_t	LWP_ARG_SZ
987c478bd9Sstevel@tonic-gate
997c478bd9Sstevel@tonic-gateproc		PROCSIZE
1007c478bd9Sstevel@tonic-gate	p_link
1017c478bd9Sstevel@tonic-gate	p_next
1027c478bd9Sstevel@tonic-gate	p_child
1037c478bd9Sstevel@tonic-gate	p_sibling
1047c478bd9Sstevel@tonic-gate	p_sig
1057c478bd9Sstevel@tonic-gate	p_wcode
1067c478bd9Sstevel@tonic-gate	p_flag
1077c478bd9Sstevel@tonic-gate	p_tlist
1087c478bd9Sstevel@tonic-gate	p_as
1097c478bd9Sstevel@tonic-gate	p_lockp
1107c478bd9Sstevel@tonic-gate	p_pidp
1117c478bd9Sstevel@tonic-gate	p_fixalignment
1127c478bd9Sstevel@tonic-gate	p_utraps
113*9acbbeafSnn35248	p_brand
114*9acbbeafSnn35248	p_brand_data
1157c478bd9Sstevel@tonic-gate
1167c478bd9Sstevel@tonic-gate\#define	P_UTRAP4	(UT_ILLTRAP_INSTRUCTION * CPTRSIZE)
1177c478bd9Sstevel@tonic-gate\#define	P_UTRAP7	(UT_FP_DISABLED * CPTRSIZE)
1187c478bd9Sstevel@tonic-gate\#define	P_UTRAP8	(UT_FP_EXCEPTION_IEEE_754 * CPTRSIZE)
1197c478bd9Sstevel@tonic-gate\#define	P_UTRAP10	(UT_TAG_OVERFLOW * CPTRSIZE)
1207c478bd9Sstevel@tonic-gate\#define	P_UTRAP11	(UT_DIVISION_BY_ZERO * CPTRSIZE)
1217c478bd9Sstevel@tonic-gate\#define	P_UTRAP15	(UT_MEM_ADDRESS_NOT_ALIGNED * CPTRSIZE)
1227c478bd9Sstevel@tonic-gate\#define	P_UTRAP16	(UT_PRIVILEGED_ACTION * CPTRSIZE)
1237c478bd9Sstevel@tonic-gate
1247c478bd9Sstevel@tonic-gatepid	PID_SIZE
1257c478bd9Sstevel@tonic-gate	pid_id	PID_PIDID
1267c478bd9Sstevel@tonic-gate
1277c478bd9Sstevel@tonic-gate_label_t	LABEL_SIZE
1287c478bd9Sstevel@tonic-gate	val	LABEL_VAL
1297c478bd9Sstevel@tonic-gate
1307c478bd9Sstevel@tonic-gate_kthread	THREAD_SIZE
1317c478bd9Sstevel@tonic-gate	t_lock
1327c478bd9Sstevel@tonic-gate	t_lock_flush
1337c478bd9Sstevel@tonic-gate	t_lockp
1347c478bd9Sstevel@tonic-gate	t_oldspl
1357c478bd9Sstevel@tonic-gate	t_pri
1367c478bd9Sstevel@tonic-gate	t_lwp
1377c478bd9Sstevel@tonic-gate	t_procp
1387c478bd9Sstevel@tonic-gate	t_link
1397c478bd9Sstevel@tonic-gate	t_state
1407c478bd9Sstevel@tonic-gate	t_mstate
1417c478bd9Sstevel@tonic-gate	t_stk		T_STACK
1427c478bd9Sstevel@tonic-gate	t_swap
1437c478bd9Sstevel@tonic-gate	t_flag		T_FLAGS
1447c478bd9Sstevel@tonic-gate	t_ctx
1457c478bd9Sstevel@tonic-gate	t_pcb
1467c478bd9Sstevel@tonic-gate	t_lofault
1477c478bd9Sstevel@tonic-gate	t_onfault
1487c478bd9Sstevel@tonic-gate	t_ontrap
1497c478bd9Sstevel@tonic-gate	t_nomigrate
1507c478bd9Sstevel@tonic-gate	t_cpu
1517c478bd9Sstevel@tonic-gate	t_weakbound_cpu
1527c478bd9Sstevel@tonic-gate	t_lpl
1537c478bd9Sstevel@tonic-gate	t_bound_cpu
1547c478bd9Sstevel@tonic-gate	t_intr
1557c478bd9Sstevel@tonic-gate	t_forw
1567c478bd9Sstevel@tonic-gate	t_back
1577c478bd9Sstevel@tonic-gate	t_sig
1587c478bd9Sstevel@tonic-gate	t_tid
1597c478bd9Sstevel@tonic-gate	t_pre_sys
1607c478bd9Sstevel@tonic-gate	t_preempt
1617c478bd9Sstevel@tonic-gate	t_proc_flag
1627c478bd9Sstevel@tonic-gate	t_startpc
1637c478bd9Sstevel@tonic-gate	t_sysnum
1647c478bd9Sstevel@tonic-gate	_tu._t_post_sys_ast	T_POST_SYS_AST
1657c478bd9Sstevel@tonic-gate	_tu._ts._t_astflag	T_ASTFLAG
1667c478bd9Sstevel@tonic-gate	_tu._ts._t_sig_check	T_SIG_CHECK
1677c478bd9Sstevel@tonic-gate	_tu._ts._t_post_sys	T_POST_SYS
1687c478bd9Sstevel@tonic-gate	_tu._ts._t_trapret	T_TRAPRET
1697c478bd9Sstevel@tonic-gate	t_preempt_lk
1707c478bd9Sstevel@tonic-gate	t_kpri_req
1717c478bd9Sstevel@tonic-gate	t_lockstat
1727c478bd9Sstevel@tonic-gate	t_pil
1737c478bd9Sstevel@tonic-gate	t_intr_start
1747c478bd9Sstevel@tonic-gate	_tdu._tds._t_dtrace_on	T_DTRACE_ON
1757c478bd9Sstevel@tonic-gate	_tdu._tds._t_dtrace_step T_DTRACE_STEP
1767c478bd9Sstevel@tonic-gate	_tdu._tds._t_dtrace_ret	T_DTRACE_RET
1777c478bd9Sstevel@tonic-gate	_tdu._tds._t_dtrace_ast	T_DTRACE_AST
1787c478bd9Sstevel@tonic-gate	_tdu._t_dtrace_ft	T_DTRACE_FT
1797c478bd9Sstevel@tonic-gate	t_dtrace_npc
1807c478bd9Sstevel@tonic-gate	t_copyops
1817c478bd9Sstevel@tonic-gate
1827c478bd9Sstevel@tonic-gate\#define	L_PC	(0 * LABEL_VAL_INCR)
1837c478bd9Sstevel@tonic-gate\#define	L_SP	(1 * LABEL_VAL_INCR)
1847c478bd9Sstevel@tonic-gate
1857c478bd9Sstevel@tonic-gate\#define	T_PC	(T_PCB + L_PC)
1867c478bd9Sstevel@tonic-gate\#define	T_SP	(T_PCB + L_SP)
1877c478bd9Sstevel@tonic-gate
1887c478bd9Sstevel@tonic-gatesysent	SYSENT_SIZE SYSENT_SHIFT
1897c478bd9Sstevel@tonic-gate	sy_callc
1907c478bd9Sstevel@tonic-gate	sy_flags
1917c478bd9Sstevel@tonic-gate
1927c478bd9Sstevel@tonic-gateas	AS_SIZE
1937c478bd9Sstevel@tonic-gate	a_hat
1947c478bd9Sstevel@tonic-gate	a_userlimit
1957c478bd9Sstevel@tonic-gate
1967c478bd9Sstevel@tonic-gatehmehash_bucket	HMEBUCK_SIZE
1977c478bd9Sstevel@tonic-gate	hmeblkp	HMEBUCK_HBLK
1987c478bd9Sstevel@tonic-gate	hmeh_nextpa	HMEBUCK_NEXTPA
1997c478bd9Sstevel@tonic-gate	hmeh_listlock	HMEBUCK_LOCK
2007c478bd9Sstevel@tonic-gate
2017c478bd9Sstevel@tonic-gatette_t	TTE_SIZE
2027c478bd9Sstevel@tonic-gate	ll	TTE_LL
2037c478bd9Sstevel@tonic-gate
2047c478bd9Sstevel@tonic-gateism_blk	ISMBLK_SIZE
2057c478bd9Sstevel@tonic-gate	iblk_maps	IBLK_MAPS
2067c478bd9Sstevel@tonic-gate	iblk_next	IBLK_NEXT
2077c478bd9Sstevel@tonic-gate	iblk_nextpa	IBLK_NEXTPA
2087c478bd9Sstevel@tonic-gate
2097c478bd9Sstevel@tonic-gateism_map_t	ISM_MAP_SZ
2107c478bd9Sstevel@tonic-gate	imap_seg	IMAP_SEG
2117c478bd9Sstevel@tonic-gate	imap_vb_shift	IMAP_VB_SHIFT
2127c478bd9Sstevel@tonic-gate	imap_hatflags	IMAP_HATFLAGS
2137c478bd9Sstevel@tonic-gate	imap_sz_mask	IMAP_SZ_MASK
2147c478bd9Sstevel@tonic-gate	imap_ismhat	IMAP_ISMHAT
2157c478bd9Sstevel@tonic-gate
2167c478bd9Sstevel@tonic-gatetsbe	TSBE_SIZE
2177c478bd9Sstevel@tonic-gate	tte_tag		TSBE_TAG
2187c478bd9Sstevel@tonic-gate	tte_data	TSBE_TTE
2197c478bd9Sstevel@tonic-gate
2207c478bd9Sstevel@tonic-gatetsb_tag	TSBTAG_SIZE
2217c478bd9Sstevel@tonic-gate	tagints.inthi	TSBTAG_INTHI
2227c478bd9Sstevel@tonic-gate	tagints.intlo	TSBTAG_INTLO
2237c478bd9Sstevel@tonic-gate
2247c478bd9Sstevel@tonic-gatehme_blk	HMEBLK_SIZE
2257c478bd9Sstevel@tonic-gate	hblk_next	HMEBLK_NEXT
2267c478bd9Sstevel@tonic-gate	hblk_tag	HMEBLK_TAG
2277c478bd9Sstevel@tonic-gate	hblk_misc	HMEBLK_MISC
2287c478bd9Sstevel@tonic-gate	hblk_hme	HMEBLK_HME1
2297c478bd9Sstevel@tonic-gate	hblk_nextpa	HMEBLK_NEXTPA
2307c478bd9Sstevel@tonic-gate
2311e2e7a75Shuahmmu_ctx MMU_CTX_SIZE
2321e2e7a75Shuah	mmu_gnum	MMU_CTX_GNUM
2331e2e7a75Shuah	mmu_cnum	MMU_CTX_CNUM
2341e2e7a75Shuah	mmu_nctxs	MMU_CTX_NCTXS
2351e2e7a75Shuah
2361e2e7a75Shuahsfmmu_ctx	SFMMU_MMU_CTX_SIZE SFMMU_MMU_CTX_SHIFT
2371e2e7a75Shuah	gnum		SFMMU_MMU_GC_NUM
2381e2e7a75Shuah
2397c478bd9Sstevel@tonic-gateuser	USIZEBYTES
2407c478bd9Sstevel@tonic-gate	u_comm
2417c478bd9Sstevel@tonic-gate	u_signal
2427c478bd9Sstevel@tonic-gate
2437c478bd9Sstevel@tonic-gate_klwp	LWP_SIZE
2447c478bd9Sstevel@tonic-gate	lwp_thread
2457c478bd9Sstevel@tonic-gate	lwp_regs
2467c478bd9Sstevel@tonic-gate	lwp_fpu
2477c478bd9Sstevel@tonic-gate	lwp_arg
2487c478bd9Sstevel@tonic-gate	lwp_cursig
2497c478bd9Sstevel@tonic-gate	lwp_ru.sysc			LWP_RU_SYSC
2507c478bd9Sstevel@tonic-gate	lwp_state
2517c478bd9Sstevel@tonic-gate	lwp_mstate.ms_start		LWP_MS_START
2527c478bd9Sstevel@tonic-gate	lwp_mstate.ms_prev		LWP_MS_PREV
2537c478bd9Sstevel@tonic-gate	lwp_mstate.ms_state_start	LWP_STATE_START
2547c478bd9Sstevel@tonic-gate	lwp_mstate.ms_acct		LWP_MS_ACCT
2557c478bd9Sstevel@tonic-gate	lwp_pcb.pcb_flags		PCB_FLAGS
2567c478bd9Sstevel@tonic-gate	lwp_pcb.pcb_trap0addr		PCB_TRAP0
2577c478bd9Sstevel@tonic-gate	lwp_pcb.pcb_step		PCB_STEP
2587c478bd9Sstevel@tonic-gate	lwp_pcb.pcb_tracepc		PCB_TRACEPC
2597c478bd9Sstevel@tonic-gate
2607c478bd9Sstevel@tonic-gatemstate	MSTATE_SIZE
2617c478bd9Sstevel@tonic-gate	ms_start
2627c478bd9Sstevel@tonic-gate	ms_prev
2637c478bd9Sstevel@tonic-gate	ms_term
2647c478bd9Sstevel@tonic-gate	ms_state_start
2657c478bd9Sstevel@tonic-gate	ms_acct
2667c478bd9Sstevel@tonic-gate
2677c478bd9Sstevel@tonic-gate\#define	LWP_ACCT_USER	(LWP_MS_ACCT + (LMS_USER * LWP_MS_ACCT_INCR))
2687c478bd9Sstevel@tonic-gate\#define	LWP_ACCT_SYSTEM (LWP_MS_ACCT + (LMS_SYSTEM * LWP_MS_ACCT_INCR))
2697c478bd9Sstevel@tonic-gate
2707c478bd9Sstevel@tonic-gaterwindow32	RWIN32SIZE	RWIN32SHIFT
2717c478bd9Sstevel@tonic-gate	rw_local	RW32_LOCAL
2727c478bd9Sstevel@tonic-gate	rw_in		RW32_IN
2737c478bd9Sstevel@tonic-gate
2747c478bd9Sstevel@tonic-gaterwindow64	RWIN64SIZE	RWIN64SHIFT
2757c478bd9Sstevel@tonic-gate	rw_local	RW64_LOCAL
2767c478bd9Sstevel@tonic-gate	rw_in		RW64_IN
2777c478bd9Sstevel@tonic-gate
2787c478bd9Sstevel@tonic-gatemachpcb	MPCBSIZE
2797c478bd9Sstevel@tonic-gate	mpcb_regs
2807c478bd9Sstevel@tonic-gate	mpcb_wbuf
2817c478bd9Sstevel@tonic-gate	mpcb_spbuf
2827c478bd9Sstevel@tonic-gate	mpcb_wbcnt
2837c478bd9Sstevel@tonic-gate	mpcb_rwin
2847c478bd9Sstevel@tonic-gate	mpcb_rsp
2857c478bd9Sstevel@tonic-gate	mpcb_flags
2867c478bd9Sstevel@tonic-gate	mpcb_thread
2877c478bd9Sstevel@tonic-gate	mpcb_wstate
2887c478bd9Sstevel@tonic-gate	mpcb_pa		MPCB_PA
2897c478bd9Sstevel@tonic-gate	mpcb_wbuf_pa
2907c478bd9Sstevel@tonic-gate
2917c478bd9Sstevel@tonic-gate\#define	MPCB_RWIN0	(MPCB_RWIN + (0 * MPCB_RWIN_INCR))
2927c478bd9Sstevel@tonic-gate\#define	MPCB_RWIN1	(MPCB_RWIN + (1 * MPCB_RWIN_INCR))
2937c478bd9Sstevel@tonic-gate\#define	MPCB_RSP0	(MPCB_RSP + (0 * MPCB_RSP_INCR))
2947c478bd9Sstevel@tonic-gate\#define	MPCB_RSP1	(MPCB_RSP + (1 * MPCB_RSP_INCR))
2957c478bd9Sstevel@tonic-gate
2967c478bd9Sstevel@tonic-gatekfpu_t	KFPUSIZE
2977c478bd9Sstevel@tonic-gate	fpu_fr.fpu_regs		FPU_REGS
2987c478bd9Sstevel@tonic-gate	fpu_fsr
2997c478bd9Sstevel@tonic-gate	fpu_fprs
3007c478bd9Sstevel@tonic-gate	fpu_q
3017c478bd9Sstevel@tonic-gate	fpu_qcnt
3027c478bd9Sstevel@tonic-gate	fpu_en
3037c478bd9Sstevel@tonic-gate
3047c478bd9Sstevel@tonic-gate\#define	FPU_GSR		KFPUSIZE
3057c478bd9Sstevel@tonic-gate
3067c478bd9Sstevel@tonic-gateregs	REGSIZE
3077c478bd9Sstevel@tonic-gate	r_tstate	TSTATE_OFF
3087c478bd9Sstevel@tonic-gate	r_g1		G1_OFF
3097c478bd9Sstevel@tonic-gate	r_g2		G2_OFF
3107c478bd9Sstevel@tonic-gate	r_g3		G3_OFF
3117c478bd9Sstevel@tonic-gate	r_g4		G4_OFF
3127c478bd9Sstevel@tonic-gate	r_g5		G5_OFF
3137c478bd9Sstevel@tonic-gate	r_g6		G6_OFF
3147c478bd9Sstevel@tonic-gate	r_g7		G7_OFF
3157c478bd9Sstevel@tonic-gate	r_o0		O0_OFF
3167c478bd9Sstevel@tonic-gate	r_o1		O1_OFF
3177c478bd9Sstevel@tonic-gate	r_o2		O2_OFF
3187c478bd9Sstevel@tonic-gate	r_o3		O3_OFF
3197c478bd9Sstevel@tonic-gate	r_o4		O4_OFF
3207c478bd9Sstevel@tonic-gate	r_o5		O5_OFF
3217c478bd9Sstevel@tonic-gate	r_o6		O6_OFF
3227c478bd9Sstevel@tonic-gate	r_o7		O7_OFF
3237c478bd9Sstevel@tonic-gate	r_pc		PC_OFF
3247c478bd9Sstevel@tonic-gate	r_npc		NPC_OFF
3257c478bd9Sstevel@tonic-gate	r_y		Y_OFF
3267c478bd9Sstevel@tonic-gate
3277c478bd9Sstevel@tonic-gate\ XXX - doesn't preserve case up above
3287c478bd9Sstevel@tonic-gate\#define	nPC_OFF		NPC_OFF
3297c478bd9Sstevel@tonic-gate
3307c478bd9Sstevel@tonic-gateflushmeter	FM_SIZE
3317c478bd9Sstevel@tonic-gate	f_ctx		FM_CTX
3327c478bd9Sstevel@tonic-gate	f_usr		FM_USR
3337c478bd9Sstevel@tonic-gate	f_region	FM_REGION
3347c478bd9Sstevel@tonic-gate	f_segment	FM_SEGMENT
3357c478bd9Sstevel@tonic-gate	f_page		FM_PAGE
3367c478bd9Sstevel@tonic-gate	f_partial	FM_PARTIAL
3377c478bd9Sstevel@tonic-gate
3387c478bd9Sstevel@tonic-gateautovec		AUTOVECSIZE
3397c478bd9Sstevel@tonic-gate	av_vector
3407c478bd9Sstevel@tonic-gate	av_intarg
3417c478bd9Sstevel@tonic-gate
3427c478bd9Sstevel@tonic-gatecpu	CPUSIZE
3437c478bd9Sstevel@tonic-gate	cpu_id
3447c478bd9Sstevel@tonic-gate	cpu_flags
3457c478bd9Sstevel@tonic-gate	cpu_thread
3467c478bd9Sstevel@tonic-gate	cpu_thread_lock
3477c478bd9Sstevel@tonic-gate	cpu_kprunrun
3487c478bd9Sstevel@tonic-gate	cpu_lwp
3497c478bd9Sstevel@tonic-gate	cpu_fpowner
3507c478bd9Sstevel@tonic-gate	cpu_idle_thread
3517c478bd9Sstevel@tonic-gate	cpu_intr_thread
3527c478bd9Sstevel@tonic-gate	cpu_intr_actv
3537c478bd9Sstevel@tonic-gate	cpu_base_spl
3547c478bd9Sstevel@tonic-gate	cpu_intr_stack
3557c478bd9Sstevel@tonic-gate	cpu_stats.sys.cpumigrate	CPU_STATS_SYS_CPUMIGRATE
3567c478bd9Sstevel@tonic-gate	cpu_stats.sys.intr		CPU_STATS_SYS_INTR
3577c478bd9Sstevel@tonic-gate	cpu_stats.sys.intrunpin		CPU_STATS_SYS_INTRUNPIN
3587c478bd9Sstevel@tonic-gate	cpu_stats.sys.intrblk		CPU_STATS_SYS_INTRBLK
3597c478bd9Sstevel@tonic-gate	cpu_stats.sys.syscall		CPU_STATS_SYS_SYSCALL
3607c478bd9Sstevel@tonic-gate	cpu_profile_pc
3617c478bd9Sstevel@tonic-gate	cpu_profile_upc
3627c478bd9Sstevel@tonic-gate	cpu_profile_pil
3637c478bd9Sstevel@tonic-gate	cpu_ftrace.ftd_state		CPU_FTRACE_STATE
364eda89462Sesolom	cpu_mstate
365eda89462Sesolom	cpu_intracct
3667c478bd9Sstevel@tonic-gate	cpu_m				CPU_MCPU
3677c478bd9Sstevel@tonic-gate	cpu_m.divisor			CPU_DIVISOR
3687c478bd9Sstevel@tonic-gate	cpu_m.intrstat			CPU_INTRSTAT
3697c478bd9Sstevel@tonic-gate	cpu_m.pil_high_start		CPU_PIL_HIGH_START
3707c478bd9Sstevel@tonic-gate	cpu_m.intr_tail			INTR_TAIL
3717c478bd9Sstevel@tonic-gate	cpu_m.intr_head			INTR_HEAD
3727c478bd9Sstevel@tonic-gate	cpu_m.intr_pool			INTR_POOL
3737c478bd9Sstevel@tonic-gate	cpu_m.tl1_hdlr			CPU_TL1_HDLR
3747c478bd9Sstevel@tonic-gate	cpu_m.intrcnt			CPU_INTRCNT
3757c478bd9Sstevel@tonic-gate	cpu_m.tmp1			CPU_TMP1
3767c478bd9Sstevel@tonic-gate	cpu_m.tmp2			CPU_TMP2
3777c478bd9Sstevel@tonic-gate	cpu_m.mpcb			CPU_MPCB
3787c478bd9Sstevel@tonic-gate	cpu_m.cpu_private		CPU_PRIVATE
3791e2e7a75Shuah	cpu_m.cpu_mmu_idx		CPU_MMU_IDX
3801e2e7a75Shuah	cpu_m.cpu_mmu_ctxp            	CPU_MMU_CTXP
3817c478bd9Sstevel@tonic-gate	cpu_m.ptl1_state		CPU_PTL1
3827c478bd9Sstevel@tonic-gate
3837c478bd9Sstevel@tonic-gatecpu_core_t	CPU_CORE_SIZE	CPU_CORE_SHIFT
3847c478bd9Sstevel@tonic-gate	cpuc_dtrace_flags
3857c478bd9Sstevel@tonic-gate	cpuc_dtrace_illval
3867c478bd9Sstevel@tonic-gate
3877c478bd9Sstevel@tonic-gatecpuset_t	CPUSET_SIZE
3887c478bd9Sstevel@tonic-gate
3897c478bd9Sstevel@tonic-gateptl1_state	PTL1_STATE_SIZE
3907c478bd9Sstevel@tonic-gate	ptl1_regs
3917c478bd9Sstevel@tonic-gate	ptl1_entry_count
3927c478bd9Sstevel@tonic-gate	ptl1_stktop
3937c478bd9Sstevel@tonic-gate
3947c478bd9Sstevel@tonic-gateptl1_trapregs
3957c478bd9Sstevel@tonic-gate	ptl1_tl
3967c478bd9Sstevel@tonic-gate	ptl1_tt
3977c478bd9Sstevel@tonic-gate	ptl1_tstate
3987c478bd9Sstevel@tonic-gate	ptl1_tpc
3997c478bd9Sstevel@tonic-gate	ptl1_tnpc
4007c478bd9Sstevel@tonic-gate
4017c478bd9Sstevel@tonic-gatelgrp_ld		LGRP_LD_SIZE
4027c478bd9Sstevel@tonic-gate	lpl_loadavg
4037c478bd9Sstevel@tonic-gate	lpl_ncpu
4047c478bd9Sstevel@tonic-gate	lpl_lgrpid
4057c478bd9Sstevel@tonic-gate
4067c478bd9Sstevel@tonic-gateintr_vector INTR_VECTOR_SIZE INTR_VECTOR_SHIFT
4077c478bd9Sstevel@tonic-gate	iv_handler
4087c478bd9Sstevel@tonic-gate	iv_arg
4097c478bd9Sstevel@tonic-gate	iv_pil
4107c478bd9Sstevel@tonic-gate	iv_pending
4117c478bd9Sstevel@tonic-gate	iv_payload_buf
4127c478bd9Sstevel@tonic-gate	iv_softint_arg2
4137c478bd9Sstevel@tonic-gate
4147c478bd9Sstevel@tonic-gatedmv_disp DMV_DISP_SIZE DMV_DISP_SHIFT
4157c478bd9Sstevel@tonic-gate	dmv_func
4167c478bd9Sstevel@tonic-gate	dmv_arg
4177c478bd9Sstevel@tonic-gate
4187c478bd9Sstevel@tonic-gateintr_req	INTR_SIZE
4197c478bd9Sstevel@tonic-gate	intr_number
4207c478bd9Sstevel@tonic-gate	intr_next
4217c478bd9Sstevel@tonic-gate
4227c478bd9Sstevel@tonic-gatespin_mutex SM_SIZE
4237c478bd9Sstevel@tonic-gate	m_spinlock
4247c478bd9Sstevel@tonic-gate
4257c478bd9Sstevel@tonic-gatei_ndi_err	NDI_ERR_SIZE
4267c478bd9Sstevel@tonic-gate	err_ena
4277c478bd9Sstevel@tonic-gate	err_status
4287c478bd9Sstevel@tonic-gate	err_ontrap
4297c478bd9Sstevel@tonic-gate
4307c478bd9Sstevel@tonic-gateddi_acc_impl	DDI_ACC_IMPL_SIZE
4317c478bd9Sstevel@tonic-gate	ahi_common
4327c478bd9Sstevel@tonic-gate	ahi_get8
4337c478bd9Sstevel@tonic-gate	ahi_get16
4347c478bd9Sstevel@tonic-gate	ahi_get32
4357c478bd9Sstevel@tonic-gate	ahi_get64
4367c478bd9Sstevel@tonic-gate	ahi_put8
4377c478bd9Sstevel@tonic-gate	ahi_put16
4387c478bd9Sstevel@tonic-gate	ahi_put32
4397c478bd9Sstevel@tonic-gate	ahi_put64
4407c478bd9Sstevel@tonic-gate	ahi_rep_get8
4417c478bd9Sstevel@tonic-gate	ahi_rep_get16
4427c478bd9Sstevel@tonic-gate	ahi_rep_get32
4437c478bd9Sstevel@tonic-gate	ahi_rep_get64
4447c478bd9Sstevel@tonic-gate	ahi_rep_put8
4457c478bd9Sstevel@tonic-gate	ahi_rep_put16
4467c478bd9Sstevel@tonic-gate	ahi_rep_put32
4477c478bd9Sstevel@tonic-gate	ahi_rep_put64
4487c478bd9Sstevel@tonic-gate	ahi_fault_check
4497c478bd9Sstevel@tonic-gate	ahi_fault
4507c478bd9Sstevel@tonic-gate	ahi_err
4517c478bd9Sstevel@tonic-gate
4527c478bd9Sstevel@tonic-gatestdata	STDATA_SIZE
4537c478bd9Sstevel@tonic-gate	sd_lock
4547c478bd9Sstevel@tonic-gate
4557c478bd9Sstevel@tonic-gatequeue	 Q_SIZE
4567c478bd9Sstevel@tonic-gate	q_flag
4577c478bd9Sstevel@tonic-gate	q_next
4587c478bd9Sstevel@tonic-gate	q_stream
4597c478bd9Sstevel@tonic-gate	q_syncq
4607c478bd9Sstevel@tonic-gate	q_qinfo
4617c478bd9Sstevel@tonic-gate
4627c478bd9Sstevel@tonic-gateqinit	QI_SIZE
4637c478bd9Sstevel@tonic-gate	qi_putp
4647c478bd9Sstevel@tonic-gate
4657c478bd9Sstevel@tonic-gatesyncq	SQ_SIZE
4667c478bd9Sstevel@tonic-gate	sq_flags
4677c478bd9Sstevel@tonic-gate	sq_count
4687c478bd9Sstevel@tonic-gate	sq_lock
4697c478bd9Sstevel@tonic-gate	sq_wait
4707c478bd9Sstevel@tonic-gate	sq_exitwait
4717c478bd9Sstevel@tonic-gate
4727c478bd9Sstevel@tonic-gatebus_ops		BUS_OPS_SIZE
4737c478bd9Sstevel@tonic-gate	bus_dma_map		OPS_MAP
4747c478bd9Sstevel@tonic-gate	bus_dma_allochdl	OPS_ALLOCHDL
4757c478bd9Sstevel@tonic-gate	bus_dma_freehdl		OPS_FREEHDL
4767c478bd9Sstevel@tonic-gate	bus_dma_bindhdl		OPS_BINDHDL
4777c478bd9Sstevel@tonic-gate	bus_dma_unbindhdl	OPS_UNBINDHDL
4787c478bd9Sstevel@tonic-gate	bus_dma_flush		OPS_FLUSH
4797c478bd9Sstevel@tonic-gate	bus_dma_win		OPS_WIN
4807c478bd9Sstevel@tonic-gate	bus_dma_ctl		OPS_MCTL
4817c478bd9Sstevel@tonic-gate	bus_ctl			OPS_CTL
4827c478bd9Sstevel@tonic-gate
4837c478bd9Sstevel@tonic-gatedev_ops		DEV_OPS_SIZE
4847c478bd9Sstevel@tonic-gate	devo_bus_ops	DEVI_BUS_OPS
4857c478bd9Sstevel@tonic-gate
4867c478bd9Sstevel@tonic-gatedev_info	DEVI_SIZE
4877c478bd9Sstevel@tonic-gate	devi_ops	DEVI_DEV_OPS
4887c478bd9Sstevel@tonic-gate	devi_bus_dma_win
4897c478bd9Sstevel@tonic-gate	devi_bus_dma_allochdl
4907c478bd9Sstevel@tonic-gate	devi_bus_dma_freehdl
4917c478bd9Sstevel@tonic-gate	devi_bus_dma_bindhdl
4927c478bd9Sstevel@tonic-gate	devi_bus_dma_unbindhdl
4937c478bd9Sstevel@tonic-gate	devi_bus_dma_flush
4947c478bd9Sstevel@tonic-gate	devi_bus_dma_unbindfunc
4957c478bd9Sstevel@tonic-gate	devi_bus_ctl
4967c478bd9Sstevel@tonic-gate	devi_bus_dma_map
4977c478bd9Sstevel@tonic-gate	devi_bus_dma_ctl
4987c478bd9Sstevel@tonic-gate
4997c478bd9Sstevel@tonic-gatekstat_io
5007c478bd9Sstevel@tonic-gate	wtime		KSTAT_IO_WTIME
5017c478bd9Sstevel@tonic-gate	wlentime	KSTAT_IO_WLENTIME
5027c478bd9Sstevel@tonic-gate	wlastupdate	KSTAT_IO_WLASTUPDATE
5037c478bd9Sstevel@tonic-gate	rtime		KSTAT_IO_RTIME
5047c478bd9Sstevel@tonic-gate	rlentime	KSTAT_IO_RLENTIME
5057c478bd9Sstevel@tonic-gate	rlastupdate	KSTAT_IO_RLASTUPDATE
5067c478bd9Sstevel@tonic-gate	wcnt		KSTAT_IO_WCNT
5077c478bd9Sstevel@tonic-gate	rcnt		KSTAT_IO_RCNT
5087c478bd9Sstevel@tonic-gate
5097c478bd9Sstevel@tonic-gateddi_dma_impl
5107c478bd9Sstevel@tonic-gate	dmai_rflags	DMA_HANDLE_RFLAGS
5117c478bd9Sstevel@tonic-gate	dmai_rdip	DMA_HANDLE_RDIP
5127c478bd9Sstevel@tonic-gate
5137c478bd9Sstevel@tonic-gateon_trap_data
5147c478bd9Sstevel@tonic-gate	ot_prot
5157c478bd9Sstevel@tonic-gate	ot_trap
5167c478bd9Sstevel@tonic-gate	ot_trampoline
5177c478bd9Sstevel@tonic-gate	ot_jmpbuf
5187c478bd9Sstevel@tonic-gate	ot_prev
5197c478bd9Sstevel@tonic-gate	ot_handle
5207c478bd9Sstevel@tonic-gate	ot_pad1
5217c478bd9Sstevel@tonic-gate
5227c478bd9Sstevel@tonic-gatefpustat_kstat	FPUSTAT_KSTAT_SIZE
5237c478bd9Sstevel@tonic-gate	fpu_unfinished_traps.value	FPUSTAT_UNFIN_KSTAT
5247c478bd9Sstevel@tonic-gate
5257c478bd9Sstevel@tonic-gatefpuinfo_kstat	FPUINFO_KSTAT_SIZE
5267c478bd9Sstevel@tonic-gate	fpu_sim_fitos.value		FPUINFO_FITOS_KSTAT
5277c478bd9Sstevel@tonic-gate
5287c478bd9Sstevel@tonic-gatemod_stub_info	MODS_SIZE
5297c478bd9Sstevel@tonic-gate	mods_func_adr	MODS_INSTFCN
5307c478bd9Sstevel@tonic-gate	mods_errfcn	MODS_RETFCN
5317c478bd9Sstevel@tonic-gate	mods_flag	MODS_FLAG
5327c478bd9Sstevel@tonic-gate
5337c478bd9Sstevel@tonic-gatecopyops
5347c478bd9Sstevel@tonic-gate	cp_copyin
5357c478bd9Sstevel@tonic-gate	cp_xcopyin
5367c478bd9Sstevel@tonic-gate	cp_copyout
5377c478bd9Sstevel@tonic-gate	cp_xcopyout
5387c478bd9Sstevel@tonic-gate	cp_copyinstr
5397c478bd9Sstevel@tonic-gate	cp_copyoutstr
5407c478bd9Sstevel@tonic-gate	cp_fuword8
5417c478bd9Sstevel@tonic-gate	cp_fuword16
5427c478bd9Sstevel@tonic-gate	cp_fuword32
5437c478bd9Sstevel@tonic-gate	cp_fuword64
5447c478bd9Sstevel@tonic-gate	cp_suword8
5457c478bd9Sstevel@tonic-gate	cp_suword16
5467c478bd9Sstevel@tonic-gate	cp_suword32
5477c478bd9Sstevel@tonic-gate	cp_suword64
5487c478bd9Sstevel@tonic-gate	cp_physio
5497c478bd9Sstevel@tonic-gate
550*9acbbeafSnn35248brand	BRAND_SIZE
551*9acbbeafSnn35248	b_machops
552