SA1100_GET_DMA_POS

Section: ()
Updated: 06 October 2005
Index Return to Main Contents

 

NAME

sa1100_get_dma_pos - return current DMA position  

SYNOPSIS

"SYNOPSIS"

dma_addr_t sa1100_get_dma_pos (dma_regs_t * regs);  

ARGUMENTS

regs
identifier for the channel to use
 

DESCRIPTION

This function returns the current physical (or bus) address for the given DMA channel. If the channel is running i.e. not in a stopped state then the caller must disable interrupts prior calling this function and process the returned value before re-enabling them to prevent races with the completion interrupt handler and the callback function. The validation of the returned value is the caller's responsibility as well -- the hardware seems to return out of range values when the DMA engine completes a buffer.

The regs identifier is provided by a successful call to sa1100_request_dma.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 04:41:03 GMT, October 06, 2005