/* If the EEPROM enabled WDTR for the device and the device supports wide bus (16 bit) transfers, then turn on the device's 'wdtr_able' bit and write the new value to the microcode.  */
static void advansys_wide_enable_wdtr(AdvPortAddr iop_base, unsigned short tidmask)
/* If the EEPROM enabled WDTR for the device and the device supports wide bus (16 bit) transfers, then turn on the device's 'wdtr_able' bit and write the new value to the microcode.  */
static void advansys_wide_enable_wdtr(AdvPortAddr iop_base, unsigned short tidmask)
{
	unsigned short cfg_word;
	AdvReadWordLram(iop_base, ASC_MC_WDTR_ABLE, cfg_word);
	if ((cfg_word & tidmask) != 0)
		return;
	cfg_word |= tidmask;
	AdvWriteWordLram(iop_base, ASC_MC_WDTR_ABLE, cfg_word);
	AdvReadWordLram(iop_base, ASC_MC_SDTR_DONE, cfg_word);
	cfg_word &= ~tidmask;
	AdvWriteWordLram(iop_base, ASC_MC_SDTR_DONE, cfg_word);
	AdvReadWordLram(iop_base, ASC_MC_WDTR_DONE, cfg_word);
	cfg_word &= ~tidmask;
	AdvWriteWordLram(iop_base, ASC_MC_WDTR_DONE, cfg_word);
}