Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Aug 1995 03:34:29 -0400 (EDT)
From:      Ken Wong <kwong@fathergoose.net6c.io.org>
To:        luigi@labinfo.iet.unipi.it (Luigi Rizzo)
Cc:        freebsd-hackers@FreeBSD.org
Subject:   Re: How to abort a DMA transfer ?
Message-ID:  <199508250734.DAA01286@fathergoose.net6c.io.org>
In-Reply-To: <199508201701.TAA12803@labinfo.iet.unipi.it> from "Luigi Rizzo" at Aug 20, 95 07:01:00 pm

next in thread | previous in thread | raw e-mail | index | archive | help
Luigi Rizzo Wrote:
> 
> How (within a device driver) do I abort a DMA transfer which has
> been started but has not completed yet ? I am having this problem
> in the driver for a hand-scanner (the scanner does some read ahead;
> meanwhile, a user might close the device and we want to abort the
> transfer and free the buffer). I am surprised I haven't seen (or
> understood!) anything like this in existing drivers, not even in
> the floppy driver!

To abort the DMA transfer:

1) reset the device that is using the DMA. being that scanner controller.

2) change some DMA registers for that channel. ( I don't have my book 
   here today, but I can find out if needed).

Ken



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199508250734.DAA01286>