AIInitDMA

C Specification

#include <revolution.h>
void AIInitDMA(u32 start_addr, u32 length);

Arguments

start_addr Start address of DMA transaction. Must be 32-byte aligned.
length Length of DMA transaction. Must be 32-byte aligned.

Return Values

None.

Description

The AIInitDMA function programs the DMA start address and length for the AI DMA controller.

AI DMA transactions do not start immediately even if the AIInitDMA function is called. Furthermore, the AI DMA transactions that are currently processing are not affected. The AIInitDMA function programs the next AI DMA parameters for the AI DMA controller.

If AI DMA is stopped, call the AIInitDMA function and then call the AIStartDMA function to start AI DMA transaction. If AI DMA is operating, the new parameters can be used to start an AI DMA transaction by calling the AIInitDMA function as soon as the processing AI DMA transaction completes. At this time, you must call the AIStartDMA function again. Also, if the processing AI DMA transaction completes before a call to the AIInitDMAfunction completes, the AI DMA transaction starts again using the old parameters.

The AIStopDMA function must be called explicitly to stop AI DMA.

See Also

AIStartDMA, AIStopDMA

Revision History

03/01/2006 Initial version.