summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>2000-01-03 20:01:18 +0000
committersos <sos@FreeBSD.org>2000-01-03 20:01:18 +0000
commit4e3562decbae6b85c02a780004c559dfc46b8077 (patch)
tree5c551860ecb6358b565ad4ae3590c03853546fb5 /sys
parentce046933ded06f3f4be7ed341d2c300e08399b6c (diff)
downloadFreeBSD-src-4e3562decbae6b85c02a780004c559dfc46b8077.zip
FreeBSD-src-4e3562decbae6b85c02a780004c559dfc46b8077.tar.gz
Fix link problem on ISA only systems..
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ata/ata-all.c6
1 files changed, 2 insertions, 4 deletions
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;
OpenPOWER on IntegriCloud