dma_stop(D3) dma_stop(D3)
NAME
dma_stop - stop software-initiated DMA operation on a channel
and release it
SYNOPSIS
#include <sys/dma.h>
#include <sys/ddi.h>
void dma_stop(int chan);
Arguments
chan Channel on which DMA operation is to be stopped.
DESCRIPTION
dma_stop stops a software-initiated DMA operation in progress
on the channel chan. The channel is then released and made
available for other use.
Return Values
None.
USAGE
The caller must ensure that it is acting on behalf of the
channel owner, and that it makes sense to release the channel.
The caller must ensure that the channel is currently in use
for software-initiated DMA transfers rather than hardware-
initiated transfers.
Level
Initialization, Base or Interrupt.
Synchronization Constraints
Does not sleep.
Driver-defined basic locks, read/write locks, and sleep locks
may be held across calls to this function.
REFERENCES
dma_swsetup(D3), dma_swstart(D3), dma_cb(D4)
NOTICES
Portability
AT-compatible architectures
Copyright 1994 Novell, Inc. Page 1
dma_stop(D3) dma_stop(D3)
Applicability
ddi: 1, 2, 3, 4, 5, 5mp, 6, 6mp, 7, 7mp
Future Directions
This interface is expected to be replaced or modified in a
future release.
Copyright 1994 Novell, Inc. Page 2