Go to the documentation of this file.
15 #ifndef __DAVINCI_CPDMA_H__
16 #define __DAVINCI_CPDMA_H__
18 #define CPDMA_MAX_CHANNELS BITS_PER_LONG
20 #define tx_chan_num(chan) (chan)
21 #define rx_chan_num(chan) ((chan) + CPDMA_MAX_CHANNELS)
22 #define is_rx_chan(chan) ((chan)->chan_num >= CPDMA_MAX_CHANNELS)
23 #define is_tx_chan(chan) (!is_rx_chan(chan))
24 #define __chan_linear(chan_num) ((chan_num) & (CPDMA_MAX_CHANNELS - 1))
25 #define chan_linear(chan) __chan_linear((chan)->chan_num)