diff options
author | Søren Schmidt <sos@FreeBSD.org> | 2002-04-05 13:13:56 +0000 |
---|---|---|
committer | Søren Schmidt <sos@FreeBSD.org> | 2002-04-05 13:13:56 +0000 |
commit | 7800211b084c7042e83bb4920c4316534a7cd00a (patch) | |
tree | af8c692a5d9e26fb4d42b3a66b85e3fa5b44ca14 /sys/dev/ata/ata-isa.c | |
parent | e8a0928f7e5ba218dcdb5762e7927cefb581f91f (diff) | |
download | src-7800211b084c7042e83bb4920c4316534a7cd00a.tar.gz src-7800211b084c7042e83bb4920c4316534a7cd00a.zip |
Make the ATA driver compile & work on the sparc64 platform.
Initial work & code by tmm.
Lots of changes and rearrangements by yours truely to make busdma
be a little less a PITA (but I still dont like it).
Notes
Notes:
svn path=/head/; revision=93882
Diffstat (limited to 'sys/dev/ata/ata-isa.c')
-rw-r--r-- | sys/dev/ata/ata-isa.c | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/sys/dev/ata/ata-isa.c b/sys/dev/ata/ata-isa.c index cb04242d4a83..244f3ad0885e 100644 --- a/sys/dev/ata/ata-isa.c +++ b/sys/dev/ata/ata-isa.c @@ -107,33 +107,40 @@ DRIVER_MODULE(ata, isa, ata_isa_driver, ata_devclass, 0, 0); */ #include "pci.h" #if NPCI == 0 -void * -ata_dmaalloc(struct ata_channel *ch, int device) +int +ata_dmaalloc(struct ata_device *atadev) +{ + return ENXIO; +} + +void +ata_dmafree(struct ata_device *atadev) +{ +} + +void +ata_dmafreetags(struct ata_channel *ch) { - return 0; } void -ata_dmainit(struct ata_channel *ch, int device, - int piomode, int wdmamode, int udmamode) +ata_dmainit(struct ata_device *atadev, int piomode, int wdmamode, int udmamode) { } int -ata_dmasetup(struct ata_channel *ch, int device, struct ata_dmaentry *dmatab, - caddr_t data, int32_t count) +ata_dmasetup(struct ata_device *atadev, caddr_t data, int32_t count) { return -1; } void -ata_dmastart(struct ata_channel *ch, int device, - struct ata_dmaentry *dmatab, int dir) +ata_dmastart(struct ata_device *atadev, int dir) { } int -ata_dmadone(struct ata_channel *ch) +ata_dmadone(struct ata_device *atadev) { return -1; } |