genassym.cf revision 1.42
11.42Syamt#	$NetBSD: genassym.cf,v 1.42 2005/11/07 11:42:34 yamt Exp $
21.9Smycroft
31.9Smycroft#
41.9Smycroft# Copyright (c) 1998 The NetBSD Foundation, Inc.
51.9Smycroft# All rights reserved.
61.9Smycroft#
71.9Smycroft# This code is derived from software contributed to The NetBSD Foundation
81.9Smycroft# by Charles M. Hannum.
91.9Smycroft#
101.9Smycroft# Redistribution and use in source and binary forms, with or without
111.9Smycroft# modification, are permitted provided that the following conditions
121.9Smycroft# are met:
131.9Smycroft# 1. Redistributions of source code must retain the above copyright
141.9Smycroft#    notice, this list of conditions and the following disclaimer.
151.9Smycroft# 2. Redistributions in binary form must reproduce the above copyright
161.9Smycroft#    notice, this list of conditions and the following disclaimer in the
171.9Smycroft#    documentation and/or other materials provided with the distribution.
181.9Smycroft# 3. All advertising materials mentioning features or use of this software
191.9Smycroft#    must display the following acknowledgement:
201.9Smycroft#        This product includes software developed by the NetBSD
211.9Smycroft#        Foundation, Inc. and its contributors.
221.9Smycroft# 4. Neither the name of The NetBSD Foundation nor the names of its
231.9Smycroft#    contributors may be used to endorse or promote products derived
241.9Smycroft#    from this software without specific prior written permission.
251.9Smycroft#
261.9Smycroft# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
271.9Smycroft# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
281.9Smycroft# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
291.9Smycroft# PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
301.9Smycroft# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
311.9Smycroft# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
321.9Smycroft# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
331.9Smycroft# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
341.9Smycroft# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
351.9Smycroft# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
361.9Smycroft# POSSIBILITY OF SUCH DAMAGE.
371.9Smycroft#
381.1Smycroft
391.1Smycroft#
401.1Smycroft# Copyright (c) 1982, 1990 The Regents of the University of California.
411.1Smycroft# All rights reserved.
421.1Smycroft#
431.1Smycroft# This code is derived from software contributed to Berkeley by
441.1Smycroft# William Jolitz.
451.1Smycroft#
461.1Smycroft# Redistribution and use in source and binary forms, with or without
471.1Smycroft# modification, are permitted provided that the following conditions
481.1Smycroft# are met:
491.1Smycroft# 1. Redistributions of source code must retain the above copyright
501.1Smycroft#    notice, this list of conditions and the following disclaimer.
511.1Smycroft# 2. Redistributions in binary form must reproduce the above copyright
521.1Smycroft#    notice, this list of conditions and the following disclaimer in the
531.1Smycroft#    documentation and/or other materials provided with the distribution.
541.1Smycroft# 3. All advertising materials mentioning features or use of this software
551.1Smycroft#    must display the following acknowledgement:
561.1Smycroft#	This product includes software developed by the University of
571.1Smycroft#	California, Berkeley and its contributors.
581.1Smycroft# 4. Neither the name of the University nor the names of its contributors
591.1Smycroft#    may be used to endorse or promote products derived from this software
601.1Smycroft#    without specific prior written permission.
611.1Smycroft#
621.1Smycroft# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
631.1Smycroft# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
641.1Smycroft# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
651.1Smycroft# ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
661.1Smycroft# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
671.1Smycroft# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
681.1Smycroft# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
691.1Smycroft# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
701.1Smycroft# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
711.1Smycroft# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
721.1Smycroft# SUCH DAMAGE.
731.1Smycroft#
741.1Smycroft#	@(#)genassym.c	5.11 (Berkeley) 5/10/91
751.1Smycroft#
761.1Smycroft
771.29Sjdolecekif defined(_KERNEL_OPT)
781.8Sthorpejinclude "opt_compat_svr4.h"
791.8Sthorpejinclude "opt_compat_freebsd.h"
801.8Sthorpejinclude "opt_compat_linux.h"
811.41Schristosinclude "opt_compat_netbsd.h"
821.32Sfvdlinclude "opt_multiprocessor.h"
831.22Sjdolecekendif
841.7Sthorpej
851.1Smycroftinclude <sys/param.h>
861.1Smycroftinclude <sys/proc.h>
871.1Smycroftinclude <sys/resourcevar.h>
881.1Smycroftinclude <sys/device.h>
891.1Smycroftinclude <sys/user.h>
901.1Smycroftinclude <sys/mbuf.h>
911.25Sfvdlinclude <netinet/in.h>
921.25Sfvdlinclude <netinet/in_systm.h>
931.25Sfvdlinclude <netinet/ip.h>
941.27Ssommerfeinclude <netinet/ip6.h>
951.25Sfvdlinclude <netinet/ip_var.h>
961.1Smycroft
971.18Sthorpejinclude <uvm/uvm.h>
981.6Smrg
991.1Smycroftinclude <machine/trap.h>
1001.1Smycroftinclude <machine/pmap.h>
1011.1Smycroftinclude <machine/vmparam.h>
1021.33Sfvdlinclude <machine/intr.h>
1031.33Sfvdlinclude <machine/types.h>
1041.1Smycroft
1051.22Sjdolecekif defined(_KERNEL) && !defined(_LKM)
1061.33Sfvdlinclude "ioapic.h"
1071.1Smycroftinclude "apm.h"
1081.22Sjdolecekendif
1091.1Smycroftif NAPM > 0
1101.3Sjtkinclude <machine/bioscall.h>
1111.1Smycroftinclude <machine/apmvar.h>
1121.1Smycroftendif
1131.1Smycroft
1141.41Schristosinclude <compat/sys/signal.h>
1151.41Schristos
1161.1Smycroftifdef COMPAT_SVR4
1171.1Smycroftinclude <compat/svr4/svr4_ucontext.h>
1181.1Smycroftendif
1191.1Smycroft
1201.1Smycroftifdef COMPAT_LINUX
1211.13Sfvdlinclude <compat/linux/common/linux_signal.h>
1221.13Sfvdlinclude <compat/linux/common/linux_machdep.h>
1231.1Smycroftendif
1241.1Smycroft
1251.1Smycroftifdef COMPAT_FREEBSD
1261.1Smycroftinclude <machine/freebsd_machdep.h>
1271.1Smycroftendif
1281.1Smycroft
1291.32Sfvdlifdef MULTIPROCESSOR
1301.32Sfvdlinclude <machine/cpu.h>
1311.32Sfvdlendif
1321.32Sfvdl
1331.33Sfvdlif NIOAPIC > 0
1341.37Sfvdlinclude <machine/i82093reg.h>
1351.33Sfvdlinclude <machine/i82093var.h>
1361.33Sfvdlendif
1371.33Sfvdl
1381.22Sjdolecekif defined(_KERNEL) && !defined(_LKM)
1391.1Smycroftinclude "isa.h"
1401.22Sjdolecekendif
1411.1Smycroftif NISA > 0
1421.14Scgdinclude <machine/isa_machdep.h>
1431.1Smycroftendif
1441.1Smycroft
1451.32Sfvdlinclude <machine/tlog.h>
1461.36Sthorpej
1471.36Sthorpejdefine	PAGE_SIZE		PAGE_SIZE
1481.36Sthorpej
1491.35Sthorpejdefine	LSRUN			LSRUN
1501.35Sthorpejdefine	LSONPROC		LSONPROC
1511.1Smycroft
1521.42Syamtdefine	PTE_BASE		PTE_BASE
1531.42Syamtdefine	UPAGES			UPAGES
1541.42Syamtdefine	USPACE			USPACE
1551.42Syamtdefine	KERNBASE		KERNBASE
1561.42Syamtdefine	KERNTEXTOFF		KERNTEXTOFF
1571.42Syamt
1581.42Syamtdefine	PGSHIFT			PGSHIFT
1591.42Syamtdefine	PGOFSET			PGOFSET
1601.42Syamtdefine	PDSHIFT			PDSHIFT
1611.42Syamtdefine	PDOFSET			PDOFSET
1621.42Syamtdefine	NBPD			NBPD
1631.42Syamt
1641.42Syamtdefine	PG_RW			PG_RW
1651.42Syamtdefine	PG_V			PG_V
1661.42Syamtdefine	PG_KW			PG_KW
1671.42Syamtdefine	PG_KR			PG_KR
1681.42Syamt
1691.6Smrgdefine	PDSLOT_PTE		PDSLOT_PTE
1701.6Smrgdefine	PDSLOT_APTE		PDSLOT_APTE
1711.6Smrgdefine	PDSLOT_KERN		PDSLOT_KERN
1721.6Smrgdefine	NKPTP_MIN		NKPTP_MIN
1731.6Smrgdefine	NKPTP_MAX		NKPTP_MAX
1741.1Smycroft
1751.1Smycroftdefine	VM_MAXUSER_ADDRESS	(int)VM_MAXUSER_ADDRESS
1761.18Sthorpej
1771.18Sthorpejdefine	UVM_PAGE_IDLE_ZERO	offsetof(struct uvm, page_idle_zero)
1781.1Smycroft
1791.35Sthorpejdefine	L_ADDR			offsetof(struct lwp, l_addr)
1801.35Sthorpejdefine	L_BACK			offsetof(struct lwp, l_back)
1811.35Sthorpejdefine	L_FORW			offsetof(struct lwp, l_forw)
1821.35Sthorpejdefine	L_PRIORITY		offsetof(struct lwp, l_priority)
1831.35Sthorpejdefine	L_STAT			offsetof(struct lwp, l_stat)
1841.35Sthorpejdefine	L_WCHAN			offsetof(struct lwp, l_wchan)
1851.35Sthorpejdefine	L_PROC			offsetof(struct lwp, l_proc)
1861.35Sthorpejdefine	L_MD_TSS_SEL		offsetof(struct lwp, l_md.md_tss_sel)
1871.35Sthorpejdefine	L_MD_REGS		offsetof(struct lwp, l_md.md_regs)
1881.35Sthorpejdefine	L_CPU			offsetof(struct lwp, l_cpu)
1891.1Smycroftdefine	P_FLAG			offsetof(struct proc, p_flag)
1901.39Sdsldefine	P_RASLIST		offsetof(struct proc, p_raslist)
1911.24Smycroftdefine	P_MD_SYSCALL		offsetof(struct proc, p_md.md_syscall)
1921.35Sthorpejdefine	P_MD_ASTPENDING		offsetof(struct proc, p_md.md_astpending)
1931.1Smycroft
1941.1Smycroftdefine	P_SYSTEM		P_SYSTEM
1951.1Smycroft
1961.1Smycroftdefine	M_DATA			offsetof(struct mbuf, m_data)
1971.1Smycroftdefine	M_LEN			offsetof(struct mbuf, m_len)
1981.1Smycroftdefine	M_NEXT			offsetof(struct mbuf, m_next)
1991.25Sfvdl
2001.25Sfvdldefine	IP_SRC			offsetof(struct ip, ip_src)
2011.25Sfvdldefine	IP_DST			offsetof(struct ip, ip_dst)
2021.27Ssommerfe
2031.27Ssommerfedefine	IP6_SRC			offsetof(struct ip6_hdr, ip6_src)
2041.27Ssommerfedefine	IP6_DST			offsetof(struct ip6_hdr, ip6_dst)
2051.1Smycroft
2061.6Smrgdefine	V_TRAP			offsetof(struct uvmexp, traps)
2071.6Smrgdefine	V_INTR			offsetof(struct uvmexp, intrs)
2081.1Smycroft
2091.1Smycroftdefine	PCB_CR3			offsetof(struct pcb, pcb_cr3)
2101.1Smycroftdefine	PCB_EBP			offsetof(struct pcb, pcb_ebp)
2111.1Smycroftdefine	PCB_ESP			offsetof(struct pcb, pcb_esp)
2121.1Smycroftdefine	PCB_CR0			offsetof(struct pcb, pcb_cr0)
2131.1Smycroftdefine	PCB_LDT_SEL		offsetof(struct pcb, pcb_ldt_sel)
2141.1Smycroftdefine	PCB_ONFAULT		offsetof(struct pcb, pcb_onfault)
2151.32Sfvdldefine	PCB_FPCPU		offsetof(struct pcb, pcb_fpcpu)
2161.1Smycroft
2171.1Smycroftdefine	TF_CS			offsetof(struct trapframe, tf_cs)
2181.5Smycroftdefine	TF_EIP			offsetof(struct trapframe, tf_eip)
2191.4Smycroftdefine	TF_ERR			offsetof(struct trapframe, tf_err)
2201.1Smycroftdefine	TF_TRAPNO		offsetof(struct trapframe, tf_trapno)
2211.1Smycroftdefine	TF_EFLAGS		offsetof(struct trapframe, tf_eflags)
2221.1Smycroft
2231.33Sfvdldefine	TF_GS			offsetof(struct trapframe, tf_gs)
2241.33Sfvdldefine	TF_FS			offsetof(struct trapframe, tf_fs)
2251.33Sfvdldefine	TF_ES			offsetof(struct trapframe, tf_es)
2261.33Sfvdldefine	TF_DS			offsetof(struct trapframe, tf_ds)
2271.33Sfvdldefine	TF_EDI			offsetof(struct trapframe, tf_edi)
2281.33Sfvdldefine	TF_ESI			offsetof(struct trapframe, tf_esi)
2291.33Sfvdldefine	TF_EBP			offsetof(struct trapframe, tf_ebp)
2301.33Sfvdldefine	TF_EBX			offsetof(struct trapframe, tf_ebx)
2311.33Sfvdldefine	TF_EDX			offsetof(struct trapframe, tf_edx)
2321.33Sfvdldefine	TF_ECX			offsetof(struct trapframe, tf_ecx)
2331.33Sfvdldefine	TF_EAX			offsetof(struct trapframe, tf_eax)
2341.33Sfvdl
2351.33Sfvdldefine	TF_PUSHSIZE		offsetof(struct trapframe, tf_trapno)
2361.33Sfvdl
2371.1Smycroftdefine	FRAMESIZE		sizeof(struct trapframe)
2381.1Smycroft
2391.1Smycroftifdef COMPAT_SVR4
2401.1Smycroftdefine	SVR4_SIGF_HANDLER	offsetof(struct svr4_sigframe, sf_handler)
2411.1Smycroftdefine	SVR4_SIGF_UC		offsetof(struct svr4_sigframe, sf_uc)
2421.1Smycroftendif
2431.1Smycroft
2441.1Smycroftifdef COMPAT_LINUX
2451.1Smycroftdefine	LINUX_SIGF_HANDLER	offsetof(struct linux_sigframe, sf_handler)
2461.1Smycroftdefine	LINUX_SIGF_SC		offsetof(struct linux_sigframe, sf_sc)
2471.34Schristosdefine	LINUX_RT_SIGF_HANDLER	offsetof(struct linux_rt_sigframe, sf_handler)
2481.38Schristosdefine	LINUX_RT_SIGF_UC	offsetof(struct linux_rt_sigframe, sf_uc)
2491.1Smycroftendif
2501.1Smycroft
2511.1Smycroftifdef COMPAT_FREEBSD
2521.1Smycroftdefine	FREEBSD_SIGF_HANDLER	offsetof(struct freebsd_sigframe, sf_handler)
2531.1Smycroftdefine	FREEBSD_SIGF_SC		offsetof(struct freebsd_sigframe, sf_sc)
2541.1Smycroftendif
2551.1Smycroft
2561.1Smycroftdefine	IH_FUN			offsetof(struct intrhand, ih_fun)
2571.1Smycroftdefine	IH_ARG			offsetof(struct intrhand, ih_arg)
2581.33Sfvdldefine	IH_LEVEL		offsetof(struct intrhand, ih_level)
2591.1Smycroftdefine	IH_NEXT			offsetof(struct intrhand, ih_next)
2601.1Smycroft
2611.1Smycroftif NAPM > 0
2621.1Smycroftdefine	APM_CODE32		offsetof(struct apm_connect_info, apm_code32_seg_base)
2631.1Smycroftdefine	APM_CODE16		offsetof(struct apm_connect_info, apm_code16_seg_base)
2641.1Smycroftdefine	APM_DATA		offsetof(struct apm_connect_info, apm_data_seg_base)
2651.1Smycroftdefine	APM_CODE32_LEN		offsetof(struct apm_connect_info, apm_code32_seg_len)
2661.1Smycroftdefine	APM_DATA_LEN		offsetof(struct apm_connect_info, apm_data_seg_len)
2671.1Smycroftdefine	APM_ENTRY		offsetof(struct apm_connect_info, apm_entrypt)
2681.1Smycroftdefine	APM_DETAIL		offsetof(struct apm_connect_info, apm_detail)
2691.1Smycroftdefine	APM_SIZE		sizeof(struct apm_connect_info)
2701.10Sjtkdefine	BIOSCALLREG_EAX		offsetof(struct bioscallregs, EAX)
2711.10Sjtkdefine	BIOSCALLREG_EBX		offsetof(struct bioscallregs, EBX)
2721.10Sjtkdefine	BIOSCALLREG_ECX		offsetof(struct bioscallregs, ECX)
2731.10Sjtkdefine	BIOSCALLREG_EDX		offsetof(struct bioscallregs, EDX)
2741.10Sjtkdefine	BIOSCALLREG_ESI		offsetof(struct bioscallregs, ESI)
2751.10Sjtkdefine	BIOSCALLREG_EDI		offsetof(struct bioscallregs, EDI)
2761.10Sjtkdefine	BIOSCALLREG_EFLAGS	offsetof(struct bioscallregs, EFLAGS)
2771.26Saugustssendif
2781.32Sfvdl
2791.32Sfvdldefine	CPU_INFO_SELF		offsetof(struct cpu_info, ci_self)
2801.32Sfvdldefine	CPU_INFO_RESCHED	offsetof(struct cpu_info, ci_want_resched)
2811.40Syamtdefine	CPU_INFO_WANT_PMAPLOAD	offsetof(struct cpu_info, ci_want_pmapload)
2821.40Syamtdefine	CPU_INFO_TLBSTATE	offsetof(struct cpu_info, ci_tlbstate)
2831.40Syamtdefine	TLBSTATE_VALID		TLBSTATE_VALID
2841.35Sthorpejdefine	CPU_INFO_CURLWP		offsetof(struct cpu_info, ci_curlwp)
2851.32Sfvdldefine	CPU_INFO_CURPCB		offsetof(struct cpu_info, ci_curpcb)
2861.32Sfvdldefine	CPU_INFO_IDLE_PCB	offsetof(struct cpu_info, ci_idle_pcb)
2871.32Sfvdldefine  CPU_INFO_IDLE_TSS_SEL	offsetof(struct cpu_info, ci_idle_tss_sel)
2881.32Sfvdldefine	CPU_INFO_ASTPENDING	offsetof(struct cpu_info, ci_astpending)
2891.32Sfvdl
2901.32Sfvdldefine	CPU_INFO_LEVEL		offsetof(struct cpu_info, ci_cpuid_level)
2911.32Sfvdldefine	CPU_INFO_VENDOR		offsetof(struct cpu_info, ci_vendor[0])
2921.32Sfvdldefine	CPU_INFO_SIGNATURE	offsetof(struct cpu_info, ci_signature)
2931.32Sfvdldefine	CPU_INFO_FEATURES	offsetof(struct cpu_info, ci_feature_flags)
2941.32Sfvdldefine	CPU_INFO_BRAND		offsetof(struct cpu_info, ci_brand_id)
2951.32Sfvdl
2961.32Sfvdldefine	CPU_TLOG_OFFSET		offsetof(struct cpu_info, ci_tlog_offset)
2971.32Sfvdldefine	CPU_TLOG_BASE		offsetof(struct cpu_info, ci_tlog_base)
2981.32Sfvdl
2991.32Sfvdldefine	CPU_INFO_GDT		offsetof(struct cpu_info, ci_gdt)
3001.33Sfvdldefine	CPU_INFO_IPENDING	offsetof(struct cpu_info, ci_ipending)
3011.33Sfvdldefine	CPU_INFO_IMASK		offsetof(struct cpu_info, ci_imask)
3021.33Sfvdldefine	CPU_INFO_IUNMASK	offsetof(struct cpu_info, ci_iunmask)
3031.33Sfvdldefine	CPU_INFO_ILEVEL		offsetof(struct cpu_info, ci_ilevel)
3041.33Sfvdldefine	CPU_INFO_IDEPTH		offsetof(struct cpu_info, ci_idepth)
3051.33Sfvdldefine	CPU_INFO_ISOURCES	offsetof(struct cpu_info, ci_isources)
3061.33Sfvdl
3071.33Sfvdlif NIOAPIC > 0
3081.33Sfvdldefine		IOAPIC_SC_REG		offsetof(struct ioapic_softc, sc_reg)
3091.33Sfvdldefine		IOAPIC_SC_DATA		offsetof(struct ioapic_softc, sc_data)
3101.33Sfvdldefine		PIC_LOCK		offsetof(struct pic, pic_lock)
3111.33Sfvdlendif
3121.32Sfvdl
3131.32Sfvdldefine	SIZEOF_CPU_INFO		sizeof(struct cpu_info)
3141.32Sfvdl
3151.33Sfvdldefine        SIZEOF_ISOURCE          sizeof(struct intrsource)
3161.33Sfvdldefine        SIZEOF_ISTUB            sizeof(struct intrstub)
3171.33Sfvdl
3181.33Sfvdldefine		IS_RECURSE	offsetof(struct intrsource, is_recurse)
3191.33Sfvdldefine		IS_RESUME	offsetof(struct intrsource, is_resume)
3201.33Sfvdldefine		IS_EVCNTLO	offsetof(struct intrsource, is_evcnt.ev_count)
3211.33Sfvdldefine		IS_EVCNTHI	offsetof(struct intrsource, is_evcnt.ev_count)+4
3221.33Sfvdldefine		IS_HANDLERS	offsetof(struct intrsource, is_handlers)
3231.33Sfvdldefine		IS_PIC		offsetof(struct intrsource, is_pic)
3241.33Sfvdldefine		IS_FLAGS	offsetof(struct intrsource, is_flags)
3251.33Sfvdldefine		IS_PIN		offsetof(struct intrsource, is_pin)
3261.33Sfvdldefine		IS_TYPE		offsetof(struct intrsource, is_type)
3271.33Sfvdldefine		IS_MAXLEVEL	offsetof(struct intrsource, is_maxlevel)
3281.33Sfvdl
3291.32Sfvdldefine	TREC_SP			offsetof(struct trec, tr_sp)
3301.32Sfvdldefine	TREC_HPC		offsetof(struct trec, tr_hpc)
3311.32Sfvdldefine	TREC_IPC		offsetof(struct trec, tr_ipc)
3321.32Sfvdldefine	TREC_TSC		offsetof(struct trec, tr_tsc)
3331.32Sfvdldefine	TREC_LBF		offsetof(struct trec, tr_lbf)
3341.32Sfvdldefine	TREC_LBT		offsetof(struct trec, tr_lbt)
3351.32Sfvdldefine	TREC_IBF		offsetof(struct trec, tr_ibf)
3361.32Sfvdldefine	TREC_IBT		offsetof(struct trec, tr_ibt)
3371.32Sfvdl
3381.32Sfvdldefine	SIZEOF_TREC		sizeof(struct trec)
3391.32Sfvdldefine	SIZEOF_TLOG		sizeof(struct tlog)
3401.42Syamt
3411.42Syamtdefine	IPL_NONE		IPL_NONE
3421.42Syamtdefine	IPL_SCHED		IPL_SCHED
3431.42Syamtdefine	IPL_CLOCK		IPL_CLOCK
3441.42Syamtdefine	IPL_HIGH		IPL_HIGH
3451.42Syamtdefine	IPL_IPI			IPL_IPI
3461.42Syamt
3471.42Syamtdefine	IPL_SOFTNET		IPL_SOFTNET
3481.42Syamtdefine	IPL_SOFTCLOCK		IPL_SOFTCLOCK
3491.42Syamtdefine	IPL_SOFTSERIAL		IPL_SOFTSERIAL
3501.42Syamt
3511.42Syamtdefine	LIR_IPI			LIR_IPI
3521.42Syamtdefine	LIR_TIMER		LIR_TIMER
3531.42Syamt
3541.42Syamtdefine	SIR_NET			SIR_NET
3551.42Syamtdefine	SIR_CLOCK		SIR_CLOCK
3561.42Syamtdefine	SIR_SERIAL		SIR_SERIAL
3571.42Syamt
3581.42Syamtdefine	IREENT_MAGIC		IREENT_MAGIC
3591.42Syamt
3601.42Syamtdefine	X86_SOFTINTR_SOFTSERIAL	X86_SOFTINTR_SOFTSERIAL
3611.42Syamtdefine	X86_SOFTINTR_SOFTNET	X86_SOFTINTR_SOFTNET
3621.42Syamtdefine	X86_SOFTINTR_SOFTCLOCK	X86_SOFTINTR_SOFTCLOCK
3631.42Syamt
3641.42Syamtdefine	PSL_AC			PSL_AC
3651.42Syamtdefine	PSL_MBO			PSL_MBO
3661.42Syamtdefine	PSL_ID			PSL_ID
3671.42Syamtdefine	PSL_VM			PSL_VM
368