diff options
author | sos <sos@FreeBSD.org> | 2001-03-06 21:43:46 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 2001-03-06 21:43:46 +0000 |
commit | 295e425b3c3ece98776a79e38e5810c4845271ac (patch) | |
tree | 73c3618a655ec24760e9692c2a6af6494431766b /sys/dev/ata/ata-dma.c | |
parent | 1b15df8a700087b7f0d018762c98c53ac6f30746 (diff) | |
download | FreeBSD-src-295e425b3c3ece98776a79e38e5810c4845271ac.zip FreeBSD-src-295e425b3c3ece98776a79e38e5810c4845271ac.tar.gz |
Split out the ata probes in seperate files for each bus type.
Diffstat (limited to 'sys/dev/ata/ata-dma.c')
-rw-r--r-- | sys/dev/ata/ata-dma.c | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/sys/dev/ata/ata-dma.c b/sys/dev/ata/ata-dma.c index 86ed3e6..4832248 100644 --- a/sys/dev/ata/ata-dma.c +++ b/sys/dev/ata/ata-dma.c @@ -38,15 +38,11 @@ #include <sys/devicestat.h> #include <vm/vm.h> #include <vm/pmap.h> -#if NPCI > 0 #include <pci/pcivar.h> -#endif #include <machine/bus.h> #include <sys/rman.h> #include <dev/ata/ata-all.h> -#if NPCI > 0 - /* prototypes */ static void cyrix_timing(struct ata_softc *, int, int); static void promise_timing(struct ata_softc *, int, int); @@ -1079,44 +1075,3 @@ hpt_timing(struct ata_softc *scp, int devno, int mode) pci_write_config(parent, 0x40 + (devno << 2), (timing & ~0x80000000),4); } } - -#else /* 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 /* NPCI > 0 */ |