From 4e3562decbae6b85c02a780004c559dfc46b8077 Mon Sep 17 00:00:00 2001 From: sos Date: Mon, 3 Jan 2000 20:01:18 +0000 Subject: Fix link problem on ISA only systems.. --- sys/dev/ata/ata-all.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'sys') diff --git a/sys/dev/ata/ata-all.c b/sys/dev/ata/ata-all.c index ec08f12..253effa 100644 --- a/sys/dev/ata/ata-all.c +++ b/sys/dev/ata/ata-all.c @@ -344,10 +344,6 @@ ata_pciattach(device_t dev) outb(bmaddr_1 + 0x1f, inb(bmaddr_1 + 0x1f) | 0x01); break; - case 0x00041103: /* HPT366 controller defaults */ - printf("ata: HPT config %08x\n", pci_read_config(dev, 0x50, 4)); - break; - case 0x05711106: case 0x74091022: /* VIA 82C586, 82C596, 82C686 & AMD 756 default setup */ /* set prefetch, postwrite */ @@ -593,6 +589,7 @@ ataintr(void *data) { struct ata_softc *scp = (struct ata_softc *)data; +#if NPCI > 0 /* check if this interrupt is for us (shared PCI interrupts) */ switch (scp->chiptype) { case 0x00041103: /* HighPoint HPT366 controller */ @@ -614,6 +611,7 @@ ataintr(void *data) !(ata_dmastatus(scp) & ATA_BMSTAT_INTERRUPT)) return; } +#endif if (((scp->status = inb(scp->ioaddr + ATA_STATUS))&ATA_S_BUSY)==ATA_S_BUSY) return; -- cgit v1.1