17c478bd9Sstevel@tonic-gate\ 27c478bd9Sstevel@tonic-gate\ CDDL HEADER START 37c478bd9Sstevel@tonic-gate\ 47c478bd9Sstevel@tonic-gate\ The contents of this file are subject to the terms of the 51ae08745Sheppo\ Common Development and Distribution License (the "License"). 61ae08745Sheppo\ You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate\ 87c478bd9Sstevel@tonic-gate\ You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate\ or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate\ See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate\ and limitations under the License. 127c478bd9Sstevel@tonic-gate\ 137c478bd9Sstevel@tonic-gate\ When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate\ file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate\ If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate\ fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate\ information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate\ 197c478bd9Sstevel@tonic-gate\ CDDL HEADER END 207c478bd9Sstevel@tonic-gate\ 21*125be069SJason Beloro\ Copyright 2009 Sun Microsystems, Inc. All rights reserved. 227c478bd9Sstevel@tonic-gate\ Use is subject to license terms. 237c478bd9Sstevel@tonic-gate\ 247c478bd9Sstevel@tonic-gate\ offsets.in: input file to produce assym.h using the stabs program 257c478bd9Sstevel@tonic-gate\ 267c478bd9Sstevel@tonic-gate\ 277c478bd9Sstevel@tonic-gate\ Guidelines: 287c478bd9Sstevel@tonic-gate\ 297c478bd9Sstevel@tonic-gate\ A blank line is required between structure/union/intrinsic names. 307c478bd9Sstevel@tonic-gate\ 317c478bd9Sstevel@tonic-gate\ The general form is: 327c478bd9Sstevel@tonic-gate\ 337c478bd9Sstevel@tonic-gate\ name size_define [shift_define] 347c478bd9Sstevel@tonic-gate\ [member_name [offset_define]] 357c478bd9Sstevel@tonic-gate\ {blank line} 367c478bd9Sstevel@tonic-gate\ 377c478bd9Sstevel@tonic-gate\ If no individual member_name's are specified then all members are processed. 387c478bd9Sstevel@tonic-gate\ If offset_define is not specified then the member_name is 397c478bd9Sstevel@tonic-gate\ converted to all caps and used instead. If the size of an item is 407c478bd9Sstevel@tonic-gate\ a power of two then an optional shift count may be output using 417c478bd9Sstevel@tonic-gate\ shift_define as the name but only if shift_define was specified. 427c478bd9Sstevel@tonic-gate\ 437c478bd9Sstevel@tonic-gate\ Arrays cause stabs to automatically output the per-array-item increment 447c478bd9Sstevel@tonic-gate\ in addition to the base address: 457c478bd9Sstevel@tonic-gate\ 467c478bd9Sstevel@tonic-gate\ foo FOO_SIZE 477c478bd9Sstevel@tonic-gate\ array FOO_ARRAY 487c478bd9Sstevel@tonic-gate\ 497c478bd9Sstevel@tonic-gate\ results in: 507c478bd9Sstevel@tonic-gate\ 517c478bd9Sstevel@tonic-gate\ #define FOO_ARRAY 0x0 527c478bd9Sstevel@tonic-gate\ #define FOO_ARRAY_INCR 0x4 537c478bd9Sstevel@tonic-gate\ 547c478bd9Sstevel@tonic-gate\ which allows \#define's to be used to specify array items: 557c478bd9Sstevel@tonic-gate\ 567c478bd9Sstevel@tonic-gate\ #define FOO_0 (FOO_ARRAY + (0 * FOO_ARRAY_INCR)) 577c478bd9Sstevel@tonic-gate\ #define FOO_1 (FOO_ARRAY + (1 * FOO_ARRAY_INCR)) 587c478bd9Sstevel@tonic-gate\ ... 597c478bd9Sstevel@tonic-gate\ #define FOO_n (FOO_ARRAY + (n * FOO_ARRAY_INCR)) 607c478bd9Sstevel@tonic-gate\ 617c478bd9Sstevel@tonic-gate\ There are several examples below (search for _INCR). 627c478bd9Sstevel@tonic-gate\ 637c478bd9Sstevel@tonic-gate\ There is currently no manner in which to identify "anonymous" 647c478bd9Sstevel@tonic-gate\ structures or unions so if they are to be used in assembly code 657c478bd9Sstevel@tonic-gate\ they must be given names. 667c478bd9Sstevel@tonic-gate\ 677c478bd9Sstevel@tonic-gate\ When specifying the offsets of nested structures/unions each nested 687c478bd9Sstevel@tonic-gate\ structure or union must be listed separately then use the 697c478bd9Sstevel@tonic-gate\ "\#define" escapes to add the offsets from the base structure/union 707c478bd9Sstevel@tonic-gate\ and all of the nested structures/unions together. See the many 717c478bd9Sstevel@tonic-gate\ examples already in this file. 727c478bd9Sstevel@tonic-gate 737c478bd9Sstevel@tonic-gate#ifndef _GENASSYM 747c478bd9Sstevel@tonic-gate#define _GENASSYM 757c478bd9Sstevel@tonic-gate#endif 767c478bd9Sstevel@tonic-gate 777c478bd9Sstevel@tonic-gate#include <vm/hat_sfmmu.h> 787c478bd9Sstevel@tonic-gate#include <sys/traptrace.h> 791ae08745Sheppo#include <sys/lpad.h> 807c478bd9Sstevel@tonic-gate 817c478bd9Sstevel@tonic-gatemachcpu 827c478bd9Sstevel@tonic-gate intrstat MCPU_INTRSTAT 837c478bd9Sstevel@tonic-gate pil_high_start MCPU_PIL_HIGH_START 847c478bd9Sstevel@tonic-gate mpcb_pa MCPU_MPCB_PA 857c478bd9Sstevel@tonic-gate kwbuf_full MCPU_KWBUF_FULL 867c478bd9Sstevel@tonic-gate kwbuf_sp MCPU_KWBUF_SP 877c478bd9Sstevel@tonic-gate kwbuf MCPU_KWBUF 887c478bd9Sstevel@tonic-gate cpu_q_base_pa MCPU_CPU_Q_BASE 897c478bd9Sstevel@tonic-gate cpu_q_size MCPU_CPU_Q_SIZE 907c478bd9Sstevel@tonic-gate dev_q_base_pa MCPU_DEV_Q_BASE 917c478bd9Sstevel@tonic-gate dev_q_size MCPU_DEV_Q_SIZE 927c478bd9Sstevel@tonic-gate mondo_data MCPU_MONDO_DATA 937c478bd9Sstevel@tonic-gate mondo_data_ra MCPU_MONDO_DATA_RA 947c478bd9Sstevel@tonic-gate cpu_rq_va MCPU_RQ_BASE_VA 957c478bd9Sstevel@tonic-gate cpu_rq_base_pa MCPU_RQ_BASE 967c478bd9Sstevel@tonic-gate cpu_rq_size MCPU_RQ_SIZE 977c478bd9Sstevel@tonic-gate cpu_nrq_va MCPU_NRQ_BASE_VA 987c478bd9Sstevel@tonic-gate cpu_nrq_base_pa MCPU_NRQ_BASE 997c478bd9Sstevel@tonic-gate cpu_nrq_size MCPU_NRQ_SIZE 1007c478bd9Sstevel@tonic-gate cpu_tstat_flags MCPU_TSTAT_FLAGS 1017c478bd9Sstevel@tonic-gate 1027c478bd9Sstevel@tonic-gate\#define CPU_MPCB_PA (CPU_MCPU + MCPU_MPCB_PA) 1037c478bd9Sstevel@tonic-gate\#define CPU_KWBUF_FULL (CPU_MCPU + MCPU_KWBUF_FULL) 1047c478bd9Sstevel@tonic-gate\#define CPU_KWBUF_SP (CPU_MCPU + MCPU_KWBUF_SP) 1057c478bd9Sstevel@tonic-gate\#define CPU_KWBUF (CPU_MCPU + MCPU_KWBUF) 1067c478bd9Sstevel@tonic-gate\#define CPU_Q_BASE (CPU_MCPU + MCPU_CPU_Q_BASE) 1077c478bd9Sstevel@tonic-gate\#define CPU_Q_SIZE (CPU_MCPU + MCPU_CPU_Q_SIZE) 1087c478bd9Sstevel@tonic-gate\#define DEV_Q_BASE (CPU_MCPU + MCPU_DEV_Q_BASE) 1097c478bd9Sstevel@tonic-gate\#define DEV_Q_SIZE (CPU_MCPU + MCPU_DEV_Q_SIZE) 1107c478bd9Sstevel@tonic-gate\#define CPU_RQ_BASE_VA_OFF (CPU_MCPU + MCPU_RQ_BASE_VA) 1117c478bd9Sstevel@tonic-gate\#define CPU_RQ_BASE_OFF (CPU_MCPU + MCPU_RQ_BASE) 1127c478bd9Sstevel@tonic-gate\#define CPU_RQ_SIZE_OFF (CPU_MCPU + MCPU_RQ_SIZE) 1137c478bd9Sstevel@tonic-gate\#define CPU_NRQ_BASE_VA_OFF (CPU_MCPU + MCPU_NRQ_BASE_VA) 1147c478bd9Sstevel@tonic-gate\#define CPU_NRQ_BASE_OFF (CPU_MCPU + MCPU_NRQ_BASE) 1157c478bd9Sstevel@tonic-gate\#define CPU_NRQ_SIZE_OFF (CPU_MCPU + MCPU_NRQ_SIZE) 1167c478bd9Sstevel@tonic-gate\#define CPU_TSTAT_FLAGS (CPU_MCPU + MCPU_TSTAT_FLAGS) 1177c478bd9Sstevel@tonic-gate 1187c478bd9Sstevel@tonic-gatetrap_trace_record TRAP_ENT_SIZE 1197c478bd9Sstevel@tonic-gate tt_gl TRAP_ENT_GL 1207c478bd9Sstevel@tonic-gate tt_tl TRAP_ENT_TL 1217c478bd9Sstevel@tonic-gate tt_tt TRAP_ENT_TT 1227c478bd9Sstevel@tonic-gate tt_tpc TRAP_ENT_TPC 1237c478bd9Sstevel@tonic-gate tt_tstate TRAP_ENT_TSTATE 1247c478bd9Sstevel@tonic-gate tt_tick TRAP_ENT_TICK 1257c478bd9Sstevel@tonic-gate tt_sp TRAP_ENT_SP 1267c478bd9Sstevel@tonic-gate tt_tr TRAP_ENT_TR 1277c478bd9Sstevel@tonic-gate tt_f1 TRAP_ENT_F1 1287c478bd9Sstevel@tonic-gate tt_f2 TRAP_ENT_F2 1297c478bd9Sstevel@tonic-gate tt_f3 TRAP_ENT_F3 1307c478bd9Sstevel@tonic-gate tt_f4 TRAP_ENT_F4 1317c478bd9Sstevel@tonic-gate 1327c478bd9Sstevel@tonic-gatehtrap_trace_record HTRAP_ENT_SIZE 1337c478bd9Sstevel@tonic-gate 1347c478bd9Sstevel@tonic-gatehat HAT_SIZE 1357c478bd9Sstevel@tonic-gate sfmmu_cpusran 1367c478bd9Sstevel@tonic-gate sfmmu_tsb 1377c478bd9Sstevel@tonic-gate sfmmu_ismblkpa 13805d3dc4bSpaulsan sfmmu_tteflags 13905d3dc4bSpaulsan sfmmu_rtteflags 14005d3dc4bSpaulsan sfmmu_srdp 14105d3dc4bSpaulsan sfmmu_region_map.h_rmap_s.hmeregion_map SFMMU_HMERMAP 14205d3dc4bSpaulsan sfmmu_scdp 1437c478bd9Sstevel@tonic-gate sfmmu_hvblock 1441e2e7a75Shuah sfmmu_cext 1451e2e7a75Shuah sfmmu_ctx_lock 1461e2e7a75Shuah sfmmu_ctxs 1477c478bd9Sstevel@tonic-gate 14805d3dc4bSpaulsansf_scd SCD_SIZE 14905d3dc4bSpaulsan scd_sfmmup 15005d3dc4bSpaulsan scd_region_map.h_rmap_s.hmeregion_map SCD_HMERMAP 15105d3dc4bSpaulsan 1527c478bd9Sstevel@tonic-gatesfmmu_global_stat HATSTAT_SIZE 1537c478bd9Sstevel@tonic-gate sf_pagefaults HATSTAT_PAGEFAULT 1547c478bd9Sstevel@tonic-gate sf_uhash_searches HATSTAT_UHASH_SEARCH 1557c478bd9Sstevel@tonic-gate sf_uhash_links HATSTAT_UHASH_LINKS 1567c478bd9Sstevel@tonic-gate sf_khash_searches HATSTAT_KHASH_SEARCH 1577c478bd9Sstevel@tonic-gate sf_khash_links HATSTAT_KHASH_LINKS 1587c478bd9Sstevel@tonic-gate 1597c478bd9Sstevel@tonic-gatesf_hment SFHME_SIZE SFHME_SHIFT 1607c478bd9Sstevel@tonic-gate hme_tte SFHME_TTE 1617c478bd9Sstevel@tonic-gate 16205d3dc4bSpaulsantsbmiss TSBMISS_SIZE 1637c478bd9Sstevel@tonic-gate ksfmmup TSBMISS_KHATID 1647c478bd9Sstevel@tonic-gate usfmmup TSBMISS_UHATID 16505d3dc4bSpaulsan usrdp TSBMISS_SHARED_UHATID 16605d3dc4bSpaulsan tsbptr TSBMISS_TSBPTR 16705d3dc4bSpaulsan tsbptr4m TSBMISS_TSBPTR4M 16805d3dc4bSpaulsan tsbscdptr TSBMISS_TSBSCDPTR 16905d3dc4bSpaulsan tsbscdptr4m TSBMISS_TSBSCDPTR4M 1707c478bd9Sstevel@tonic-gate ismblkpa TSBMISS_ISMBLKPA 17105d3dc4bSpaulsan khashstart TSBMISS_KHASHSTART 17205d3dc4bSpaulsan uhashstart TSBMISS_UHASHSTART 17305d3dc4bSpaulsan khashsz TSBMISS_KHASHSZ 17405d3dc4bSpaulsan uhashsz TSBMISS_UHASHSZ 17505d3dc4bSpaulsan uhat_tteflags TSBMISS_UTTEFLAGS 17605d3dc4bSpaulsan uhat_rtteflags TSBMISS_URTTEFLAGS 1777c478bd9Sstevel@tonic-gate utsb_misses TSBMISS_UTSBMISS 1787c478bd9Sstevel@tonic-gate ktsb_misses TSBMISS_KTSBMISS 1797c478bd9Sstevel@tonic-gate uprot_traps TSBMISS_UPROTS 1807c478bd9Sstevel@tonic-gate kprot_traps TSBMISS_KPROTS 1817c478bd9Sstevel@tonic-gate scratch TSBMISS_SCRATCH 18205d3dc4bSpaulsan shmermap TSBMISS_SHMERMAP 18305d3dc4bSpaulsan scd_shmermap TSBMISS_SCDSHMERMAP 1847c478bd9Sstevel@tonic-gate 1857c478bd9Sstevel@tonic-gate\#define TSB_TAGACC (0 * TSBMISS_SCRATCH_INCR) 1867c478bd9Sstevel@tonic-gate\#define TSBMISS_HMEBP (1 * TSBMISS_SCRATCH_INCR) 1877c478bd9Sstevel@tonic-gate\#define TSBMISS_HATID (2 * TSBMISS_SCRATCH_INCR) 1887c478bd9Sstevel@tonic-gate 1897c478bd9Sstevel@tonic-gatekpmtsbm KPMTSBM_SIZE KPMTSBM_SHIFT 1907c478bd9Sstevel@tonic-gate vbase KPMTSBM_VBASE 1917c478bd9Sstevel@tonic-gate vend KPMTSBM_VEND 1927c478bd9Sstevel@tonic-gate flags KPMTSBM_FLAGS 1937c478bd9Sstevel@tonic-gate sz_shift KPMTSBM_SZSHIFT 1947c478bd9Sstevel@tonic-gate kpmp_shift KPMTSBM_KPMPSHIFT 1957c478bd9Sstevel@tonic-gate kpmp2pshft KPMTSBM_KPMP2PSHFT 1967c478bd9Sstevel@tonic-gate kpmp_table_sz KPMTSBM_KPMPTABLESZ 1977c478bd9Sstevel@tonic-gate kpmp_tablepa KPMTSBM_KPMPTABLEPA 1987c478bd9Sstevel@tonic-gate msegphashpa KPMTSBM_MSEGPHASHPA 1997c478bd9Sstevel@tonic-gate tsbptr KPMTSBM_TSBPTR 2007c478bd9Sstevel@tonic-gate kpm_dtlb_misses KPMTSBM_DTLBMISS 2017c478bd9Sstevel@tonic-gate kpm_tsb_misses KPMTSBM_TSBMISS 2027c478bd9Sstevel@tonic-gate 2037c478bd9Sstevel@tonic-gatekpm_page KPMPAGE_SIZE KPMPAGE_SHIFT 2047c478bd9Sstevel@tonic-gate kp_refcnt KPMPAGE_REFCNT 2057c478bd9Sstevel@tonic-gate kp_refcnta KPMPAGE_REFCNTA 2067c478bd9Sstevel@tonic-gate kp_refcntc KPMPAGE_REFCNTC 2077c478bd9Sstevel@tonic-gate kp_refcnts KPMPAGE_REFCNTS 2087c478bd9Sstevel@tonic-gate 2097c478bd9Sstevel@tonic-gatekpm_hlk KPMHLK_SIZE KPMHLK_SHIFT 2107c478bd9Sstevel@tonic-gate khl_mutex KPMHLK_MUTEX 2117c478bd9Sstevel@tonic-gate khl_lock KPMHLK_LOCK 2127c478bd9Sstevel@tonic-gate 2137c478bd9Sstevel@tonic-gatekpm_spage KPMSPAGE_SIZE KPMSPAGE_SHIFT 214444ce08eSDonghai Qiao kp_mapped_flag KPMSPAGE_MAPPED 2157c478bd9Sstevel@tonic-gate 2167c478bd9Sstevel@tonic-gatekpm_shlk KPMSHLK_SIZE KPMSHLK_SHIFT 2177c478bd9Sstevel@tonic-gate kshl_lock KPMSHLK_LOCK 2187c478bd9Sstevel@tonic-gate 2197c478bd9Sstevel@tonic-gatememseg MEMSEG_SIZE 2207c478bd9Sstevel@tonic-gate pages MEMSEG_PAGES 2217c478bd9Sstevel@tonic-gate epages MEMSEG_EPAGES 2227c478bd9Sstevel@tonic-gate pages_base MEMSEG_PAGES_BASE 2237c478bd9Sstevel@tonic-gate pages_end MEMSEG_PAGES_END 2247c478bd9Sstevel@tonic-gate next MEMSEG_NEXT 2257c478bd9Sstevel@tonic-gate lnext MEMSEG_LNEXT 2267c478bd9Sstevel@tonic-gate nextpa MEMSEG_NEXTPA 2277c478bd9Sstevel@tonic-gate pagespa MEMSEG_PAGESPA 2287c478bd9Sstevel@tonic-gate epagespa MEMSEG_EPAGESPA 2297c478bd9Sstevel@tonic-gate kpm_pbase MEMSEG_KPM_PBASE 2307c478bd9Sstevel@tonic-gate kpm_nkpmpgs MEMSEG_KPM_NKPMPGS 2317c478bd9Sstevel@tonic-gate mseg_un 2327c478bd9Sstevel@tonic-gate kpm_pagespa MEMSEG_KPM_PAGESPA 2337c478bd9Sstevel@tonic-gate 2347c478bd9Sstevel@tonic-gate\#define MEMSEG_KPM_PAGES (MSEG_UN) 2357c478bd9Sstevel@tonic-gate\#define MEMSEG_KPM_SPAGES (MSEG_UN) 2367c478bd9Sstevel@tonic-gate 2377c478bd9Sstevel@tonic-gatepage PAGE_SIZE 2387c478bd9Sstevel@tonic-gate p_pagenum PAGE_PAGENUM 2397c478bd9Sstevel@tonic-gate 2407c478bd9Sstevel@tonic-gatetsb_info TSBINFO_SIZE 2417c478bd9Sstevel@tonic-gate tsb_tte TSBINFO_TTE 2427c478bd9Sstevel@tonic-gate tsb_va TSBINFO_VADDR 2437c478bd9Sstevel@tonic-gate tsb_pa TSBINFO_PADDR 2447c478bd9Sstevel@tonic-gate tsb_szc TSBINFO_SZCODE 2457c478bd9Sstevel@tonic-gate tsb_next TSBINFO_NEXTPTR 2467c478bd9Sstevel@tonic-gate 2477c478bd9Sstevel@tonic-gatehv_tsb_block 2487c478bd9Sstevel@tonic-gate hv_tsb_info_pa 2497c478bd9Sstevel@tonic-gate hv_tsb_info_cnt 2507c478bd9Sstevel@tonic-gate 2517c478bd9Sstevel@tonic-gatecpu_node CPU_NODE_SIZE 2527c478bd9Sstevel@tonic-gate nodeid 2537c478bd9Sstevel@tonic-gate clock_freq 2547c478bd9Sstevel@tonic-gate tick_nsec_scale 2557c478bd9Sstevel@tonic-gate ecache_size ECACHE_SIZE 2567c478bd9Sstevel@tonic-gate ecache_linesize ECACHE_LINESIZE 2577c478bd9Sstevel@tonic-gate device_id DEVICE_ID 25849a230e1Ssvemuri 25949a230e1Ssvemuriptl1_regs 26049a230e1Ssvemuri ptl1_trap_regs 26149a230e1Ssvemuri ptl1_gregs 26249a230e1Ssvemuri ptl1_tick 26349a230e1Ssvemuri ptl1_dmmu_type 26449a230e1Ssvemuri ptl1_dmmu_addr 26549a230e1Ssvemuri ptl1_dmmu_ctx 26649a230e1Ssvemuri ptl1_immu_type 26749a230e1Ssvemuri ptl1_immu_addr 26849a230e1Ssvemuri ptl1_immu_ctx 26949a230e1Ssvemuri ptl1_rwindow 27049a230e1Ssvemuri ptl1_softint 27149a230e1Ssvemuri ptl1_pstate 27249a230e1Ssvemuri ptl1_pil 27349a230e1Ssvemuri ptl1_cwp 27449a230e1Ssvemuri ptl1_wstate 27549a230e1Ssvemuri ptl1_otherwin 27649a230e1Ssvemuri ptl1_cleanwin 27749a230e1Ssvemuri ptl1_cansave 27849a230e1Ssvemuri ptl1_canrestore 27949a230e1Ssvemuri 28049a230e1Ssvemuriptl1_gregs 28149a230e1Ssvemuri ptl1_gl 28249a230e1Ssvemuri ptl1_g1 28349a230e1Ssvemuri ptl1_g2 28449a230e1Ssvemuri ptl1_g3 28549a230e1Ssvemuri ptl1_g4 28649a230e1Ssvemuri ptl1_g5 28749a230e1Ssvemuri ptl1_g6 28849a230e1Ssvemuri ptl1_g7 28949a230e1Ssvemuri 2901ae08745Sheppolpad_data 2911ae08745Sheppo magic LPAD_MAGIC 2921ae08745Sheppo inuse LPAD_INUSE 2931ae08745Sheppo mmfsa_ra LPAD_MMFSA_RA 2941ae08745Sheppo pc LPAD_PC 2951ae08745Sheppo arg LPAD_ARG 2961ae08745Sheppo nmap LPAD_NMAP 2971ae08745Sheppo map LPAD_MAP 2981ae08745Sheppo 2991ae08745Sheppolpad_map LPAD_MAP_SIZE 3001ae08745Sheppo flags LPAD_MAP_FLAGS 3011ae08745Sheppo va LPAD_MAP_VA 3021ae08745Sheppo tte LPAD_MAP_TTE 303