/* Determine if the DIMMs have ECC enabled. ECC is enabled ONLY if all the DIMMs are ECC capable.  */
static enum edac_type amd64_determine_edac_cap(struct amd64_pvt *pvt)
/* Determine if the DIMMs have ECC enabled. ECC is enabled ONLY if all the DIMMs are ECC capable.  */
static enum edac_type amd64_determine_edac_cap(struct amd64_pvt *pvt)
{
	int bit;
	enum dev_type edac_cap = EDAC_FLAG_NONE;
	bit = (boot_cpu_data.x86 > 0xf || pvt->ext_model >= K8_REV_F)
		? 19
		: 17;
	if (pvt->dclr0 & BIT(bit))
		edac_cap = EDAC_FLAG_SECDED;
	return edac_cap;
}