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