diff options
author | sos <sos@FreeBSD.org> | 2001-03-24 16:19:07 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 2001-03-24 16:19:07 +0000 |
commit | 7f6652e832835d9ace35c9d24845670069dafad7 (patch) | |
tree | 378c34793a94937baf08220e5c8e862f70ac61ac | |
parent | 05c87e82c2c159fbb7622836c23ed676906e52b4 (diff) | |
download | FreeBSD-src-7f6652e832835d9ace35c9d24845670069dafad7.zip FreeBSD-src-7f6652e832835d9ace35c9d24845670069dafad7.tar.gz |
Add bandaid to get ISA only systems to link.
-rw-r--r-- | sys/dev/ata/ata-isa.c | 44 |
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 |