Marek Vasut | 436bd7a | 2019-06-14 01:25:01 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2015-2019, Renesas Electronics Corporation. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #if RCAR_QOS_TYPE == RCAR_QOS_TYPE_DEFAULT |
Marek Vasut | 32ccc2c | 2019-06-14 01:27:27 +0200 | [diff] [blame^] | 8 | static const uint64_t mstat_fix[] = { |
| 9 | /* 0x0000, */ 0x0000000000000000UL, |
| 10 | /* 0x0008, */ 0x0000000000000000UL, |
| 11 | /* 0x0010, */ 0x0000000000000000UL, |
| 12 | /* 0x0018, */ 0x0000000000000000UL, |
| 13 | /* 0x0020, */ 0x0000000000000000UL, |
| 14 | /* 0x0028, */ 0x0000000000000000UL, |
| 15 | /* 0x0030, */ 0x001004030000FFFFUL, |
| 16 | /* 0x0038, */ 0x001008060000FFFFUL, |
| 17 | /* 0x0040, */ 0x001414090000FFFFUL, |
| 18 | /* 0x0048, */ 0x0000000000000000UL, |
| 19 | /* 0x0050, */ 0x001410010000FFFFUL, |
| 20 | /* 0x0058, */ 0x00140C0C0000FFFFUL, |
| 21 | /* 0x0060, */ 0x00140C0C0000FFFFUL, |
| 22 | /* 0x0068, */ 0x0000000000000000UL, |
| 23 | /* 0x0070, */ 0x001410010000FFFFUL, |
| 24 | /* 0x0078, */ 0x001008060000FFFFUL, |
| 25 | /* 0x0080, */ 0x001004020000FFFFUL, |
| 26 | /* 0x0088, */ 0x001414090000FFFFUL, |
| 27 | /* 0x0090, */ 0x00140C0C0000FFFFUL, |
| 28 | /* 0x0098, */ 0x001408080000FFFFUL, |
| 29 | /* 0x00A0, */ 0x000C08020000FFFFUL, |
| 30 | /* 0x00A8, */ 0x000C04010000FFFFUL, |
| 31 | /* 0x00B0, */ 0x000C04010000FFFFUL, |
| 32 | /* 0x00B8, */ 0x0000000000000000UL, |
| 33 | /* 0x00C0, */ 0x000C08020000FFFFUL, |
| 34 | /* 0x00C8, */ 0x000C04010000FFFFUL, |
| 35 | /* 0x00D0, */ 0x000C04010000FFFFUL, |
| 36 | /* 0x00D8, */ 0x000C04030000FFFFUL, |
| 37 | /* 0x00E0, */ 0x000C100F0000FFFFUL, |
| 38 | /* 0x00E8, */ 0x0000000000000000UL, |
| 39 | /* 0x00F0, */ 0x001010080000FFFFUL, |
| 40 | /* 0x00F8, */ 0x001010080000FFFFUL, |
| 41 | /* 0x0100, */ 0x0000000000000000UL, |
| 42 | /* 0x0108, */ 0x000C04030000FFFFUL, |
| 43 | /* 0x0110, */ 0x001010080000FFFFUL, |
| 44 | /* 0x0118, */ 0x001010080000FFFFUL, |
| 45 | /* 0x0120, */ 0x0000000000000000UL, |
| 46 | /* 0x0128, */ 0x000C100E0000FFFFUL, |
| 47 | /* 0x0130, */ 0x0000000000000000UL, |
| 48 | /* 0x0138, */ 0x001008050000FFFFUL, |
| 49 | /* 0x0140, */ 0x001008050000FFFFUL, |
| 50 | /* 0x0148, */ 0x001008050000FFFFUL, |
| 51 | /* 0x0150, */ 0x001008050000FFFFUL, |
| 52 | /* 0x0158, */ 0x001008050000FFFFUL, |
| 53 | /* 0x0160, */ 0x001008050000FFFFUL, |
| 54 | /* 0x0168, */ 0x001008050000FFFFUL, |
| 55 | /* 0x0170, */ 0x001008050000FFFFUL, |
| 56 | /* 0x0178, */ 0x001004030000FFFFUL, |
| 57 | /* 0x0180, */ 0x001004030000FFFFUL, |
| 58 | /* 0x0188, */ 0x001004030000FFFFUL, |
| 59 | /* 0x0190, */ 0x001014140000FFFFUL, |
| 60 | /* 0x0198, */ 0x001014140000FFFFUL, |
| 61 | /* 0x01A0, */ 0x001008050000FFFFUL, |
| 62 | /* 0x01A8, */ 0x001008050000FFFFUL, |
| 63 | /* 0x01B0, */ 0x001008050000FFFFUL, |
| 64 | /* 0x01B8, */ 0x0000000000000000UL, |
| 65 | /* 0x01C0, */ 0x0000000000000000UL, |
| 66 | /* 0x01C8, */ 0x0000000000000000UL, |
| 67 | /* 0x01D0, */ 0x0000000000000000UL, |
| 68 | /* 0x01D8, */ 0x0000000000000000UL, |
| 69 | /* 0x01E0, */ 0x0000000000000000UL, |
| 70 | /* 0x01E8, */ 0x0000000000000000UL, |
| 71 | /* 0x01F0, */ 0x0000000000000000UL, |
| 72 | /* 0x01F8, */ 0x0000000000000000UL, |
| 73 | /* 0x0200, */ 0x0000000000000000UL, |
| 74 | /* 0x0208, */ 0x0000000000000000UL, |
| 75 | /* 0x0210, */ 0x0000000000000000UL, |
| 76 | /* 0x0218, */ 0x0000000000000000UL, |
| 77 | /* 0x0220, */ 0x0000000000000000UL, |
| 78 | /* 0x0228, */ 0x0000000000000000UL, |
| 79 | /* 0x0230, */ 0x0000000000000000UL, |
| 80 | /* 0x0238, */ 0x0000000000000000UL, |
| 81 | /* 0x0240, */ 0x0000000000000000UL, |
| 82 | /* 0x0248, */ 0x0000000000000000UL, |
| 83 | /* 0x0250, */ 0x0000000000000000UL, |
| 84 | /* 0x0258, */ 0x0000000000000000UL, |
| 85 | /* 0x0260, */ 0x0000000000000000UL, |
| 86 | /* 0x0268, */ 0x001408010000FFFFUL, |
| 87 | /* 0x0270, */ 0x001404010000FFFFUL, |
| 88 | /* 0x0278, */ 0x0000000000000000UL, |
| 89 | /* 0x0280, */ 0x0000000000000000UL, |
| 90 | /* 0x0288, */ 0x0000000000000000UL, |
| 91 | /* 0x0290, */ 0x001408010000FFFFUL, |
| 92 | /* 0x0298, */ 0x001404010000FFFFUL, |
| 93 | /* 0x02A0, */ 0x000C04010000FFFFUL, |
| 94 | /* 0x02A8, */ 0x000C04010000FFFFUL, |
| 95 | /* 0x02B0, */ 0x001404010000FFFFUL, |
| 96 | /* 0x02B8, */ 0x0000000000000000UL, |
| 97 | /* 0x02C0, */ 0x0000000000000000UL, |
| 98 | /* 0x02C8, */ 0x0000000000000000UL, |
| 99 | /* 0x02D0, */ 0x000C04010000FFFFUL, |
| 100 | /* 0x02D8, */ 0x000C04010000FFFFUL, |
| 101 | /* 0x02E0, */ 0x001404010000FFFFUL, |
| 102 | /* 0x02E8, */ 0x0000000000000000UL, |
| 103 | /* 0x02F0, */ 0x0000000000000000UL, |
| 104 | /* 0x02F8, */ 0x0000000000000000UL, |
| 105 | /* 0x0300, */ 0x0000000000000000UL, |
| 106 | /* 0x0308, */ 0x0000000000000000UL, |
| 107 | /* 0x0310, */ 0x0000000000000000UL, |
| 108 | /* 0x0318, */ 0x0000000000000000UL, |
| 109 | /* 0x0320, */ 0x0000000000000000UL, |
| 110 | /* 0x0328, */ 0x0000000000000000UL, |
| 111 | /* 0x0330, */ 0x0000000000000000UL, |
| 112 | /* 0x0338, */ 0x0000000000000000UL, |
Marek Vasut | 436bd7a | 2019-06-14 01:25:01 +0200 | [diff] [blame] | 113 | }; |
| 114 | |
Marek Vasut | 32ccc2c | 2019-06-14 01:27:27 +0200 | [diff] [blame^] | 115 | static const uint64_t mstat_be[] = { |
| 116 | /* 0x0000, */ 0x001200100C89C401UL, |
| 117 | /* 0x0008, */ 0x001200100C89C401UL, |
| 118 | /* 0x0010, */ 0x001200100C89C401UL, |
| 119 | /* 0x0018, */ 0x001200100C89C401UL, |
| 120 | /* 0x0020, */ 0x001100100C803401UL, |
| 121 | /* 0x0028, */ 0x001100100C80FC01UL, |
| 122 | /* 0x0030, */ 0x0000000000000000UL, |
| 123 | /* 0x0038, */ 0x0000000000000000UL, |
| 124 | /* 0x0040, */ 0x0000000000000000UL, |
| 125 | /* 0x0048, */ 0x0000000000000000UL, |
| 126 | /* 0x0050, */ 0x0000000000000000UL, |
| 127 | /* 0x0058, */ 0x0000000000000000UL, |
| 128 | /* 0x0060, */ 0x0000000000000000UL, |
| 129 | /* 0x0068, */ 0x001100100C803401UL, |
| 130 | /* 0x0070, */ 0x0000000000000000UL, |
| 131 | /* 0x0078, */ 0x0000000000000000UL, |
| 132 | /* 0x0080, */ 0x0000000000000000UL, |
| 133 | /* 0x0088, */ 0x0000000000000000UL, |
| 134 | /* 0x0090, */ 0x0000000000000000UL, |
| 135 | /* 0x0098, */ 0x0000000000000000UL, |
| 136 | /* 0x00A0, */ 0x0000000000000000UL, |
| 137 | /* 0x00A8, */ 0x0000000000000000UL, |
| 138 | /* 0x00B0, */ 0x0000000000000000UL, |
| 139 | /* 0x00B8, */ 0x001100100C803401UL, |
| 140 | /* 0x00C0, */ 0x0000000000000000UL, |
| 141 | /* 0x00C8, */ 0x0000000000000000UL, |
| 142 | /* 0x00D0, */ 0x0000000000000000UL, |
| 143 | /* 0x00D8, */ 0x0000000000000000UL, |
| 144 | /* 0x00E0, */ 0x0000000000000000UL, |
| 145 | /* 0x00E8, */ 0x001100100C803401UL, |
| 146 | /* 0x00F0, */ 0x0000000000000000UL, |
| 147 | /* 0x00F8, */ 0x0000000000000000UL, |
| 148 | /* 0x0100, */ 0x0000000000000000UL, |
| 149 | /* 0x0108, */ 0x0000000000000000UL, |
| 150 | /* 0x0110, */ 0x0000000000000000UL, |
| 151 | /* 0x0118, */ 0x0000000000000000UL, |
| 152 | /* 0x0120, */ 0x0000000000000000UL, |
| 153 | /* 0x0128, */ 0x0000000000000000UL, |
| 154 | /* 0x0130, */ 0x001100100C803401UL, |
| 155 | /* 0x0138, */ 0x0000000000000000UL, |
| 156 | /* 0x0140, */ 0x0000000000000000UL, |
| 157 | /* 0x0148, */ 0x0000000000000000UL, |
| 158 | /* 0x0150, */ 0x0000000000000000UL, |
| 159 | /* 0x0158, */ 0x0000000000000000UL, |
| 160 | /* 0x0160, */ 0x0000000000000000UL, |
| 161 | /* 0x0168, */ 0x0000000000000000UL, |
| 162 | /* 0x0170, */ 0x0000000000000000UL, |
| 163 | /* 0x0178, */ 0x0000000000000000UL, |
| 164 | /* 0x0180, */ 0x0000000000000000UL, |
| 165 | /* 0x0188, */ 0x0000000000000000UL, |
| 166 | /* 0x0190, */ 0x0000000000000000UL, |
| 167 | /* 0x0198, */ 0x0000000000000000UL, |
| 168 | /* 0x01A0, */ 0x0000000000000000UL, |
| 169 | /* 0x01A8, */ 0x0000000000000000UL, |
| 170 | /* 0x01B0, */ 0x0000000000000000UL, |
| 171 | /* 0x01B8, */ 0x001100100C803401UL, |
| 172 | /* 0x01C0, */ 0x001100800C8FFC01UL, |
| 173 | /* 0x01C8, */ 0x001100800C8FFC01UL, |
| 174 | /* 0x01D0, */ 0x001100800C8FFC01UL, |
| 175 | /* 0x01D8, */ 0x001100800C8FFC01UL, |
| 176 | /* 0x01E0, */ 0x001100100C80FC01UL, |
| 177 | /* 0x01E8, */ 0x001200100C80FC01UL, |
| 178 | /* 0x01F0, */ 0x001100100C80FC01UL, |
| 179 | /* 0x01F8, */ 0x001100100C803401UL, |
| 180 | /* 0x0200, */ 0x001100100C80FC01UL, |
| 181 | /* 0x0208, */ 0x001200100C80FC01UL, |
| 182 | /* 0x0210, */ 0x001100100C80FC01UL, |
| 183 | /* 0x0218, */ 0x001100100C825801UL, |
| 184 | /* 0x0220, */ 0x001100100C825801UL, |
| 185 | /* 0x0228, */ 0x001100100C803401UL, |
| 186 | /* 0x0230, */ 0x001100100C825801UL, |
| 187 | /* 0x0238, */ 0x001100100C825801UL, |
| 188 | /* 0x0240, */ 0x001200100C8BB801UL, |
| 189 | /* 0x0248, */ 0x001100200C8FFC01UL, |
| 190 | /* 0x0250, */ 0x001200100C8BB801UL, |
| 191 | /* 0x0258, */ 0x001100200C8FFC01UL, |
| 192 | /* 0x0260, */ 0x001100100C84E401UL, |
| 193 | /* 0x0268, */ 0x0000000000000000UL, |
| 194 | /* 0x0270, */ 0x0000000000000000UL, |
| 195 | /* 0x0278, */ 0x001100100C81F401UL, |
| 196 | /* 0x0280, */ 0x001100100C803401UL, |
| 197 | /* 0x0288, */ 0x001100100C803401UL, |
| 198 | /* 0x0290, */ 0x0000000000000000UL, |
| 199 | /* 0x0298, */ 0x0000000000000000UL, |
| 200 | /* 0x02A0, */ 0x0000000000000000UL, |
| 201 | /* 0x02A8, */ 0x0000000000000000UL, |
| 202 | /* 0x02B0, */ 0x0000000000000000UL, |
| 203 | /* 0x02B8, */ 0x001100100C803401UL, |
| 204 | /* 0x02C0, */ 0x001100100C803401UL, |
| 205 | /* 0x02C8, */ 0x001100100C803401UL, |
| 206 | /* 0x02D0, */ 0x0000000000000000UL, |
| 207 | /* 0x02D8, */ 0x0000000000000000UL, |
| 208 | /* 0x02E0, */ 0x0000000000000000UL, |
| 209 | /* 0x02E8, */ 0x001100100C803401UL, |
| 210 | /* 0x02F0, */ 0x001100300C8FFC01UL, |
| 211 | /* 0x02F8, */ 0x001100500C8FFC01UL, |
| 212 | /* 0x0300, */ 0x001100100C803401UL, |
| 213 | /* 0x0308, */ 0x001100300C8FFC01UL, |
| 214 | /* 0x0310, */ 0x001100500C8FFC01UL, |
| 215 | /* 0x0318, */ 0x001200100C803401UL, |
| 216 | /* 0x0320, */ 0x001100300C8FFC01UL, |
| 217 | /* 0x0328, */ 0x001100500C8FFC01UL, |
| 218 | /* 0x0330, */ 0x001100300C8FFC01UL, |
| 219 | /* 0x0338, */ 0x001100500C8FFC01UL, |
Marek Vasut | 436bd7a | 2019-06-14 01:25:01 +0200 | [diff] [blame] | 220 | }; |
| 221 | #endif |