Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / hypervisor / src / greatlakes / common / include / asi.h
CommitLineData
920dae64
AT
1/*
2* ========== Copyright Header Begin ==========================================
3*
4* Hypervisor Software File: asi.h
5*
6* Copyright (c) 2006 Sun Microsystems, Inc. All Rights Reserved.
7*
8* - Do no alter or remove copyright notices
9*
10* - Redistribution and use of this software in source and binary forms, with
11* or without modification, are permitted provided that the following
12* conditions are met:
13*
14* - Redistribution of source code must retain the above copyright notice,
15* this list of conditions and the following disclaimer.
16*
17* - Redistribution in binary form must reproduce the above copyright notice,
18* this list of conditions and the following disclaimer in the
19* documentation and/or other materials provided with the distribution.
20*
21* Neither the name of Sun Microsystems, Inc. or the names of contributors
22* may be used to endorse or promote products derived from this software
23* without specific prior written permission.
24*
25* This software is provided "AS IS," without a warranty of any kind.
26* ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
27* INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A
28* PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN
29* MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE FOR
30* ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
31* DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN
32* OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR
33* FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE
34* DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY,
35* ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, EVEN IF
36* SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
37*
38* You acknowledge that this software is not designed, licensed or
39* intended for use in the design, construction, operation or maintenance of
40* any nuclear facility.
41*
42* ========== Copyright Header End ============================================
43*/
44/*
45 * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
46 * Use is subject to license terms.
47 */
48
49#ifndef _ASI_H
50#define _ASI_H
51
52#pragma ident "@(#)asi.h 1.8 07/05/03 SMI"
53
54/*
55 * Niagara-family ASI definitions
56 */
57
58#ifdef __cplusplus
59extern "C" {
60#endif
61
62#include <platform/asi.h>
63
64#define ASI_MEM 0x14 /* Physical address, non-L1$-allocating */
65#define ASI_IO 0x15 /* Physical address, non-$able w/ side-effect */
66#define ASI_BLK_AIUP 0x16 /* Block store, as if user primary */
67#define ASI_BLK_AIUS 0x17 /* Block store, as if user secondary */
68#define ASI_MEM_LE 0x1c /* ASI_MEM, little endian */
69#define ASI_IO_LE 0x1d /* ASI_IO, little endian */
70#define ASI_BLK_AIUP_LE 0x1e /* ASI_BLK_AIUP, little endian */
71#define ASI_BLK_AIUS_LE 0x1f /* ASI_BLK_AIUS, little endian */
72
73#define ASI_MMU 0x21
74#define ASI_BLKINIT_AIUP 0x22
75#define ASI_BLKINIT_AIUS 0x23
76#define ASI_BLKINIT_AIUP_LE 0x2a
77#define ASI_BLKINIT_AIUS_LE 0x2b
78
79#define ASI_QUAD_LDD 0x24 /* 128-bit atomic ldda/stda */
80#define ASI_QUAD_LDD_REAL 0x26 /* 128-bit atomic ldda/stda real */
81#define ASI_QUAD_LDD_LE 0x2c /* 128-bit atomic ldda/stda, little endian */
82
83#define ASI_STREAM 0x40 /* Niagara streaming extensions */
84#define ASI_NIAGARA 0x42 /* BIST/LSU diag registers */ /* XXX */
85
86#define ASI_DC_DATA 0x46 /* D$ data array diag access */
87#define ASI_DC_TAG 0x47 /* D$ tag array diag access */
88
89#define ASI_HSCRATCHPAD 0x4f /* Hypervisor scratchpad registers */
90
91#define ASI_IMMU 0x50 /* IMMU registers */
92#define ASI_ITLB_DATA_IN 0x54 /* IMMU data in register */
93#define ASI_ITLB_DATA_ACC 0x55 /* IMMU data access register */
94#define ASI_ITLB_TAG 0x56 /* IMMU tag read register */
95#define ASI_IMMU_DEMAP 0x57 /* IMMU tlb demap */
96
97#define ASI_DMMU 0x58 /* DMMU registers */
98
99#define IDMMU_PARTITION_ID 0x80 /* Partition ID register */
100
101#define ASI_DTLB_DATA_IN 0x5c /* DMMU data in register */
102#define ASI_DTLB_DATA_ACC 0x5d /* DMMU data access register */
103#define ASI_DTLB_TAG 0x5e /* DMMU tag read register */
104#define ASI_DMMU_DEMAP 0x5f /* DMMU tlb demap */
105
106#define ASI_TLB_INVALIDATE 0x60 /* TLB invalidate registers */
107
108#define ASI_ICACHE_INSTR 0x66
109#define ASI_ICACHE_TAG 0x67
110
111#define ASI_INTR_RCV 0x72 /* Interrupt receive register */
112#define ASI_INTR_UDB_W 0x73 /* Interrupt vector dispatch register */
113#define ASI_INTR_UDB_R 0x74 /* Incoming interrupt vector register */
114
115#define ASI_BLK_INIT_P 0xe2 /* Block initializing store, primary ctx */
116#define ASI_BLK_INIT_S 0xe3 /* Block initializing store, secondary ctx */
117#define ASI_BLK_INIT_P_LE 0xea /* Block initializing store, primary ctx, le */
118#define XXX_ASI_BLK_INIT_S 0xeb /* Block initializing store, sec ctx, le */
119
120#define HSCRATCH0 0x20 /* first hypervisor scratch register */
121#define HSCRATCH1 0x28 /* second hypervisor scratch register */
122
123#define ASI_MAU_CONTROL 0x80 /* MA control register */
124#define ASI_MAU_MPA 0x88 /* MA memory register */
125#define ASI_MAU_ADDR 0x90 /* MA module ops offsets register */
126#define ASI_MAU_NP 0x98 /* MA N prime value register */
127#define ASI_MAU_SYNC 0xA0 /* MA Sync register */
128
129#ifdef __cplusplus
130}
131#endif
132
133#endif /* _ASI_H */