summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>2001-03-24 16:19:07 +0000
committersos <sos@FreeBSD.org>2001-03-24 16:19:07 +0000
commit7f6652e832835d9ace35c9d24845670069dafad7 (patch)
tree378c34793a94937baf08220e5c8e862f70ac61ac /sys
parent05c87e82c2c159fbb7622836c23ed676906e52b4 (diff)
downloadFreeBSD-src-7f6652e832835d9ace35c9d24845670069dafad7.zip
FreeBSD-src-7f6652e832835d9ace35c9d24845670069dafad7.tar.gz
Add bandaid to get ISA only systems to link.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ata/ata-isa.c44
1 files changed, 44 insertions, 0 deletions
diff --git a/sys/dev/ata/ata-isa.c b/sys/dev/ata/ata-isa.c
index e6328eb..85b32cd 100644
--- a/sys/dev/ata/ata-isa.c
+++ b/sys/dev/ata/ata-isa.c
@@ -100,3 +100,47 @@ static driver_t ata_isa_driver = {
};
DRIVER_MODULE(ata, isa, ata_isa_driver, ata_devclass, 0, 0);
+
+/*
+ * the following is a bandaid to get ISA only setups to link,
+ * since these are getting rare the ugliness is kept here
+ */
+#include "pci.h"
+#if NPCI == 0
+void *
+ata_dmaalloc(struct ata_softc *scp, int device)
+{
+ return 0;
+}
+
+void
+ata_dmainit(struct ata_softc *scp, int device,
+ int piomode, int wdmamode, int udmamode)
+{
+}
+
+int
+ata_dmasetup(struct ata_softc *scp, int device, struct ata_dmaentry *dmatab,
+ caddr_t data, int32_t count)
+{
+ return -1;
+}
+
+void
+ata_dmastart(struct ata_softc *scp, int device,
+ struct ata_dmaentry *dmatab, int dir)
+{
+}
+
+int
+ata_dmadone(struct ata_softc *scp)
+{
+ return -1;
+}
+
+int
+ata_dmastatus(struct ata_softc *scp)
+{
+ return -1;
+}
+#endif
OpenPOWER on IntegriCloud