diff options
author | smpatel <smpatel@FreeBSD.org> | 1996-04-08 19:38:57 +0000 |
---|---|---|
committer | smpatel <smpatel@FreeBSD.org> | 1996-04-08 19:38:57 +0000 |
commit | 6b740ac6e985dfbea2d7e3601a151a088b4bb8c0 (patch) | |
tree | 499381a92e8819c97c1db7e5da800b3dd9de3c41 /sys/i386/isa/isa_device.h | |
parent | 6a74f9b51b424e03de99e7ba9efd2931db6c76e3 (diff) | |
download | FreeBSD-src-6b740ac6e985dfbea2d7e3601a151a088b4bb8c0.zip FreeBSD-src-6b740ac6e985dfbea2d7e3601a151a088b4bb8c0.tar.gz |
Add a lock for DMA Channels to prevent two devices from using the same DMA
channel at the same time. The functions isa_dma_acquire() and
isa_dma_release() should be used in all ISA drivers which call isa_dmastart().
This can be used more generally to register the usage of DMA channels in
any driver, but it is required for drivers using isa_dmastart() and friends.
Clean up sanity checks, error messages, etc.
Remove isa_dmadone_nobounce(), it is no longer needed
Reviewed by: bde
Diffstat (limited to 'sys/i386/isa/isa_device.h')
-rw-r--r-- | sys/i386/isa/isa_device.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/i386/isa/isa_device.h b/sys/i386/isa/isa_device.h index 123d86f..3347934 100644 --- a/sys/i386/isa/isa_device.h +++ b/sys/i386/isa/isa_device.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * from: @(#)isa_device.h 7.1 (Berkeley) 5/9/91 - * $Id: isa_device.h,v 1.27 1996/01/27 01:57:02 bde Exp $ + * $Id: isa_device.h,v 1.28 1996/01/30 22:56:02 mpp Exp $ */ #ifndef _I386_ISA_ISA_DEVICE_H_ @@ -154,12 +154,12 @@ struct isa_device * int haveseen_isadev __P((struct isa_device *dvp, u_int checkbits)); void isa_configure __P((void)); void isa_defaultirq __P((void)); -void isa_dmacascade __P((unsigned chan)); +void isa_dmacascade __P((int chan)); void isa_dmadone __P((int flags, caddr_t addr, int nbytes, int chan)); -void isa_dmadone_nobounce __P((unsigned chan)); -void isa_dmainit __P((unsigned chan, unsigned bouncebufsize)); -void isa_dmastart __P((int flags, caddr_t addr, unsigned nbytes, - unsigned chan)); +void isa_dmainit __P((int chan, u_int bouncebufsize)); +void isa_dmastart __P((int flags, caddr_t addr, u_int nbytes, int chan)); +int isa_dma_acquire __P((int chan)); +void isa_dma_release __P((int chan)); int isa_externalize __P((struct isa_device *id, struct sysctl_req *req)); int isa_generic_externalize __P((struct kern_devconf *kdc, struct sysctl_req *req)); |