From owner-cvs-sys Mon Apr 8 12:39:14 1996 Return-Path: owner-cvs-sys Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id MAA21226 for cvs-sys-outgoing; Mon, 8 Apr 1996 12:39:14 -0700 (PDT) Received: (from smpatel@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id MAA21202 Mon, 8 Apr 1996 12:38:59 -0700 (PDT) Date: Mon, 8 Apr 1996 12:38:59 -0700 (PDT) From: Sujal Patel Message-Id: <199604081938.MAA21202@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-sys Subject: cvs commit: src/sys/i386/isa isa.c isa_device.h Sender: owner-cvs-sys@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk smpatel 96/04/08 12:38:58 Modified: sys/i386/isa isa.c isa_device.h Log: 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 Revision Changes Path 1.67 +112 -44 src/sys/i386/isa/isa.c 1.29 +6 -6 src/sys/i386/isa/isa_device.h