if (PDC_IS_268(sc)) { if ((pdc268_config_read(wdc_cp, 0x0b) & PDC268_INTR) == 0) continue; }
pdc20265_pci_intr(arg)	void *arg;{	struct pciide_softc *sc = arg;	struct pciide_channel *cp;	struct channel_softc *wdc_cp;	int i, rv, crv; 	u_int32_t dmastat;	rv = 0;	for (i = 0; i < sc->sc_wdcdev.nchannels; i++) {		cp = &sc->pciide_channels[i];		wdc_cp = &cp->wdc_channel;		/* If a compat channel skip. */		if (cp->compat)			continue;		/*		 * The Ultra/100 seems to assert PDC2xx_SCR_INT * spuriously,		 * however it asserts INT in IDEDMA_CTL even for non-DMA ops.		 * So use it instead (requires 2 reg reads instead of 1,		 * but we can't do it another way).		 */		dmastat = bus_space_read_1(sc->sc_dma_iot,		    sc->sc_dma_ioh, IDEDMA_CTL(i));		if ((dmastat & IDEDMA_CTL_INTR) == 0)			continue;		crv = wdcintr(wdc_cp);		if (crv == 0)			printf("%s:%d: bogus intr\n",			    sc->sc_wdcdev.sc_dev.dv_xname, i);		else			rv = 1;	}	return rv;}