Jorge Ramirez-Ortiz | 47503d2 | 2018-09-23 09:36:52 +0200 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (c) 2018, Renesas Electronics Corporation. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | static uint64_t mstat_fix[] = { |
| 8 | /* 0x0000, */ 0x0000000000000000UL, |
| 9 | /* 0x0008, */ 0x0000000000000000UL, |
| 10 | /* 0x0010, */ 0x0000000000000000UL, |
| 11 | /* 0x0018, */ 0x0000000000000000UL, |
| 12 | /* 0x0020, */ 0x0000000000000000UL, |
| 13 | /* 0x0028, */ 0x0000000000000000UL, |
| 14 | /* 0x0030, */ 0x001004320000FFFFUL, |
| 15 | /* 0x0038, */ 0x001004320000FFFFUL, |
| 16 | /* 0x0040, */ 0x00140C5D0000FFFFUL, |
| 17 | /* 0x0048, */ 0x0000000000000000UL, |
| 18 | /* 0x0050, */ 0x001404040000FFFFUL, |
| 19 | /* 0x0058, */ 0x00140C940000FFFFUL, |
| 20 | /* 0x0060, */ 0x00140C940000FFFFUL, |
| 21 | /* 0x0068, */ 0x0000000000000000UL, |
| 22 | /* 0x0070, */ 0x001404040000FFFFUL, |
| 23 | /* 0x0078, */ 0x0000000000000000UL, |
| 24 | /* 0x0080, */ 0x0000000000000000UL, |
| 25 | /* 0x0088, */ 0x0014041F0000FFFFUL, |
| 26 | /* 0x0090, */ 0x0000000000000000UL, |
| 27 | /* 0x0098, */ 0x0000000000000000UL, |
| 28 | /* 0x00a0, */ 0x000C041D0000FFFFUL, |
| 29 | /* 0x00a8, */ 0x000C04090000FFFFUL, |
| 30 | /* 0x00b0, */ 0x000C04090000FFFFUL, |
| 31 | /* 0x00b8, */ 0x0000000000000000UL, |
| 32 | /* 0x00c0, */ 0x000C041D0000FFFFUL, |
| 33 | /* 0x00c8, */ 0x000C04090000FFFFUL, |
| 34 | /* 0x00d0, */ 0x000C04090000FFFFUL, |
| 35 | /* 0x00d8, */ 0x0000000000000000UL, |
| 36 | /* 0x00e0, */ 0x0000000000000000UL, |
| 37 | /* 0x00e8, */ 0x0000000000000000UL, |
| 38 | /* 0x00f0, */ 0x001024840000FFFFUL, |
| 39 | /* 0x00f8, */ 0x000C084F0000FFFFUL, |
| 40 | /* 0x0100, */ 0x0000000000000000UL, |
| 41 | /* 0x0108, */ 0x0000000000000000UL, |
| 42 | /* 0x0110, */ 0x00100C840000FFFFUL, |
| 43 | /* 0x0118, */ 0x000C21E60000FFFFUL, |
| 44 | /* 0x0120, */ 0x0000000000000000UL, |
| 45 | /* 0x0128, */ 0x0000000000000000UL, |
| 46 | /* 0x0130, */ 0x0000000000000000UL, |
| 47 | /* 0x0138, */ 0x00100CA50000FFFFUL, |
| 48 | /* 0x0140, */ 0x0000000000000000UL, |
| 49 | /* 0x0148, */ 0x0000000000000000UL, |
| 50 | /* 0x0150, */ 0x001010C90000FFFFUL, |
| 51 | /* 0x0158, */ 0x0000000000000000UL, |
| 52 | /* 0x0160, */ 0x00100CA50000FFFFUL, |
| 53 | /* 0x0168, */ 0x0000000000000000UL, |
| 54 | /* 0x0170, */ 0x0000000000000000UL, |
| 55 | /* 0x0178, */ 0x001008530000FFFFUL, |
| 56 | /* 0x0180, */ 0x0000000000000000UL, |
| 57 | /* 0x0188, */ 0x0000000000000000UL, |
| 58 | /* 0x0190, */ 0x00101D9D0000FFFFUL, |
| 59 | /* 0x0198, */ 0x0000000000000000UL, |
| 60 | /* 0x01a0, */ 0x00100CA50000FFFFUL, |
| 61 | /* 0x01a8, */ 0x0000000000000000UL, |
| 62 | /* 0x01b0, */ 0x0000000000000000UL, |
| 63 | /* 0x01b8, */ 0x0000000000000000UL, |
| 64 | /* 0x01c0, */ 0x000C04010000FFFFUL, |
| 65 | /* 0x01c8, */ 0x000C04010000FFFFUL, |
| 66 | /* 0x01d0, */ 0x0000000000000000UL, |
| 67 | /* 0x01d8, */ 0x0000000000000000UL, |
| 68 | /* 0x01e0, */ 0x0000000000000000UL, |
| 69 | /* 0x01e8, */ 0x000C04010000FFFFUL, |
| 70 | /* 0x01f0, */ 0x000C04050000FFFFUL, |
| 71 | /* 0x01f8, */ 0x0000000000000000UL, |
| 72 | /* 0x0200, */ 0x0000000000000000UL, |
| 73 | /* 0x0208, */ 0x000C04050000FFFFUL, |
| 74 | /* 0x0210, */ 0x000C04050000FFFFUL, |
| 75 | /* 0x0218, */ 0x0000000000000000UL, |
| 76 | /* 0x0220, */ 0x0000000000000000UL, |
| 77 | /* 0x0228, */ 0x0000000000000000UL, |
| 78 | /* 0x0230, */ 0x0000000000000000UL, |
| 79 | /* 0x0238, */ 0x0000000000000000UL, |
| 80 | /* 0x0240, */ 0x0000000000000000UL, |
| 81 | /* 0x0248, */ 0x0000000000000000UL, |
| 82 | /* 0x0250, */ 0x0000000000000000UL, |
| 83 | /* 0x0258, */ 0x0000000000000000UL, |
| 84 | /* 0x0260, */ 0x000C08150000FFFFUL, |
| 85 | /* 0x0268, */ 0x001408020000FFFFUL, |
| 86 | /* 0x0270, */ 0x001404010000FFFFUL, |
| 87 | /* 0x0278, */ 0x000C04090000FFFFUL, |
| 88 | /* 0x0280, */ 0x0000000000000000UL, |
| 89 | /* 0x0288, */ 0x0000000000000000UL, |
| 90 | /* 0x0290, */ 0x001408020000FFFFUL, |
| 91 | /* 0x0298, */ 0x001404010000FFFFUL, |
| 92 | /* 0x02a0, */ 0x000C04050000FFFFUL, |
| 93 | /* 0x02a8, */ 0x000C04050000FFFFUL, |
| 94 | /* 0x02b0, */ 0x001408050000FFFFUL, |
| 95 | /* 0x02b8, */ 0x000C04010000FFFFUL, |
| 96 | /* 0x02c0, */ 0x0000000000000000UL, |
| 97 | /* 0x02c8, */ 0x0000000000000000UL, |
| 98 | /* 0x02d0, */ 0x000C04050000FFFFUL, |
| 99 | /* 0x02d8, */ 0x000C04050000FFFFUL, |
| 100 | /* 0x02e0, */ 0x001408050000FFFFUL, |
| 101 | /* 0x02e8, */ 0x000C04010000FFFFUL, |
| 102 | /* 0x02f0, */ 0x0000000000000000UL, |
| 103 | /* 0x02f8, */ 0x0000000000000000UL, |
| 104 | /* 0x0300, */ 0x0000000000000000UL, |
| 105 | /* 0x0308, */ 0x0000000000000000UL, |
| 106 | /* 0x0310, */ 0x0000000000000000UL, |
| 107 | /* 0x0318, */ 0x0000000000000000UL, |
| 108 | /* 0x0320, */ 0x0000000000000000UL, |
| 109 | /* 0x0328, */ 0x0000000000000000UL, |
| 110 | /* 0x0330, */ 0x0000000000000000UL, |
| 111 | /* 0x0338, */ 0x0000000000000000UL, |
| 112 | /* 0x0340, */ 0x0000000000000000UL, |
| 113 | /* 0x0348, */ 0x0000000000000000UL, |
| 114 | /* 0x0350, */ 0x0000000000000000UL, |
| 115 | /* 0x0358, */ 0x0000000000000000UL, |
| 116 | /* 0x0360, */ 0x0000000000000000UL, |
| 117 | /* 0x0368, */ 0x0000000000000000UL, |
| 118 | /* 0x0370, */ 0x000C04010000FFFFUL, |
| 119 | /* 0x0378, */ 0x000C04010000FFFFUL, |
| 120 | /* 0x0380, */ 0x000C04050000FFFFUL, |
| 121 | /* 0x0388, */ 0x000C04050000FFFFUL, |
| 122 | /* 0x0390, */ 0x0000000000000000UL, |
| 123 | }; |
| 124 | |
| 125 | static uint64_t mstat_be[] = { |
| 126 | /* 0x0000, */ 0x0000000000000000UL, |
| 127 | /* 0x0008, */ 0x0000000000000000UL, |
| 128 | /* 0x0010, */ 0x0000000000000000UL, |
| 129 | /* 0x0018, */ 0x0000000000000000UL, |
| 130 | /* 0x0020, */ 0x0000000000000000UL, |
| 131 | /* 0x0028, */ 0x001200100BD03401UL, |
| 132 | /* 0x0030, */ 0x0000000000000000UL, |
| 133 | /* 0x0038, */ 0x0000000000000000UL, |
| 134 | /* 0x0040, */ 0x0000000000000000UL, |
| 135 | /* 0x0048, */ 0x0000000000000000UL, |
| 136 | /* 0x0050, */ 0x0000000000000000UL, |
| 137 | /* 0x0058, */ 0x0000000000000000UL, |
| 138 | /* 0x0060, */ 0x0000000000000000UL, |
| 139 | /* 0x0068, */ 0x0000000000000000UL, |
| 140 | /* 0x0070, */ 0x0000000000000000UL, |
| 141 | /* 0x0078, */ 0x0000000000000000UL, |
| 142 | /* 0x0080, */ 0x0000000000000000UL, |
| 143 | /* 0x0088, */ 0x0000000000000000UL, |
| 144 | /* 0x0090, */ 0x0000000000000000UL, |
| 145 | /* 0x0098, */ 0x0000000000000000UL, |
| 146 | /* 0x00a0, */ 0x0000000000000000UL, |
| 147 | /* 0x00a8, */ 0x0000000000000000UL, |
| 148 | /* 0x00b0, */ 0x0000000000000000UL, |
| 149 | /* 0x00b8, */ 0x0000000000000000UL, |
| 150 | /* 0x00c0, */ 0x0000000000000000UL, |
| 151 | /* 0x00c8, */ 0x0000000000000000UL, |
| 152 | /* 0x00d0, */ 0x0000000000000000UL, |
| 153 | /* 0x00d8, */ 0x0000000000000000UL, |
| 154 | /* 0x00e0, */ 0x0000000000000000UL, |
| 155 | /* 0x00e8, */ 0x0000000000000000UL, |
| 156 | /* 0x00f0, */ 0x0000000000000000UL, |
| 157 | /* 0x00f8, */ 0x0000000000000000UL, |
| 158 | /* 0x0100, */ 0x0000000000000000UL, |
| 159 | /* 0x0108, */ 0x0000000000000000UL, |
| 160 | /* 0x0110, */ 0x0000000000000000UL, |
| 161 | /* 0x0118, */ 0x0000000000000000UL, |
| 162 | /* 0x0120, */ 0x0000000000000000UL, |
| 163 | /* 0x0128, */ 0x0000000000000000UL, |
| 164 | /* 0x0130, */ 0x0000000000000000UL, |
| 165 | /* 0x0138, */ 0x0000000000000000UL, |
| 166 | /* 0x0140, */ 0x0000000000000000UL, |
| 167 | /* 0x0148, */ 0x0000000000000000UL, |
| 168 | /* 0x0150, */ 0x0000000000000000UL, |
| 169 | /* 0x0158, */ 0x0000000000000000UL, |
| 170 | /* 0x0160, */ 0x0000000000000000UL, |
| 171 | /* 0x0168, */ 0x0000000000000000UL, |
| 172 | /* 0x0170, */ 0x0000000000000000UL, |
| 173 | /* 0x0178, */ 0x0000000000000000UL, |
| 174 | /* 0x0180, */ 0x0000000000000000UL, |
| 175 | /* 0x0188, */ 0x0000000000000000UL, |
| 176 | /* 0x0190, */ 0x0000000000000000UL, |
| 177 | /* 0x0198, */ 0x0000000000000000UL, |
| 178 | /* 0x01a0, */ 0x0000000000000000UL, |
| 179 | /* 0x01a8, */ 0x0000000000000000UL, |
| 180 | /* 0x01b0, */ 0x0000000000000000UL, |
| 181 | /* 0x01b8, */ 0x0000000000000000UL, |
| 182 | /* 0x01c0, */ 0x002106000BDFFC01UL, |
| 183 | /* 0x01c8, */ 0x002106000BDFFC01UL, |
| 184 | /* 0x01d0, */ 0x0000000000000000UL, |
| 185 | /* 0x01d8, */ 0x0000000000000000UL, |
| 186 | /* 0x01e0, */ 0x0000000000000000UL, |
| 187 | /* 0x01e8, */ 0x0000000000000000UL, |
| 188 | /* 0x01f0, */ 0x002101000BDF2401UL, |
| 189 | /* 0x01f8, */ 0x0000000000000000UL, |
| 190 | /* 0x0200, */ 0x0000000000000000UL, |
| 191 | /* 0x0208, */ 0x0000000000000000UL, |
| 192 | /* 0x0210, */ 0x002101000BDF2401UL, |
| 193 | /* 0x0218, */ 0x001101000BDF2401UL, |
| 194 | /* 0x0220, */ 0x001101000BDF2401UL, |
| 195 | /* 0x0228, */ 0x0000000000000000UL, |
| 196 | /* 0x0230, */ 0x001101000BDF2401UL, |
| 197 | /* 0x0238, */ 0x001101000BDF2401UL, |
| 198 | /* 0x0240, */ 0x001201000BDF2401UL, |
| 199 | /* 0x0248, */ 0x001101000BDF2401UL, |
| 200 | /* 0x0250, */ 0x001201000BDF2401UL, |
| 201 | /* 0x0258, */ 0x001101000BDF2401UL, |
| 202 | /* 0x0260, */ 0x0000000000000000UL, |
| 203 | /* 0x0268, */ 0x0000000000000000UL, |
| 204 | /* 0x0270, */ 0x0000000000000000UL, |
| 205 | /* 0x0278, */ 0x0000000000000000UL, |
| 206 | /* 0x0280, */ 0x0000000000000000UL, |
| 207 | /* 0x0288, */ 0x0000000000000000UL, |
| 208 | /* 0x0290, */ 0x0000000000000000UL, |
| 209 | /* 0x0298, */ 0x0000000000000000UL, |
| 210 | /* 0x02a0, */ 0x0000000000000000UL, |
| 211 | /* 0x02a8, */ 0x0000000000000000UL, |
| 212 | /* 0x02b0, */ 0x0000000000000000UL, |
| 213 | /* 0x02b8, */ 0x0000000000000000UL, |
| 214 | /* 0x02c0, */ 0x0000000000000000UL, |
| 215 | /* 0x02c8, */ 0x0000000000000000UL, |
| 216 | /* 0x02d0, */ 0x0000000000000000UL, |
| 217 | /* 0x02d8, */ 0x0000000000000000UL, |
| 218 | /* 0x02e0, */ 0x0000000000000000UL, |
| 219 | /* 0x02e8, */ 0x0000000000000000UL, |
| 220 | /* 0x02f0, */ 0x001106000BDFFC01UL, |
| 221 | /* 0x02f8, */ 0x001106000BDFFC01UL, |
| 222 | /* 0x0300, */ 0x0000000000000000UL, |
| 223 | /* 0x0308, */ 0x0000000000000000UL, |
| 224 | /* 0x0310, */ 0x0000000000000000UL, |
| 225 | /* 0x0318, */ 0x001200100BD03401UL, |
| 226 | /* 0x0320, */ 0x0000000000000000UL, |
| 227 | /* 0x0328, */ 0x0000000000000000UL, |
| 228 | /* 0x0330, */ 0x0000000000000000UL, |
| 229 | /* 0x0338, */ 0x0000000000000000UL, |
| 230 | /* 0x0340, */ 0x0000000000000000UL, |
| 231 | /* 0x0348, */ 0x0000000000000000UL, |
| 232 | /* 0x0350, */ 0x0000000000000000UL, |
| 233 | /* 0x0358, */ 0x001206000BDFFC01UL, |
| 234 | /* 0x0360, */ 0x001206000BDFFC01UL, |
| 235 | /* 0x0368, */ 0x001200100BD03401UL, |
| 236 | /* 0x0370, */ 0x0000000000000000UL, |
| 237 | /* 0x0378, */ 0x0000000000000000UL, |
| 238 | /* 0x0380, */ 0x0000000000000000UL, |
| 239 | /* 0x0388, */ 0x0000000000000000UL, |
| 240 | /* 0x0390, */ 0x001200100BD03401UL, |
| 241 | }; |