asi.h revision 82002
1/*- 2 * Copyright (c) 2001 Jake Burkholder. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. 10 * 2. Redistributions in binary form must reproduce the above copyright 11 * notice, this list of conditions and the following disclaimer in the 12 * documentation and/or other materials provided with the distribution. 13 * 14 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * 26 * $FreeBSD: head/sys/sparc64/include/asi.h 82002 2001-08-20 23:31:41Z jake $ 27 */ 28 29#ifndef _MACHINE_ASI_H_ 30#define _MACHINE_ASI_H_ 31 32/* 33 * Standard v9 asis 34 */ 35#define ASI_N 0x4 36#define ASI_NL 0xc 37#define ASI_AIUP 0x10 38#define ASI_AIUS 0x11 39#define ASI_AIUSL 0x19 40#define ASI_P 0x80 41#define ASI_S 0x81 42#define ASI_PNF 0x82 43#define ASI_SNF 0x83 44#define ASI_PL 0x88 45#define ASI_PNFL 0x8a 46#define ASI_SNFL 0x8b 47 48/* 49 * UltraSPARC extensions 50 */ 51#define ASI_PHYS_USE_EC 0x14 52#define ASI_PHYS_BYPASS_EC_WITH_EBIT 0x15 53#define ASI_PHYS_USE_EC_L 0x1c 54#define ASI_PHYS_BYPASS_EC_WITH_EBIT_L 0x1d 55 56#define ASI_NUCLEUS_QUAD_LDD 0x24 57#define ASI_NUCLEUS_QUAD_LDD_L 0x2c 58 59#define ASI_IMMU 0x50 60#define AA_IMMU_TTR 0x0 61#define AA_IMMU_SFSR 0x18 62#define AA_IMMU_TSB 0x28 63#define AA_IMMU_TAR 0x30 64 65#define ASI_LSU_CTL_REG 0x45 66 67#define ASI_INTR_DISPATCH_STATUS 0x48 68#define ASI_INTR_RECEIVE 0x49 69 70#define ASI_IMMU_TAG_TARGET_REG 0x4e 71 72#define ASI_IMMU_TSB_8KB_PTR_REG 0x51 73#define ASI_IMMU_TSB_64KB_PTR_REG 0x52 74#define ASI_ITLB_DATA_IN_REG 0x54 75#define ASI_ITLB_DATA_ACCESS_REG 0x55 76#define ASI_ITLB_TAG_READ_REG 0x56 77#define ASI_IMMU_DEMAP 0x57 78 79#define ASI_DMMU_TAG_TARGET_REG 0x58 80 81#define ASI_DMMU 0x58 82#define AA_DMMU_TTR 0x0 83#define AA_DMMU_PCXR 0x8 84#define AA_DMMU_SCXR 0x10 85#define AA_DMMU_SFSR 0x18 86#define AA_DMMU_SFAR 0x20 87#define AA_DMMU_TSB 0x28 88#define AA_DMMU_TAR 0x30 89#define AA_DMMU_VWPR 0x38 90#define AA_DMMU_PWPR 0x40 91 92#define ASI_DMMU_TSB_8KB_PTR_REG 0x59 93#define ASI_DMMU_TSB_64KB_PTR_REG 0x5a 94#define ASI_DMMU_TSB_DIRECT_PTR_REG 0x5b 95#define ASI_DTLB_DATA_IN_REG 0x5c 96#define ASI_DTLB_DATA_ACCESS_REG 0x5d 97#define ASI_DTLB_TAG_READ_REG 0x5e 98#define ASI_DMMU_DEMAP 0x5f 99 100#define ASI_BLK_AUIP 0x70 101#define ASI_BLK_AIUS 0x71 102 103#define ASI_SDB_INTR_W 0x77 104#define AA_SDB_INTR_D0 0x40 105#define AA_SDB_INTR_D1 0x50 106#define AA_SDB_INTR_D2 0x60 107 108#define ASI_BLK_AIUPL 0x78 109#define ASI_BLK_AIUSL 0x79 110 111#define ASI_SDB_INTR_R 0x7f 112 113#define ASI_BLK_COMMIT_S 0xe0 114#define ASI_BLK_COMMIT_P 0xe1 115#define ASI_BLK_P 0xf0 116#define ASI_BLK_S 0xf1 117#define ASI_BLK_PL 0xf8 118#define ASI_BLK_SL 0xf9 119 120#endif /* !_MACHINE_ASI_H_ */ 121