/* store 16 bit error injection vector which enables injecting errors to the corresponding bit within the error injection word above. When used during a DRAM ECC read, it holds the contents of the of the DRAM ECC bits.  */
static ssize_t amd64_inject_ecc_vector_store(struct mem_ctl_info *mci, const char *data, size_t count)
/* store 16 bit error injection vector which enables injecting errors to the corresponding bit within the error injection word above. When used during a DRAM ECC read, it holds the contents of the of the DRAM ECC bits.  */
static ssize_t amd64_inject_ecc_vector_store(struct mem_ctl_info *mci, const char *data, size_t count)
{
	struct amd64_pvt *pvt = mci->pvt_info;
	unsigned long value;
	int ret = 0;
	ret = strict_strtoul(data, 16, &value);
	if (ret != -EINVAL) {
		if (value & 0xFFFF0000) {
			amd64_printk(KERN_WARNING,
				     "%s: invalid EccVector: 0x%lx\n",
				     __func__, value);
			return -EINVAL;
		}
		pvt->injection.bit_map = (u32) value;
		return count;
	}
	return ret;
}