2 \ Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
3 \ Copyright 2012 Garrett D'Amore <garrett@damore.org>. All rights reserved.
4 \ Copyright 2016 Joyent, Inc.
8 \ The contents of this file are subject to the terms of the
9 \ Common Development and Distribution License (the "License").
10 \ You may not use this file except in compliance with the License.
12 \ You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
13 \ or http://www.opensolaris.org/os/licensing.
14 \ See the License for the specific language governing permissions
15 \ and limitations under the License.
17 \ When distributing Covered Code, include this CDDL HEADER in each
18 \ file and include the License file at usr/src/OPENSOLARIS.LICENSE.
19 \ If applicable, add the following below this CDDL HEADER, with the
20 \ fields enclosed by brackets "[]" replaced with your own identifying
21 \ information: Portions Copyright [yyyy] [name of copyright owner]
28 \ offsets.in: input file to produce assym.h using the ctfstabs program
37 #include <sys/types.h>
38 #include <sys/bootsvcs.h>
39 #include <sys/systm.h>
40 #include <sys/sysinfo.h>
42 #include <sys/thread.h>
44 #include <sys/cpuvar.h>
46 #include <sys/privregs.h>
47 #include <sys/segments.h>
48 #include <sys/devops.h>
49 #include <sys/ddi_impldefs.h>
51 #include <sys/avintr.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>
61 #include <sys/dtrace.h>
62 #include <sys/brand.h>
63 #include <sys/fastboot.h>
64 #include <sys/cpr_wakecode.h>
65 #include <sys/comm_page.h>
105 t_lwpchan.lc_wchan T_WCHAN
125 _tu._ts._t_astflag T_ASTFLAG
126 _tu._ts._t_post_sys T_POST_SYS
127 _tu._t_post_sys_ast T_POST_SYS_AST
146 \#define LABEL_PC LABEL_VAL
147 \#define LABEL_SP _CONST(LABEL_VAL + LABEL_VAL_INCR)
148 \#define T_PC _CONST(T_LABEL + LABEL_PC)
149 \#define T_SP _CONST(T_LABEL + LABEL_SP)
161 lwp_mstate.ms_acct LWP_MS_ACCT
162 lwp_mstate.ms_prev LWP_MS_PREV
163 lwp_mstate.ms_start LWP_MS_START
164 lwp_mstate.ms_state_start LWP_MS_STATE_START
166 lwp_ru.sysc LWP_RU_SYSC
168 \#define LWP_ACCT_USER _CONST(LWP_MS_ACCT + _MUL(LMS_USER, LWP_MS_ACCT_INCR))
169 \#define LWP_ACCT_SYSTEM _CONST(LWP_MS_ACCT + _MUL(LMS_SYSTEM, LWP_MS_ACCT_INCR))
172 fpu_regs FPU_CTX_FPU_REGS
173 fpu_flags FPU_CTX_FPU_FLAGS
174 fpu_xsave_mask FPU_CTX_FPU_XSAVE_MASK
176 fxsave_state FXSAVE_STATE_SIZE
177 fx_fsw FXSAVE_STATE_FSW
178 fx_mxcsr_mask FXSAVE_STATE_MXCSR_MASK
209 cpu_stats.sys.cpumigrate CPU_STATS_SYS_CPUMIGRATE
210 cpu_stats.sys.intr CPU_STATS_SYS_INTR
211 cpu_stats.sys.intrblk CPU_STATS_SYS_INTRBLK
212 cpu_stats.sys.syscall CPU_STATS_SYS_SYSCALL
216 cpu_ftrace.ftd_state CPU_FTRACE_STATE
220 \#define CPU_INTR_ACTV_REF _CONST(CPU_INTR_ACTV + 2)
223 cpu_m.pil_high_start CPU_PIL_HIGH_START
224 cpu_m.intrstat CPU_INTRSTAT
225 cpu_m.mcpu_current_hat CPU_CURRENT_HAT
226 cpu_m.mcpu_gdt CPU_GDT
227 cpu_m.mcpu_idt CPU_IDT
228 cpu_m.mcpu_tss CPU_TSS
229 cpu_m.mcpu_softinfo CPU_SOFTINFO
230 cpu_m.mcpu_pri CPU_PRI
241 devi_ops DEVI_DEV_OPS
244 devi_bus_dma_allochdl
247 devi_bus_dma_unbindhdl
252 devo_bus_ops DEVI_BUS_OPS
258 bus_dma_allochdl OPS_ALLOCHDL
259 bus_dma_freehdl OPS_FREEHDL
260 bus_dma_bindhdl OPS_BINDHDL
261 bus_dma_unbindhdl OPS_UNBINDHDL
262 bus_dma_flush OPS_FLUSH
265 sysent SYSENT_SIZE SYSENT_SIZE_SHIFT
295 rm_cpu_halt_code CPUHALTCODEOFF
296 rm_cpu_halted CPUHALTEDOFF
299 ahi_acc_attr ACC_ATTR
308 ahi_rep_get8 ACC_REP_GETB
309 ahi_rep_get16 ACC_REP_GETW
310 ahi_rep_get32 ACC_REP_GETL
311 ahi_rep_get64 ACC_REP_GETLL
312 ahi_rep_put8 ACC_REP_PUTB
313 ahi_rep_put16 ACC_REP_PUTW
314 ahi_rep_put32 ACC_REP_PUTL
315 ahi_rep_put64 ACC_REP_PUTLL
326 trap_trace_ctl_t __TRAPTR_SIZE TRAPTR_SIZE_SHIFT
328 ttc_first TRAPTR_FIRST
329 ttc_limit TRAPTR_LIMIT
331 trap_trace_rec_t TRAP_ENT_SIZE
333 ttr_info.idt_entry.vector TTR_VECTOR
334 ttr_info.idt_entry.ipl TTR_IPL
335 ttr_info.idt_entry.spl TTR_SPL
336 ttr_info.idt_entry.pri TTR_PRI
337 ttr_info.gate_entry.sysnum TTR_SYSNUM
347 dtrace_id_t DTRACE_IDSIZE
349 cpu_core CPU_CORE_SIZE CPU_CORE_SHIFT
353 timespec TIMESPEC_SIZE
355 gate_desc GATE_DESC_SIZE
357 desctbr_t DESCTBR_SIZE
361 mod_stub_info MODS_SIZE
362 mods_func_adr MODS_INSTFCN
363 mods_errfcn MODS_RETFCN
366 \#define TRAP_TSIZE _MUL(TRAP_ENT_SIZE, TRAPTR_NENT)
470 comm_page_s COMM_PAGE_S_SIZE