/* Set the Tx values normally modified by IBC in IB1.2 mode to default values, as gotten from first row of init table.  */
static int set_dds_vals(struct ipath_devdata *dd, struct dds_init *ddi)
/* Set the Tx values normally modified by IBC in IB1.2 mode to default values, as gotten from first row of init table.  */
static int set_dds_vals(struct ipath_devdata *dd, struct dds_init *ddi)
{
	int ret;
	int idx, reg, data;
	uint32_t regmap;
	regmap = DDS_REG_MAP;
	for (idx = 0; idx < NUM_DDS_REGS; ++idx) {
		reg = (regmap & 0xF);
		regmap >>= 4;
		data = ddi->reg_vals[idx];
		ret = ibsd_mod_allchnls(dd, EPB_LOC(0, 9, reg), data, 0xFF);
		if (ret < 0)
			break;
	}
	return ret;
}