WDCDEBUG_PRINT(("wdc_ata_set_mode=0x%x\n", mode), DEBUG_FUNCS);
WDCDEBUG_PRINT(("ata_set_mode=0x%x\n", mode), DEBUG_FUNCS);
ata_set_mode(drvp, mode, flags)	struct ata_drive_datas *drvp;	u_int8_t mode;	u_int8_t flags;{	struct wdc_command wdc_c;	WDCDEBUG_PRINT(("wdc_ata_set_mode=0x%x\n", mode), DEBUG_FUNCS);	bzero(&wdc_c, sizeof(struct wdc_command));	wdc_c.r_command = SET_FEATURES;	wdc_c.r_st_bmask = 0;	wdc_c.r_st_pmask = 0;	wdc_c.r_precomp = WDSF_SET_MODE;	wdc_c.r_count = mode;	wdc_c.flags = AT_READ | flags;	wdc_c.timeout = 1000; /* 1s */	if (wdc_exec_command(drvp, &wdc_c) != WDC_COMPLETE)		return CMD_AGAIN;	if (wdc_c.flags & (AT_ERROR | AT_TIMEOU | AT_DF)) {		return CMD_ERR;	}	return CMD_OK;}