diff options
author | sos <sos@FreeBSD.org> | 2000-01-28 15:57:13 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 2000-01-28 15:57:13 +0000 |
commit | f12f1350a54b78ea409892b5175a4eabd7332dd1 (patch) | |
tree | 6d2c160f12b2eabc5fdaa4655fee321fd9c7fb35 | |
parent | 1d708306f5618cd4893014b2cc9ff3e15875d962 (diff) | |
download | FreeBSD-src-f12f1350a54b78ea409892b5175a4eabd7332dd1.zip FreeBSD-src-f12f1350a54b78ea409892b5175a4eabd7332dd1.tar.gz |
Fix compilation on ISA only setups...
-rw-r--r-- | sys/dev/ata/ata-dma.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/ata/ata-dma.c b/sys/dev/ata/ata-dma.c index 06def84..f91ce77 100644 --- a/sys/dev/ata/ata-dma.c +++ b/sys/dev/ata/ata-dma.c @@ -48,6 +48,8 @@ #include <dev/ata/ata-all.h> #include <dev/ata/ata-disk.h> +#if NPCI > 0 + /* prototypes */ static void promise_timing(struct ata_softc *, int32_t, int32_t); static void hpt366_timing(struct ata_softc *, int32_t, int32_t); @@ -58,8 +60,6 @@ static void hpt366_timing(struct ata_softc *, int32_t, int32_t); #define vtophys(va) alpha_XXX_dmamap((vm_offset_t)va) #endif -#if NPCI > 0 - void ata_dmainit(struct ata_softc *scp, int32_t device, int32_t apiomode, int32_t wdmamode, int32_t udmamode) @@ -652,11 +652,10 @@ hpt366_timing(struct ata_softc *scp, int32_t devno, int32_t mode) #else /* NPCI > 0 */ -int32_t +void ata_dmainit(struct ata_softc *scp, int32_t device, int32_t piomode, int32_t wdmamode, int32_t udmamode) { - return -1; } int32_t |