|
#define | SBRIDGE_REVISION " Ver: 1.0.0 " |
|
#define | EDAC_MOD_STR "sbridge_edac" |
|
#define | sbridge_printk(level, fmt, arg...) edac_printk(level, "sbridge", fmt, ##arg) |
|
#define | sbridge_mc_printk(mci, level, fmt, arg...) edac_mc_chipset_printk(mci, level, "sbridge", fmt, ##arg) |
|
#define | GET_BITFIELD(v, lo, hi) (((v) & ((1ULL << ((hi) - (lo) + 1)) - 1) << (lo)) >> (lo)) |
|
#define | PCI_DEVICE_ID_INTEL_SBRIDGE_SAD0 0x3cf4 /* 12.6 */ |
|
#define | PCI_DEVICE_ID_INTEL_SBRIDGE_SAD1 0x3cf6 /* 12.7 */ |
|
#define | PCI_DEVICE_ID_INTEL_SBRIDGE_BR 0x3cf5 /* 13.6 */ |
|
#define | PCI_DEVICE_ID_INTEL_SBRIDGE_IMC_HA0 0x3ca0 /* 14.0 */ |
|
#define | PCI_DEVICE_ID_INTEL_SBRIDGE_IMC_TA 0x3ca8 /* 15.0 */ |
|
#define | PCI_DEVICE_ID_INTEL_SBRIDGE_IMC_RAS 0x3c71 /* 15.1 */ |
|
#define | PCI_DEVICE_ID_INTEL_SBRIDGE_IMC_TAD0 0x3caa /* 15.2 */ |
|
#define | PCI_DEVICE_ID_INTEL_SBRIDGE_IMC_TAD1 0x3cab /* 15.3 */ |
|
#define | PCI_DEVICE_ID_INTEL_SBRIDGE_IMC_TAD2 0x3cac /* 15.4 */ |
|
#define | PCI_DEVICE_ID_INTEL_SBRIDGE_IMC_TAD3 0x3cad /* 15.5 */ |
|
#define | PCI_DEVICE_ID_INTEL_SBRIDGE_IMC_DDRIO 0x3cb8 /* 17.0 */ |
|
#define | PCI_DEVICE_ID_INTEL_SBRIDGE_IMC_ERR0 0x3c72 /* 16.2 */ |
|
#define | PCI_DEVICE_ID_INTEL_SBRIDGE_IMC_ERR1 0x3c73 /* 16.3 */ |
|
#define | PCI_DEVICE_ID_INTEL_SBRIDGE_IMC_ERR2 0x3c76 /* 16.6 */ |
|
#define | PCI_DEVICE_ID_INTEL_SBRIDGE_IMC_ERR3 0x3c77 /* 16.7 */ |
|
#define | MAX_SAD ARRAY_SIZE(dram_rule) |
|
#define | SAD_LIMIT(reg) ((GET_BITFIELD(reg, 6, 25) << 26) | 0x3ffffff) |
|
#define | DRAM_ATTR(reg) GET_BITFIELD(reg, 2, 3) |
|
#define | INTERLEAVE_MODE(reg) GET_BITFIELD(reg, 1, 1) |
|
#define | DRAM_RULE_ENABLE(reg) GET_BITFIELD(reg, 0, 0) |
|
#define | MAX_INTERLEAVE ARRAY_SIZE(interleave_list) |
|
#define | SAD_PKG0(reg) GET_BITFIELD(reg, 0, 2) |
|
#define | SAD_PKG1(reg) GET_BITFIELD(reg, 3, 5) |
|
#define | SAD_PKG2(reg) GET_BITFIELD(reg, 8, 10) |
|
#define | SAD_PKG3(reg) GET_BITFIELD(reg, 11, 13) |
|
#define | SAD_PKG4(reg) GET_BITFIELD(reg, 16, 18) |
|
#define | SAD_PKG5(reg) GET_BITFIELD(reg, 19, 21) |
|
#define | SAD_PKG6(reg) GET_BITFIELD(reg, 24, 26) |
|
#define | SAD_PKG7(reg) GET_BITFIELD(reg, 27, 29) |
|
#define | TOLM 0x80 |
|
#define | TOHM 0x84 |
|
#define | GET_TOLM(reg) ((GET_BITFIELD(reg, 0, 3) << 28) | 0x3ffffff) |
|
#define | GET_TOHM(reg) ((GET_BITFIELD(reg, 0, 20) << 25) | 0x3ffffff) |
|
#define | SAD_TARGET 0xf0 |
|
#define | SOURCE_ID(reg) GET_BITFIELD(reg, 9, 11) |
|
#define | SAD_CONTROL 0xf4 |
|
#define | NODE_ID(reg) GET_BITFIELD(reg, 0, 2) |
|
#define | MAX_TAD ARRAY_SIZE(tad_dram_rule) |
|
#define | TAD_LIMIT(reg) ((GET_BITFIELD(reg, 12, 31) << 26) | 0x3ffffff) |
|
#define | TAD_SOCK(reg) GET_BITFIELD(reg, 10, 11) |
|
#define | TAD_CH(reg) GET_BITFIELD(reg, 8, 9) |
|
#define | TAD_TGT3(reg) GET_BITFIELD(reg, 6, 7) |
|
#define | TAD_TGT2(reg) GET_BITFIELD(reg, 4, 5) |
|
#define | TAD_TGT1(reg) GET_BITFIELD(reg, 2, 3) |
|
#define | TAD_TGT0(reg) GET_BITFIELD(reg, 0, 1) |
|
#define | MCMTR 0x7c |
|
#define | IS_ECC_ENABLED(mcmtr) GET_BITFIELD(mcmtr, 2, 2) |
|
#define | IS_LOCKSTEP_ENABLED(mcmtr) GET_BITFIELD(mcmtr, 1, 1) |
|
#define | IS_CLOSE_PG(mcmtr) GET_BITFIELD(mcmtr, 0, 0) |
|
#define | RASENABLES 0xac |
|
#define | IS_MIRROR_ENABLED(reg) GET_BITFIELD(reg, 0, 0) |
|
#define | RANK_DISABLE(mtr) GET_BITFIELD(mtr, 16, 19) |
|
#define | IS_DIMM_PRESENT(mtr) GET_BITFIELD(mtr, 14, 14) |
|
#define | RANK_CNT_BITS(mtr) GET_BITFIELD(mtr, 12, 13) |
|
#define | RANK_WIDTH_BITS(mtr) GET_BITFIELD(mtr, 2, 4) |
|
#define | COL_WIDTH_BITS(mtr) GET_BITFIELD(mtr, 0, 1) |
|
#define | CHN_IDX_OFFSET(reg) GET_BITFIELD(reg, 28, 29) |
|
#define | TAD_OFFSET(reg) (GET_BITFIELD(reg, 6, 25) << 26) |
|
#define | MAX_RIR_RANGES ARRAY_SIZE(rir_way_limit) |
|
#define | IS_RIR_VALID(reg) GET_BITFIELD(reg, 31, 31) |
|
#define | RIR_WAY(reg) GET_BITFIELD(reg, 28, 29) |
|
#define | RIR_LIMIT(reg) ((GET_BITFIELD(reg, 1, 10) << 29)| 0x1fffffff) |
|
#define | MAX_RIR_WAY 8 |
|
#define | RIR_RNK_TGT(reg) GET_BITFIELD(reg, 16, 19) |
|
#define | RIR_OFFSET(reg) GET_BITFIELD(reg, 2, 14) |
|
#define | RANK_ODD_OV(reg) GET_BITFIELD(reg, 31, 31) |
|
#define | RANK_ODD_ERR_CNT(reg) GET_BITFIELD(reg, 16, 30) |
|
#define | RANK_EVEN_OV(reg) GET_BITFIELD(reg, 15, 15) |
|
#define | RANK_EVEN_ERR_CNT(reg) GET_BITFIELD(reg, 0, 14) |
|
#define | RANK_ODD_ERR_THRSLD(reg) GET_BITFIELD(reg, 16, 30) |
|
#define | RANK_EVEN_ERR_THRSLD(reg) GET_BITFIELD(reg, 0, 14) |
|
#define | RANK_CFG_A 0x0328 |
|
#define | IS_RDIMM_ENABLED(reg) GET_BITFIELD(reg, 11, 11) |
|
#define | NUM_CHANNELS 4 |
|
#define | MAX_DIMMS 3 /* Max DIMMS per channel */ |
|
#define | PCI_DESCR(device, function, device_id) |
|
#define | PCI_ID_TABLE_ENTRY(A) { .descr=A, .n_devs = ARRAY_SIZE(A) } |
|