(void)bus_space_read_1(iot, ioh, wd_error); (void)bus_space_read_1(iot, ioh, wd_seccnt);
bus_space_read_1(iot, ioh, wd_error); bus_space_read_1(iot, ioh, wd_seccnt);
wdcintr(arg)	void *arg;{	struct wdc_softc *wdc = arg;	struct wdc_xfer *xfer;	if ((wdc->sc_flags & WDCF_IRQ_WAIT) == 0) {		bus_space_tag_t iot = wdc->sc_iot;		bus_space_handle_t ioh = wdc->sc_ioh;		u_char s;#ifdef ATAPI_DEBUG_WDC		u_char e, i;#endif		DELAY(100);		/* Clear the pending interrupt and abort. */		s = bus_space_read_1(iot, ioh, wd_status);		if (s != (WDCS_DRDY|WDCS_DSC)) {#ifdef ATAPI_DEBUG_WDC			e = bus_space_read_1(iot, ioh, wd_error);			i = bus_space_read_1(iot, ioh, wd_seccnt);			printf("wdcintr: inactive controller, "			    "punting st=%02x er=%02x irr=%02x\n", s, e, i);#else			(void)bus_space_read_1(iot, ioh, wd_error);			(void)bus_space_read_1(iot, ioh, wd_seccnt);#endif			if (s & WDCS_DRQ) {				int len = 256 * bus_space_read_1(iot, ioh,				    wd_cyl_hi) +				    bus_space_read_1(iot, ioh, wd_cyl_lo);#ifdef ATAPI_DEBUG_WDC				printf ("wdcintr: clearing up %d bytes\n",				    len);#endif				wdcbit_bucket (wdc, len);			}		}		return 0;	}	WDDEBUG_PRINT(("wdcintr\n"));	wdc->sc_flags &= ~WDCF_IRQ_WAIT;	xfer = wdc->sc_xfer.tqh_first;	if (xfer->c_flags & C_ATAPI) {		(void) wdc_atapi_intr(wdc, xfer);		return 0;	} else {		return wdc_ata_intr(wdc, xfer);	}}