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 525cf1a30Sjl139090 * Common Development and Distribution License (the "License"). 625cf1a30Sjl139090 * 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 */ 217c478bd9Sstevel@tonic-gate /* 22*e98fafb9Sjl139090 * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 237c478bd9Sstevel@tonic-gate * Use is subject to license terms. 247c478bd9Sstevel@tonic-gate */ 257c478bd9Sstevel@tonic-gate 267c478bd9Sstevel@tonic-gate #ifndef _SYS_MACHASI_H 277c478bd9Sstevel@tonic-gate #define _SYS_MACHASI_H 287c478bd9Sstevel@tonic-gate 297c478bd9Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI" 307c478bd9Sstevel@tonic-gate 317c478bd9Sstevel@tonic-gate #ifdef __cplusplus 327c478bd9Sstevel@tonic-gate extern "C" { 337c478bd9Sstevel@tonic-gate #endif 347c478bd9Sstevel@tonic-gate 357c478bd9Sstevel@tonic-gate /* 367c478bd9Sstevel@tonic-gate * Spitfire ancillary state registers, for asrset_t 377c478bd9Sstevel@tonic-gate */ 387c478bd9Sstevel@tonic-gate #define ASR_GSR (3) 397c478bd9Sstevel@tonic-gate 407c478bd9Sstevel@tonic-gate /* 417c478bd9Sstevel@tonic-gate * alternate address space identifiers 427c478bd9Sstevel@tonic-gate * 437c478bd9Sstevel@tonic-gate * 0x00 - 0x7F are privileged 447c478bd9Sstevel@tonic-gate * 0x80 - 0xFF can be used by users 457c478bd9Sstevel@tonic-gate */ 467c478bd9Sstevel@tonic-gate 477c478bd9Sstevel@tonic-gate 487c478bd9Sstevel@tonic-gate /* 497c478bd9Sstevel@tonic-gate * UltraSPARC ASIs 507c478bd9Sstevel@tonic-gate */ 517c478bd9Sstevel@tonic-gate #define ASI_NQUAD_LD 0x24 /* 128-bit atomic load */ 527c478bd9Sstevel@tonic-gate #define ASI_NQUAD_LD_L 0x2c /* 128-bit atomic load little */ 537c478bd9Sstevel@tonic-gate 547c478bd9Sstevel@tonic-gate #define ASI_QUAD_LDD_PHYS 0x34 /* 128-bit physical atomic load */ 557c478bd9Sstevel@tonic-gate #define ASI_QUAD_LDD_PHYS_L 0x3C /* 128-bit phys. atomic load little */ 567c478bd9Sstevel@tonic-gate 577c478bd9Sstevel@tonic-gate #define ASI_INTR_DISPATCH_STATUS 0x48 /* interrupt vector dispatch status */ 587c478bd9Sstevel@tonic-gate #define ASI_INTR_RECEIVE_STATUS 0x49 /* interrupt vector receive status */ 597c478bd9Sstevel@tonic-gate 6025cf1a30Sjl139090 #define ASI_SCRATCHPAD 0x4F /* Scratchpad registers ASI */ 6125cf1a30Sjl139090 627c478bd9Sstevel@tonic-gate #define ASI_BLK_AIUP 0x70 /* block as if user primary */ 637c478bd9Sstevel@tonic-gate #define ASI_BLK_AIUS 0x71 /* block as if user secondary */ 647c478bd9Sstevel@tonic-gate 657c478bd9Sstevel@tonic-gate #define ASI_SDB_INTR_W 0x77 /* interrupt vector dispatch */ 667c478bd9Sstevel@tonic-gate #define ASI_SDB_INTR_R 0x7F /* incoming interrupt vector */ 677c478bd9Sstevel@tonic-gate #define ASI_INTR_DISPATCH ASI_SDB_INTR_W 687c478bd9Sstevel@tonic-gate #define ASI_INTR_RECEIVE ASI_SDB_INTR_R 697c478bd9Sstevel@tonic-gate 707c478bd9Sstevel@tonic-gate #define ASI_BLK_AIUPL 0x78 /* block as if user primary little */ 717c478bd9Sstevel@tonic-gate #define ASI_BLK_AIUSL 0x79 /* block as if user secondary little */ 727c478bd9Sstevel@tonic-gate 737c478bd9Sstevel@tonic-gate /* 747c478bd9Sstevel@tonic-gate * Spitfire asis 757c478bd9Sstevel@tonic-gate */ 767c478bd9Sstevel@tonic-gate #define ASI_LSU 0x45 /* load-store unit control */ 777c478bd9Sstevel@tonic-gate #define ASI_DC_INVAL 0x42 /* d$ invalidate */ 787c478bd9Sstevel@tonic-gate 797c478bd9Sstevel@tonic-gate 807c478bd9Sstevel@tonic-gate #define ASI_DC_DATA 0x46 /* d$ data */ 817c478bd9Sstevel@tonic-gate #define ASI_DC_TAG 0x47 /* d$ tag */ 827c478bd9Sstevel@tonic-gate 837c478bd9Sstevel@tonic-gate #define ASI_UPA_CONFIG 0x4A /* upa configuration reg */ 847c478bd9Sstevel@tonic-gate 857c478bd9Sstevel@tonic-gate #define ASI_ESTATE_ERR 0x4B /* estate error enable reg */ 867c478bd9Sstevel@tonic-gate 877c478bd9Sstevel@tonic-gate #define ASI_AFSR 0x4C /* asynchronous fault status */ 887c478bd9Sstevel@tonic-gate #define ASI_AFAR 0x4D /* asynchronous fault address */ 897c478bd9Sstevel@tonic-gate 907c478bd9Sstevel@tonic-gate #define ASI_IMMU 0x50 /* instruction mmu */ 917c478bd9Sstevel@tonic-gate #define ASI_IMMU_TSB_8K 0x51 /* immu tsb 8k ptr */ 927c478bd9Sstevel@tonic-gate #define ASI_IMMU_TSB_64K 0x52 /* immu tsb 64k ptr */ 937c478bd9Sstevel@tonic-gate #define ASI_DEVICE_SERIAL_ID 0x53 /* device serial id */ 947c478bd9Sstevel@tonic-gate #define ASI_ITLB_IN 0x54 /* immu tlb data in */ 957c478bd9Sstevel@tonic-gate #define ASI_ITLB_ACCESS 0x55 /* immu tlb data access */ 967c478bd9Sstevel@tonic-gate #define ASI_ITLB_TAGREAD 0x56 /* immu tlb tag read */ 977c478bd9Sstevel@tonic-gate #define ASI_ITLB_DEMAP 0x57 /* immu tlb demap */ 987c478bd9Sstevel@tonic-gate 997c478bd9Sstevel@tonic-gate #define ASI_DMMU 0x58 /* data mmu */ 1007c478bd9Sstevel@tonic-gate #define ASI_MMU_CTX ASI_DMMU 1017c478bd9Sstevel@tonic-gate #define ASI_DMMU_TSB_8K 0x59 /* dmmu tsb 8k ptr */ 1027c478bd9Sstevel@tonic-gate #define ASI_DMMU_TSB_64K 0x5A /* dmmu tsb 64k ptr */ 1037c478bd9Sstevel@tonic-gate #define ASI_DMMU_TSB_DIRECT 0x5B /* dmmu tsb direct ptr */ 1047c478bd9Sstevel@tonic-gate #define ASI_DTLB_IN 0x5C /* dmmu tlb data in */ 1057c478bd9Sstevel@tonic-gate #define ASI_DTLB_ACCESS 0x5D /* dmmu tlb data access */ 1067c478bd9Sstevel@tonic-gate #define ASI_DTLB_TAGREAD 0x5E /* dmmu tlb tag read */ 1077c478bd9Sstevel@tonic-gate #define ASI_DTLB_DEMAP 0x5F /* dmmu tlb demap */ 108*e98fafb9Sjl139090 #define ASI_ITSB_PREFETCH 0x61 /* IMMU tsb prefetch */ 109*e98fafb9Sjl139090 #define ASI_DTSB_PREFETCH 0x62 /* DMMU tsb prefetch */ 1107c478bd9Sstevel@tonic-gate 1117c478bd9Sstevel@tonic-gate #define ASI_IC_DATA 0x66 /* i$ data */ 1127c478bd9Sstevel@tonic-gate #define ASI_IC_TAG 0x67 /* i$ tag */ 1137c478bd9Sstevel@tonic-gate #define ASI_IC_DECODE 0x6E /* i$ pre-decode */ 1147c478bd9Sstevel@tonic-gate #define ASI_IC_NEXT 0x6F /* i$ next field */ 1157c478bd9Sstevel@tonic-gate 1167c478bd9Sstevel@tonic-gate #define ASI_EC_W 0x76 /* e$ access write */ 1177c478bd9Sstevel@tonic-gate #define ASI_EC_R 0x7E /* e$ access read */ 1187c478bd9Sstevel@tonic-gate #define ASI_EC_DIAG 0x4E /* e$ diagnostic reg */ 1197c478bd9Sstevel@tonic-gate /* PRM calls this ASI_ECACHE_TAG */ 1207c478bd9Sstevel@tonic-gate 1217c478bd9Sstevel@tonic-gate #ifdef __cplusplus 1227c478bd9Sstevel@tonic-gate } 1237c478bd9Sstevel@tonic-gate #endif 1247c478bd9Sstevel@tonic-gate 1257c478bd9Sstevel@tonic-gate #endif /* _SYS_MACHASI_H */ 126