asi.h revision 80709
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 REGENTS 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 REGENTS 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 80709 2001-07-31 06:05:05Z 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_IMMU_TSB_8KB_PTR_REG		0x51
66#define	ASI_IMMU_TSB_64KB_PTR_REG		0x52
67#define	ASI_ITLB_DATA_IN_REG			0x54
68#define	ASI_ITLB_DATA_ACCESS_REG		0x55
69#define	ASI_ITLB_TAG_READ_REG			0x56
70#define	ASI_IMMU_DEMAP				0x57
71
72#define	ASI_DMMU_TAG_TARGET_REG			0x58
73
74#define	ASI_DMMU				0x58
75#define		AA_DMMU_TTR			0x0
76#define		AA_DMMU_PCXR			0x8
77#define		AA_DMMU_SCXR			0x10
78#define		AA_DMMU_SFSR			0x18
79#define		AA_DMMU_SFAR			0x20
80#define		AA_DMMU_TSB			0x28
81#define		AA_DMMU_TAR			0x30
82#define		AA_DMMU_VWPR			0x38
83#define		AA_DMMU_PWPR			0x40
84
85#define	ASI_DMMU_TSB_8KB_PTR_REG		0x59
86#define	ASI_DMMU_TSB_64KB_PTR_REG		0x5a
87#define	ASI_DMMU_TSB_DIRECT_PTR_REG 		0x5b
88#define	ASI_DTLB_DATA_IN_REG			0x5c
89#define	ASI_DTLB_DATA_ACCESS_REG		0x5d
90#define	ASI_DTLB_TAG_READ_REG			0x5e
91#define	ASI_DMMU_DEMAP				0x5f
92
93#endif /* !_MACHINE_ASI_H_ */
94