Commit | Line | Data |
---|---|---|
86530b38 AT |
1 | // ========== Copyright Header Begin ========================================== |
2 | // | |
3 | // OpenSPARC T2 Processor File: csr_define.vri | |
4 | // Copyright (C) 1995-2007 Sun Microsystems, Inc. All Rights Reserved | |
5 | // 4150 Network Circle, Santa Clara, California 95054, U.S.A. | |
6 | // | |
7 | // * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | |
8 | // | |
9 | // This program is free software; you can redistribute it and/or modify | |
10 | // it under the terms of the GNU General Public License as published by | |
11 | // the Free Software Foundation; version 2 of the License. | |
12 | // | |
13 | // This program is distributed in the hope that it will be useful, | |
14 | // but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | // GNU General Public License for more details. | |
17 | // | |
18 | // You should have received a copy of the GNU General Public License | |
19 | // along with this program; if not, write to the Free Software | |
20 | // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
21 | // | |
22 | // For the avoidance of doubt, and except that if any non-GPL license | |
23 | // choice is available it will apply instead, Sun elects to use only | |
24 | // the General Public License version 2 (GPLv2) at this time for any | |
25 | // software where a choice of GPL license versions is made | |
26 | // available with the language indicating that GPLv2 or any later version | |
27 | // may be used, or where a choice of which version of the GPL is applied is | |
28 | // otherwise unspecified. | |
29 | // | |
30 | // Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, | |
31 | // CA 95054 USA or visit www.sun.com if you need additional information or | |
32 | // have any questions. | |
33 | // | |
34 | // ========== Copyright Header End ============================================ | |
35 | #ifndef CSR_DEFINE | |
36 | #define CSR_DEFINE | |
37 | ||
38 | #define FIRE_CSRBUS_DATA_WIDTH 64 | |
39 | #define FIRE_CSRBUS_ADDR_WIDTH 27 | |
40 | ||
41 | //----- Source bus encodings | |
42 | #define FIRE_CSRBUS_SRC_BUS_ENC_JTAG 2'b00 | |
43 | #define FIRE_CSRBUS_SRC_BUS_ENC_PIO_SLOW 2'b01 | |
44 | #define FIRE_CSRBUS_SRC_BUS_ENC_PIO_MED 2'b10 | |
45 | #define FIRE_CSRBUS_SRC_BUS_ENC_PIO_FAST 2'b11 | |
46 | ||
47 | #define BOOLEAN bit | |
48 | ||
49 | #define ZEROS 64'b0 | |
50 | ||
51 | #define CSR_CHECK_DISABLED 0 | |
52 | #define CSR_CHECK_ENABLED 1 | |
53 | ||
54 | ||
55 | #define CSR_ALL_OUTPUT_MSG_DISABLED 0 | |
56 | #define CSR_ERROR_MSG_ONLY_ENABLED 1 | |
57 | #define CSR_WARNING_MSG_ENABLED 2 | |
58 | #define CSR_COLLECTION_LEVEL_MSG_ENABLED 3 | |
59 | #define CSR_ACCESSOR_LEVEL_MSG_ENABLED 4 | |
60 | #define CSR_ALL_OUTPUT_MSG_ENABLED 5 | |
61 | ||
62 | #define CSR_SUCCESSFUL_RETURN_CODE 0 | |
63 | #define CSR_MISMATCH_RETURN_CODE 1 | |
64 | ||
65 | #define ADDR_OFFSET_WIDTH 64 | |
66 | #define MODE_WIDTH 64 | |
67 | ||
68 | #define NO_ACCESS 0 | |
69 | #define READ_ACCESS 1 | |
70 | #define FULL_ACCESS 3 | |
71 | ||
72 | //access mode bits | |
73 | #define ZERO_TIME_ACCESS 0 | |
74 | #define CSR_DIAG_MODE 1 | |
75 | #endif |