Go to the documentation of this file.
11 #ifndef _ASM_SN_SN0_HUBMD_H
12 #define _ASM_SN_SN0_HUBMD_H
18 #define CACHE_SLINE_SIZE 128
20 #define MAX_REGIONS 64
24 #define MD_PAGE_SIZE 4096
25 #define MD_PAGE_NUM_SHFT 12
29 #define MD_BASE 0x200000
30 #define MD_BASE_PERF 0x210000
31 #define MD_BASE_JUNK 0x220000
33 #define MD_IO_PROTECT 0x200000
34 #define MD_IO_PROT_OVRRD 0x200008
35 #define MD_HSPEC_PROTECT 0x200010
36 #define MD_MEMORY_CONFIG 0x200018
37 #define MD_REFRESH_CONTROL 0x200020
38 #define MD_FANDOP_CAC_STAT 0x200028
39 #define MD_MIG_DIFF_THRESH 0x200030
40 #define MD_MIG_VALUE_THRESH 0x200038
41 #define MD_MIG_CANDIDATE 0x200040
42 #define MD_MIG_CANDIDATE_CLR 0x200048
43 #define MD_DIR_ERROR 0x200050
44 #define MD_DIR_ERROR_CLR 0x200058
45 #define MD_PROTOCOL_ERROR 0x200060
46 #define MD_PROTOCOL_ERROR_CLR 0x200068
47 #define MD_MEM_ERROR 0x200070
48 #define MD_MEM_ERROR_CLR 0x200078
49 #define MD_MISC_ERROR 0x200080
50 #define MD_MISC_ERROR_CLR 0x200088
51 #define MD_MEM_DIMM_INIT 0x200090
52 #define MD_DIR_DIMM_INIT 0x200098
53 #define MD_MOQ_SIZE 0x2000a0
54 #define MD_MLAN_CTL 0x2000a8
56 #define MD_PERF_SEL 0x210000
57 #define MD_PERF_CNT0 0x210010
58 #define MD_PERF_CNT1 0x210018
59 #define MD_PERF_CNT2 0x210020
60 #define MD_PERF_CNT3 0x210028
61 #define MD_PERF_CNT4 0x210030
62 #define MD_PERF_CNT5 0x210038
64 #define MD_UREG0_0 0x220000
65 #define MD_UREG0_1 0x220008
66 #define MD_UREG0_2 0x220010
67 #define MD_UREG0_3 0x220018
68 #define MD_UREG0_4 0x220020
69 #define MD_UREG0_5 0x220028
70 #define MD_UREG0_6 0x220030
71 #define MD_UREG0_7 0x220038
73 #define MD_SLOTID_USTAT 0x220048
74 #define MD_LED0 0x220050
75 #define MD_LED1 0x220058
77 #define MD_UREG1_0 0x220080
78 #define MD_UREG1_1 0x220088
79 #define MD_UREG1_2 0x220090
80 #define MD_UREG1_3 0x220098
81 #define MD_UREG1_4 0x2200a0
82 #define MD_UREG1_5 0x2200a8
83 #define MD_UREG1_6 0x2200b0
84 #define MD_UREG1_7 0x2200b8
85 #define MD_UREG1_8 0x2200c0
86 #define MD_UREG1_9 0x2200c8
87 #define MD_UREG1_10 0x2200d0
88 #define MD_UREG1_11 0x2200d8
89 #define MD_UREG1_12 0x2200e0
90 #define MD_UREG1_13 0x2200e8
91 #define MD_UREG1_14 0x2200f0
92 #define MD_UREG1_15 0x2200f8
94 #ifdef CONFIG_SGI_SN_N_MODE
95 #define MD_MEM_BANKS 4
97 #define MD_MEM_BANKS 8
109 #define MD_SIZE_EMPTY 0
110 #define MD_SIZE_8MB 1
111 #define MD_SIZE_16MB 2
112 #define MD_SIZE_32MB 3
113 #define MD_SIZE_64MB 4
114 #define MD_SIZE_128MB 5
115 #define MD_SIZE_256MB 6
116 #define MD_SIZE_512MB 7
117 #define MD_SIZE_1GB 8
118 #define MD_SIZE_2GB 9
119 #define MD_SIZE_4GB 10
121 #define MD_SIZE_BYTES(size) ((size) == 0 ? 0 : 0x400000L << (size))
122 #define MD_SIZE_MBYTES(size) ((size) == 0 ? 0 : 4 << (size))
124 #define MMC_FPROM_CYC_SHFT 49
125 #define MMC_FPROM_CYC_MASK (UINT64_CAST 31 << 49)
126 #define MMC_FPROM_WR_SHFT 44
127 #define MMC_FPROM_WR_MASK (UINT64_CAST 31 << 44)
128 #define MMC_UCTLR_CYC_SHFT 39
129 #define MMC_UCTLR_CYC_MASK (UINT64_CAST 31 << 39)
130 #define MMC_UCTLR_WR_SHFT 34
131 #define MMC_UCTLR_WR_MASK (UINT64_CAST 31 << 34)
132 #define MMC_DIMM0_SEL_SHFT 32
133 #define MMC_DIMM0_SEL_MASK (UINT64_CAST 3 << 32)
134 #define MMC_IO_PROT_EN_SHFT 31
135 #define MMC_IO_PROT_EN_MASK (UINT64_CAST 1 << 31)
136 #define MMC_IO_PROT (UINT64_CAST 1 << 31)
137 #define MMC_ARB_MLSS_SHFT 30
138 #define MMC_ARB_MLSS_MASK (UINT64_CAST 1 << 30)
139 #define MMC_ARB_MLSS (UINT64_CAST 1 << 30)
140 #define MMC_IGNORE_ECC_SHFT 29
141 #define MMC_IGNORE_ECC_MASK (UINT64_CAST 1 << 29)
142 #define MMC_IGNORE_ECC (UINT64_CAST 1 << 29)
143 #define MMC_DIR_PREMIUM_SHFT 28
144 #define MMC_DIR_PREMIUM_MASK (UINT64_CAST 1 << 28)
145 #define MMC_DIR_PREMIUM (UINT64_CAST 1 << 28)
146 #define MMC_REPLY_GUAR_SHFT 24
147 #define MMC_REPLY_GUAR_MASK (UINT64_CAST 15 << 24)
148 #define MMC_BANK_SHFT(_b) ((_b) * 3)
149 #define MMC_BANK_MASK(_b) (UINT64_CAST 7 << MMC_BANK_SHFT(_b))
150 #define MMC_BANK_ALL_MASK 0xffffff
151 #define MMC_RESET_DEFAULTS (UINT64_CAST 0x0f << MMC_FPROM_CYC_SHFT | \
152 UINT64_CAST 0x07 << MMC_FPROM_WR_SHFT | \
153 UINT64_CAST 0x1f << MMC_UCTLR_CYC_SHFT | \
154 UINT64_CAST 0x0f << MMC_UCTLR_WR_SHFT | \
155 MMC_IGNORE_ECC | MMC_DIR_PREMIUM | \
156 UINT64_CAST 0x0f << MMC_REPLY_GUAR_SHFT | \
161 #define MRC_ENABLE_SHFT 63
162 #define MRC_ENABLE_MASK (UINT64_CAST 1 << 63)
163 #define MRC_ENABLE (UINT64_CAST 1 << 63)
164 #define MRC_COUNTER_SHFT 12
165 #define MRC_COUNTER_MASK (UINT64_CAST 0xfff << 12)
166 #define MRC_CNT_THRESH_MASK 0xfff
167 #define MRC_RESET_DEFAULTS (UINT64_CAST 0x400)
171 #define MDI_SELECT_SHFT 32
172 #define MDI_SELECT_MASK (UINT64_CAST 0x0f << 32)
173 #define MDI_DIMM_MODE_MASK (UINT64_CAST 0xfff)
177 #define MMS_RP_SIZE_SHFT 8
178 #define MMS_RP_SIZE_MASK (UINT64_CAST 0x3f << 8)
179 #define MMS_RQ_SIZE_SHFT 0
180 #define MMS_RQ_SIZE_MASK (UINT64_CAST 0x1f)
181 #define MMS_RESET_DEFAULTS (0x32 << 8 | 0x12)
185 #define MFC_VALID_SHFT 63
186 #define MFC_VALID_MASK (UINT64_CAST 1 << 63)
187 #define MFC_VALID (UINT64_CAST 1 << 63)
188 #define MFC_ADDR_SHFT 6
189 #define MFC_ADDR_MASK (UINT64_CAST 0x3ffffff)
193 #define MLAN_PHI1_SHFT 27
194 #define MLAN_PHI1_MASK (UINT64_CAST 0x7f << 27)
195 #define MLAN_PHI0_SHFT 20
196 #define MLAN_PHI0_MASK (UINT64_CAST 0x7f << 27)
197 #define MLAN_PULSE_SHFT 10
198 #define MLAN_PULSE_MASK (UINT64_CAST 0x3ff << 10)
199 #define MLAN_SAMPLE_SHFT 2
200 #define MLAN_SAMPLE_MASK (UINT64_CAST 0xff << 2)
201 #define MLAN_DONE_SHFT 1
202 #define MLAN_DONE_MASK 2
203 #define MLAN_DONE (UINT64_CAST 0x02)
204 #define MLAN_RD_DATA (UINT64_CAST 0x01)
205 #define MLAN_RESET_DEFAULTS (UINT64_CAST 0x31 << MLAN_PHI1_SHFT | \
206 UINT64_CAST 0x31 << MLAN_PHI0_SHFT)
210 #define MSU_CORECLK_TST_SHFT 7
211 #define MSU_CORECLK_TST_MASK (UINT64_CAST 1 << 7)
212 #define MSU_CORECLK_TST (UINT64_CAST 1 << 7)
213 #define MSU_CORECLK_SHFT 6
214 #define MSU_CORECLK_MASK (UINT64_CAST 1 << 6)
215 #define MSU_CORECLK (UINT64_CAST 1 << 6)
216 #define MSU_NETSYNC_SHFT 5
217 #define MSU_NETSYNC_MASK (UINT64_CAST 1 << 5)
218 #define MSU_NETSYNC (UINT64_CAST 1 << 5)
219 #define MSU_FPROMRDY_SHFT 4
220 #define MSU_FPROMRDY_MASK (UINT64_CAST 1 << 4)
221 #define MSU_FPROMRDY (UINT64_CAST 1 << 4)
222 #define MSU_I2CINTR_SHFT 3
223 #define MSU_I2CINTR_MASK (UINT64_CAST 1 << 3)
224 #define MSU_I2CINTR (UINT64_CAST 1 << 3)
225 #define MSU_SLOTID_MASK 0xff
226 #define MSU_SN0_SLOTID_SHFT 0
227 #define MSU_SN0_SLOTID_MASK (UINT64_CAST 7)
228 #define MSU_SN00_SLOTID_SHFT 7
229 #define MSU_SN00_SLOTID_MASK (UINT64_CAST 0x80)
231 #define MSU_PIMM_PSC_SHFT 4
232 #define MSU_PIMM_PSC_MASK (0xf << MSU_PIMM_PSC_SHFT)
236 #define MD_MIG_DIFF_THRES_VALID_MASK (UINT64_CAST 0x1 << 63)
237 #define MD_MIG_DIFF_THRES_VALID_SHFT 63
238 #define MD_MIG_DIFF_THRES_VALUE_MASK (UINT64_CAST 0xfffff)
242 #define MD_MIG_VALUE_THRES_VALID_MASK (UINT64_CAST 0x1 << 63)
243 #define MD_MIG_VALUE_THRES_VALID_SHFT 63
244 #define MD_MIG_VALUE_THRES_VALUE_MASK (UINT64_CAST 0xfffff)
248 #define MD_MIG_CANDIDATE_VALID_MASK (UINT64_CAST 0x1 << 63)
249 #define MD_MIG_CANDIDATE_VALID_SHFT 63
250 #define MD_MIG_CANDIDATE_TYPE_MASK (UINT64_CAST 0x1 << 30)
251 #define MD_MIG_CANDIDATE_TYPE_SHFT 30
252 #define MD_MIG_CANDIDATE_OVERRUN_MASK (UINT64_CAST 0x1 << 29)
253 #define MD_MIG_CANDIDATE_OVERRUN_SHFT 29
254 #define MD_MIG_CANDIDATE_INITIATOR_MASK (UINT64_CAST 0x7ff << 18)
255 #define MD_MIG_CANDIDATE_INITIATOR_SHFT 18
256 #define MD_MIG_CANDIDATE_NODEID_MASK (UINT64_CAST 0x1ff << 20)
257 #define MD_MIG_CANDIDATE_NODEID_SHFT 20
258 #define MD_MIG_CANDIDATE_ADDR_MASK (UINT64_CAST 0x3ffff)
259 #define MD_MIG_CANDIDATE_ADDR_SHFT 14
263 #define MD_BANK_SHFT 29
264 #define MD_BANK_MASK (UINT64_CAST 7 << 29)
265 #define MD_BANK_SIZE (UINT64_CAST 1 << MD_BANK_SHFT)
266 #define MD_BANK_OFFSET(_b) (UINT64_CAST (_b) << MD_BANK_SHFT)
278 #define MD_DIR_SHARED (UINT64_CAST 0x0)
279 #define MD_DIR_POISONED (UINT64_CAST 0x1)
280 #define MD_DIR_EXCLUSIVE (UINT64_CAST 0x2)
281 #define MD_DIR_BUSY_SHARED (UINT64_CAST 0x3)
282 #define MD_DIR_BUSY_EXCL (UINT64_CAST 0x4)
283 #define MD_DIR_WAIT (UINT64_CAST 0x5)
284 #define MD_DIR_UNOWNED (UINT64_CAST 0x7)
291 #define MD_DIR_FORCE_ECC (UINT64_CAST 1 << 63)
303 #define MD_PDIR_MASK 0xffffffffffff
304 #define MD_PDIR_ECC_SHFT 0
305 #define MD_PDIR_ECC_MASK 0x7f
306 #define MD_PDIR_PRIO_SHFT 8
307 #define MD_PDIR_PRIO_MASK (0xf << 8)
308 #define MD_PDIR_AX_SHFT 7
309 #define MD_PDIR_AX_MASK (1 << 7)
310 #define MD_PDIR_AX (1 << 7)
311 #define MD_PDIR_FINE_SHFT 12
312 #define MD_PDIR_FINE_MASK (1 << 12)
313 #define MD_PDIR_FINE (1 << 12)
314 #define MD_PDIR_OCT_SHFT 13
315 #define MD_PDIR_OCT_MASK (7 << 13)
316 #define MD_PDIR_STATE_SHFT 13
317 #define MD_PDIR_STATE_MASK (7 << 13)
318 #define MD_PDIR_ONECNT_SHFT 16
319 #define MD_PDIR_ONECNT_MASK (0x3f << 16)
320 #define MD_PDIR_PTR_SHFT 22
321 #define MD_PDIR_PTR_MASK (UINT64_CAST 0x7ff << 22)
322 #define MD_PDIR_VECMSB_SHFT 22
323 #define MD_PDIR_VECMSB_BITMASK 0x3ffffff
324 #define MD_PDIR_VECMSB_BITSHFT 27
325 #define MD_PDIR_VECMSB_MASK (UINT64_CAST MD_PDIR_VECMSB_BITMASK << 22)
326 #define MD_PDIR_CWOFF_SHFT 7
327 #define MD_PDIR_CWOFF_MASK (7 << 7)
328 #define MD_PDIR_VECLSB_SHFT 10
329 #define MD_PDIR_VECLSB_BITMASK (UINT64_CAST 0x3fffffffff)
330 #define MD_PDIR_VECLSB_BITSHFT 0
331 #define MD_PDIR_VECLSB_MASK (MD_PDIR_VECLSB_BITMASK << 10)
337 #define MD_PDIR_INIT_LO (MD_DIR_UNOWNED << MD_PDIR_STATE_SHFT | \
339 #define MD_PDIR_INIT_HI 0
340 #define MD_PDIR_INIT_PROT (MD_PROT_RW << MD_PPROT_IO_SHFT | \
341 MD_PROT_RW << MD_PPROT_SHFT)
352 #define MD_SDIR_MASK 0xffff
353 #define MD_SDIR_ECC_SHFT 0
354 #define MD_SDIR_ECC_MASK 0x1f
355 #define MD_SDIR_PRIO_SHFT 6
356 #define MD_SDIR_PRIO_MASK (1 << 6)
357 #define MD_SDIR_AX_SHFT 5
358 #define MD_SDIR_AX_MASK (1 << 5)
359 #define MD_SDIR_AX (1 << 5)
360 #define MD_SDIR_STATE_SHFT 7
361 #define MD_SDIR_STATE_MASK (7 << 7)
362 #define MD_SDIR_PTR_SHFT 10
363 #define MD_SDIR_PTR_MASK (0x3f << 10)
364 #define MD_SDIR_CWOFF_SHFT 5
365 #define MD_SDIR_CWOFF_MASK (7 << 5)
366 #define MD_SDIR_VECMSB_SHFT 11
367 #define MD_SDIR_VECMSB_BITMASK 0x1f
368 #define MD_SDIR_VECMSB_BITSHFT 7
369 #define MD_SDIR_VECMSB_MASK (MD_SDIR_VECMSB_BITMASK << 11)
370 #define MD_SDIR_VECLSB_SHFT 5
371 #define MD_SDIR_VECLSB_BITMASK 0x7ff
372 #define MD_SDIR_VECLSB_BITSHFT 0
373 #define MD_SDIR_VECLSB_MASK (MD_SDIR_VECLSB_BITMASK << 5)
379 #define MD_SDIR_INIT_LO (MD_DIR_UNOWNED << MD_SDIR_STATE_SHFT | \
381 #define MD_SDIR_INIT_HI 0
382 #define MD_SDIR_INIT_PROT (MD_PROT_RW << MD_SPROT_SHFT)
386 #define MD_PROT_RW (UINT64_CAST 0x6)
387 #define MD_PROT_RO (UINT64_CAST 0x3)
388 #define MD_PROT_NO (UINT64_CAST 0x0)
389 #define MD_PROT_BAD (UINT64_CAST 0x5)
393 #define MD_PPROT_SHFT 0
394 #define MD_PPROT_MASK 7
395 #define MD_PPROT_MIGMD_SHFT 3
396 #define MD_PPROT_MIGMD_MASK (3 << 3)
397 #define MD_PPROT_REFCNT_SHFT 5
398 #define MD_PPROT_REFCNT_WIDTH 0x7ffff
399 #define MD_PPROT_REFCNT_MASK (MD_PPROT_REFCNT_WIDTH << 5)
401 #define MD_PPROT_IO_SHFT 45
402 #define MD_PPROT_IO_MASK (UINT64_CAST 7 << 45)
406 #define MD_SPROT_SHFT 0
407 #define MD_SPROT_MASK 7
408 #define MD_SPROT_MIGMD_SHFT 3
409 #define MD_SPROT_MIGMD_MASK (3 << 3)
410 #define MD_SPROT_REFCNT_SHFT 5
411 #define MD_SPROT_REFCNT_WIDTH 0x7ff
412 #define MD_SPROT_REFCNT_MASK (MD_SPROT_REFCNT_WIDTH << 5)
416 #define MD_PROT_MIGMD_IREL (UINT64_CAST 0x3 << 3)
417 #define MD_PROT_MIGMD_IABS (UINT64_CAST 0x2 << 3)
418 #define MD_PROT_MIGMD_PREL (UINT64_CAST 0x1 << 3)
419 #define MD_PROT_MIGMD_OFF (UINT64_CAST 0x0 << 3)
432 #define CPU_LED_ADDR(_nasid, _slice) \
434 REMOTE_HUB_ADDR((_nasid), MD_UREG1_0 + ((_slice) << 5)) : \
435 REMOTE_HUB_ADDR((_nasid), MD_LED0 + ((_slice) << 3)))
437 #define SET_CPU_LEDS(_nasid, _slice, _val) \
438 (HUB_S(CPU_LED_ADDR(_nasid, _slice), (_val)))
440 #define SET_MY_LEDS(_v) \
441 SET_CPU_LEDS(get_nasid(), get_slice(), (_v))
447 #define DIRTYPE_PREMIUM 1
448 #define DIRTYPE_STANDARD 0
449 #define MD_MEMORY_CONFIG_DIR_TYPE_GET(region) (\
450 (REMOTE_HUB_L(region, MD_MEMORY_CONFIG) & MMC_DIR_PREMIUM_MASK) >> \
451 MMC_DIR_PREMIUM_SHFT)
459 #define MD_MIG_DIFF_THRESH_GET(region) ( \
460 REMOTE_HUB_L((region), MD_MIG_DIFF_THRESH) & \
461 MD_MIG_DIFF_THRES_VALUE_MASK)
463 #define MD_MIG_DIFF_THRESH_SET(region, value) ( \
464 REMOTE_HUB_S((region), MD_MIG_DIFF_THRESH, \
465 MD_MIG_DIFF_THRES_VALID_MASK | (value)))
467 #define MD_MIG_DIFF_THRESH_DISABLE(region) ( \
468 REMOTE_HUB_S((region), MD_MIG_DIFF_THRESH, \
469 REMOTE_HUB_L((region), MD_MIG_DIFF_THRESH) \
470 & ~MD_MIG_DIFF_THRES_VALID_MASK))
472 #define MD_MIG_DIFF_THRESH_ENABLE(region) ( \
473 REMOTE_HUB_S((region), MD_MIG_DIFF_THRESH, \
474 REMOTE_HUB_L((region), MD_MIG_DIFF_THRESH) \
475 | MD_MIG_DIFF_THRES_VALID_MASK))
477 #define MD_MIG_DIFF_THRESH_IS_ENABLED(region) ( \
478 REMOTE_HUB_L((region), MD_MIG_DIFF_THRESH) & \
479 MD_MIG_DIFF_THRES_VALID_MASK)
481 #define MD_MIG_VALUE_THRESH_GET(region) ( \
482 REMOTE_HUB_L((region), MD_MIG_VALUE_THRESH) & \
483 MD_MIG_VALUE_THRES_VALUE_MASK)
485 #define MD_MIG_VALUE_THRESH_SET(region, value) ( \
486 REMOTE_HUB_S((region), MD_MIG_VALUE_THRESH, \
487 MD_MIG_VALUE_THRES_VALID_MASK | (value)))
489 #define MD_MIG_VALUE_THRESH_DISABLE(region) ( \
490 REMOTE_HUB_S((region), MD_MIG_VALUE_THRESH, \
491 REMOTE_HUB_L(region, MD_MIG_VALUE_THRESH) \
492 & ~MD_MIG_VALUE_THRES_VALID_MASK))
494 #define MD_MIG_VALUE_THRESH_ENABLE(region) ( \
495 REMOTE_HUB_S((region), MD_MIG_VALUE_THRESH, \
496 REMOTE_HUB_L((region), MD_MIG_VALUE_THRESH) \
497 | MD_MIG_VALUE_THRES_VALID_MASK))
499 #define MD_MIG_VALUE_THRESH_IS_ENABLED(region) ( \
500 REMOTE_HUB_L((region), MD_MIG_VALUE_THRESH) & \
501 MD_MIG_VALUE_THRES_VALID_MASK)
507 #define MD_MIG_CANDIDATE_GET(my_region_id) ( \
508 REMOTE_HUB_L((my_region_id), MD_MIG_CANDIDATE_CLR))
510 #define MD_MIG_CANDIDATE_HWPFN(value) ((value) & MD_MIG_CANDIDATE_ADDR_MASK)
512 #define MD_MIG_CANDIDATE_NODEID(value) ( \
513 ((value) & MD_MIG_CANDIDATE_NODEID_MASK) >> MD_MIG_CANDIDATE_NODEID_SHFT)
515 #define MD_MIG_CANDIDATE_TYPE(value) ( \
516 ((value) & MD_MIG_CANDIDATE_TYPE_MASK) >> MD_MIG_CANDIDATE_TYPE_SHFT)
518 #define MD_MIG_CANDIDATE_VALID(value) ( \
519 ((value) & MD_MIG_CANDIDATE_VALID_MASK) >> MD_MIG_CANDIDATE_VALID_SHFT)
526 #define MD_PPROT_REFCNT_GET(value) ( \
527 ((value) & MD_PPROT_REFCNT_MASK) >> MD_PPROT_REFCNT_SHFT)
529 #define MD_PPROT_MIGMD_GET(value) ( \
530 ((value) & MD_PPROT_MIGMD_MASK) >> MD_PPROT_MIGMD_SHFT)
533 #define MD_SPROT_REFCNT_GET(value) ( \
534 ((value) & MD_SPROT_REFCNT_MASK) >> MD_SPROT_REFCNT_SHFT)
536 #define MD_SPROT_MIGMD_GET(value) ( \
537 ((value) & MD_SPROT_MIGMD_MASK) >> MD_SPROT_MIGMD_SHFT)
741 #define DIR_ERROR_VALID_MASK 0xe000000000000000
742 #define DIR_ERROR_VALID_SHFT 61
743 #define DIR_ERROR_VALID_UCE 0x8000000000000000
744 #define DIR_ERROR_VALID_AE 0x4000000000000000
745 #define DIR_ERROR_VALID_CE 0x2000000000000000
747 #define MEM_ERROR_VALID_MASK 0xc000000000000000
748 #define MEM_ERROR_VALID_SHFT 62
749 #define MEM_ERROR_VALID_UCE 0x8000000000000000
750 #define MEM_ERROR_VALID_CE 0x4000000000000000
752 #define PROTO_ERROR_VALID_MASK 0x8000000000000000
754 #define MISC_ERROR_VALID_MASK 0x3ff
760 #define DIR_ERR_HSPEC_MASK 0x3ffffff8
761 #define ERROR_HSPEC_MASK 0x3ffffff8
762 #define ERROR_HSPEC_SHFT 3
763 #define ERROR_ADDR_MASK 0xfffffff8
764 #define ERROR_ADDR_SHFT 3
770 #define MMCE_VALID_MASK 0x3ff
771 #define MMCE_ILL_MSG_SHFT 8
772 #define MMCE_ILL_MSG_MASK (UINT64_CAST 0x03 << MMCE_ILL_MSG_SHFT)
773 #define MMCE_ILL_REV_SHFT 6
774 #define MMCE_ILL_REV_MASK (UINT64_CAST 0x03 << MMCE_ILL_REV_SHFT)
775 #define MMCE_LONG_PACK_SHFT 4
776 #define MMCE_LONG_PACK_MASK (UINT64_CAST 0x03 << MMCE_lONG_PACK_SHFT)
777 #define MMCE_SHORT_PACK_SHFT 2
778 #define MMCE_SHORT_PACK_MASK (UINT64_CAST 0x03 << MMCE_SHORT_PACK_SHFT)
779 #define MMCE_BAD_DATA_SHFT 0
780 #define MMCE_BAD_DATA_MASK (UINT64_CAST 0x03 << MMCE_BAD_DATA_SHFT)
783 #define MD_PERF_COUNTERS 6
784 #define MD_PERF_SETS 6
786 #define MEM_DIMM_MASK 0xe0000000
787 #define MEM_DIMM_SHFT 29