Commit | Line | Data |
---|---|---|
920dae64 AT |
1 | // ========== Copyright Header Begin ========================================== |
2 | // | |
3 | // OpenSPARC T2 Processor File: N2_RstCsr.cc | |
4 | // Copyright (c) 2006 Sun Microsystems, Inc. All Rights Reserved. | |
5 | // DO NOT ALTER OR REMOVE COPYRIGHT NOTICES. | |
6 | // | |
7 | // The above named program is free software; you can redistribute it and/or | |
8 | // modify it under the terms of the GNU General Public | |
9 | // License version 2 as published by the Free Software Foundation. | |
10 | // | |
11 | // The above named program is distributed in the hope that it will be | |
12 | // useful, but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
14 | // General Public License for more details. | |
15 | // | |
16 | // You should have received a copy of the GNU General Public | |
17 | // License along with this work; if not, write to the Free Software | |
18 | // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. | |
19 | // | |
20 | // ========== Copyright Header End ============================================ | |
21 | /************************************************************************ | |
22 | ** | |
23 | ** Copyright (C) 2005, Sun Microsystems, Inc. | |
24 | ** | |
25 | ** Sun considers its source code as an unpublished, proprietary | |
26 | ** trade secret and it is available only under strict license provisions. | |
27 | ** This copyright notice is placed here only to protect Sun in the event | |
28 | ** the source is deemed a published work. Disassembly, decompilation, | |
29 | ** or other means of reducing the object code to human readable form | |
30 | ** is prohibited by the license agreement under which this code is | |
31 | ** provided to the user or company in possession of this copy. | |
32 | ** | |
33 | *************************************************************************/ | |
34 | #include "N2_RstCsr.h" | |
35 | ||
36 | using namespace std; | |
37 | ||
38 | RegisterAttribute N2_RstCsr::attributeTable[] = { | |
39 | { 0x8900000808ULL,0x8900000808ULL,0x8ULL,1,0x0ULL,0x0ULL,RegisterAttribute::RW,0xfffffffffffffff4ULL,0x0ULL,0xbULL,0x0ULL,0x0ULL,0x0ULL,"N2_RST_RST_RESET_GEN","" }, | |
40 | { 0x8900000810ULL,0x8900000810ULL,0x8ULL,1,0x2ULL,0x0ULL,RegisterAttribute::RW,0xfffffffffffff1e1ULL,0xe00ULL,0x1eULL,0x0ULL,0x0ULL,0xffffffffffffffffULL,"N2_RST_RST_RSET_STAT","" }, | |
41 | { 0x8900000818ULL,0x8900000818ULL,0x8ULL,1,0x0ULL,0x0ULL,RegisterAttribute::RW,0xffffffffffff0000ULL,0x0ULL,0xffffULL,0xffffULL,0x0ULL,0x0ULL,"N2_RST_RST_RESET_SOURCE","" }, | |
42 | { 0x8900000820ULL,0x8900000820ULL,0x8ULL,1,0x0ULL,0x0ULL,RegisterAttribute::RW,0xffffffffffff00ffULL,0x0ULL,0xff00ULL,0x0ULL,0x0ULL,0x0ULL,"N2_RST_RST_RESET_FEE","" }, | |
43 | { 0x8900000838ULL,0x8900000838ULL,0x8ULL,1,0x0ULL,0x0ULL,RegisterAttribute::RW,0xffffffffffffff8cULL,0x0ULL,0x73ULL,0x0ULL,0x0ULL,0x0ULL,"N2_RST_RST_SSYS_RESET","" }, | |
44 | { 0x8900000870ULL,0x8900000870ULL,0x8ULL,1,0x1400ULL,0x0ULL,RegisterAttribute::RW,0xffffffff00000000ULL,0x0ULL,0xffffffffULL,0x0ULL,0x0ULL,0x0ULL,"N2_RST_RST_LOCK_TIME","" }, | |
45 | { 0x8900000880ULL,0x8900000880ULL,0x8ULL,1,0xc00ULL,0x0ULL,RegisterAttribute::RW,0xffffffff00000000ULL,0x0ULL,0xffffffffULL,0x0ULL,0x0ULL,0x0ULL,"N2_RST_RST_PROP_TIME","" }, | |
46 | { 0x8900000890ULL,0x8900000890ULL,0x8ULL,1,0x640ULL,0x0ULL,RegisterAttribute::RW,0xffffffff00000000ULL,0x0ULL,0xffffffffULL,0x0ULL,0x0ULL,0x0ULL,"N2_RST_RST_NIU_TIME","" } | |
47 | }; | |
48 | const int N2_RstCsr::NUMBER_ENTRIES = sizeof(N2_RstCsr::attributeTable)/sizeof(N2_RstCsr::attributeTable[0]); | |
49 | ||
50 | //====================================================================== | |
51 | //============================================================================= | |
52 | N2_RstCsr::N2_RstCsr( ) : | |
53 | SS_BaseCsr("N2_RstCsr", attributeTable, NUMBER_ENTRIES) | |
54 | { | |
55 | } | |
56 | ||
57 | //============================================================================= | |
58 | //============================================================================= | |
59 | void N2_RstCsr::regAddrSpace() | |
60 | { | |
61 | const static std::string descr("N2_RstCsr address space"); | |
62 | registerAddressSpace(attributeTable, NUMBER_ENTRIES, descr); | |
63 | } |