Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
tegra30_ahub.h File Reference

Go to the source code of this file.

Data Structures

struct  tegra30_ahub
 

Macros

#define TEGRA30_AUDIOCIF_CTRL_FIFO_THRESHOLD_SHIFT   28
 
#define TEGRA30_AUDIOCIF_CTRL_FIFO_THRESHOLD_MASK_US   0xf
 
#define TEGRA30_AUDIOCIF_CTRL_FIFO_THRESHOLD_MASK   (TEGRA30_AUDIOCIF_CTRL_FIFO_THRESHOLD_MASK_US << TEGRA30_AUDIOCIF_CTRL_FIFO_THRESHOLD_SHIFT)
 
#define TEGRA30_AUDIOCIF_CTRL_AUDIO_CHANNELS_SHIFT   24
 
#define TEGRA30_AUDIOCIF_CTRL_AUDIO_CHANNELS_MASK_US   7
 
#define TEGRA30_AUDIOCIF_CTRL_AUDIO_CHANNELS_MASK   (TEGRA30_AUDIOCIF_CTRL_AUDIO_CHANNELS_MASK_US << TEGRA30_AUDIOCIF_CTRL_AUDIO_CHANNELS_SHIFT)
 
#define TEGRA30_AUDIOCIF_CTRL_CLIENT_CHANNELS_SHIFT   16
 
#define TEGRA30_AUDIOCIF_CTRL_CLIENT_CHANNELS_MASK_US   7
 
#define TEGRA30_AUDIOCIF_CTRL_CLIENT_CHANNELS_MASK   (TEGRA30_AUDIOCIF_CTRL_CLIENT_CHANNELS_MASK_US << TEGRA30_AUDIOCIF_CTRL_CLIENT_CHANNELS_SHIFT)
 
#define TEGRA30_AUDIOCIF_BITS_4   0
 
#define TEGRA30_AUDIOCIF_BITS_8   1
 
#define TEGRA30_AUDIOCIF_BITS_12   2
 
#define TEGRA30_AUDIOCIF_BITS_16   3
 
#define TEGRA30_AUDIOCIF_BITS_20   4
 
#define TEGRA30_AUDIOCIF_BITS_24   5
 
#define TEGRA30_AUDIOCIF_BITS_28   6
 
#define TEGRA30_AUDIOCIF_BITS_32   7
 
#define TEGRA30_AUDIOCIF_CTRL_AUDIO_BITS_SHIFT   12
 
#define TEGRA30_AUDIOCIF_CTRL_AUDIO_BITS_MASK   (7 << TEGRA30_AUDIOCIF_CTRL_AUDIO_BITS_SHIFT)
 
#define TEGRA30_AUDIOCIF_CTRL_AUDIO_BITS_4   (TEGRA30_AUDIOCIF_BITS_4 << TEGRA30_AUDIOCIF_CTRL_AUDIO_BITS_SHIFT)
 
#define TEGRA30_AUDIOCIF_CTRL_AUDIO_BITS_8   (TEGRA30_AUDIOCIF_BITS_8 << TEGRA30_AUDIOCIF_CTRL_AUDIO_BITS_SHIFT)
 
#define TEGRA30_AUDIOCIF_CTRL_AUDIO_BITS_12   (TEGRA30_AUDIOCIF_BITS_12 << TEGRA30_AUDIOCIF_CTRL_AUDIO_BITS_SHIFT)
 
#define TEGRA30_AUDIOCIF_CTRL_AUDIO_BITS_16   (TEGRA30_AUDIOCIF_BITS_16 << TEGRA30_AUDIOCIF_CTRL_AUDIO_BITS_SHIFT)
 
#define TEGRA30_AUDIOCIF_CTRL_AUDIO_BITS_20   (TEGRA30_AUDIOCIF_BITS_20 << TEGRA30_AUDIOCIF_CTRL_AUDIO_BITS_SHIFT)
 
#define TEGRA30_AUDIOCIF_CTRL_AUDIO_BITS_24   (TEGRA30_AUDIOCIF_BITS_24 << TEGRA30_AUDIOCIF_CTRL_AUDIO_BITS_SHIFT)
 
#define TEGRA30_AUDIOCIF_CTRL_AUDIO_BITS_28   (TEGRA30_AUDIOCIF_BITS_28 << TEGRA30_AUDIOCIF_CTRL_AUDIO_BITS_SHIFT)
 
#define TEGRA30_AUDIOCIF_CTRL_AUDIO_BITS_32   (TEGRA30_AUDIOCIF_BITS_32 << TEGRA30_AUDIOCIF_CTRL_AUDIO_BITS_SHIFT)
 
#define TEGRA30_AUDIOCIF_CTRL_CLIENT_BITS_SHIFT   8
 
#define TEGRA30_AUDIOCIF_CTRL_CLIENT_BITS_MASK   (7 << TEGRA30_AUDIOCIF_CTRL_CLIENT_BITS_SHIFT)
 
#define TEGRA30_AUDIOCIF_CTRL_CLIENT_BITS_4   (TEGRA30_AUDIOCIF_BITS_4 << TEGRA30_AUDIOCIF_CTRL_CLIENT_BITS_SHIFT)
 
#define TEGRA30_AUDIOCIF_CTRL_CLIENT_BITS_8   (TEGRA30_AUDIOCIF_BITS_8 << TEGRA30_AUDIOCIF_CTRL_CLIENT_BITS_SHIFT)
 
#define TEGRA30_AUDIOCIF_CTRL_CLIENT_BITS_12   (TEGRA30_AUDIOCIF_BITS_12 << TEGRA30_AUDIOCIF_CTRL_CLIENT_BITS_SHIFT)
 
#define TEGRA30_AUDIOCIF_CTRL_CLIENT_BITS_16   (TEGRA30_AUDIOCIF_BITS_16 << TEGRA30_AUDIOCIF_CTRL_CLIENT_BITS_SHIFT)
 
#define TEGRA30_AUDIOCIF_CTRL_CLIENT_BITS_20   (TEGRA30_AUDIOCIF_BITS_20 << TEGRA30_AUDIOCIF_CTRL_CLIENT_BITS_SHIFT)
 
#define TEGRA30_AUDIOCIF_CTRL_CLIENT_BITS_24   (TEGRA30_AUDIOCIF_BITS_24 << TEGRA30_AUDIOCIF_CTRL_CLIENT_BITS_SHIFT)
 
#define TEGRA30_AUDIOCIF_CTRL_CLIENT_BITS_28   (TEGRA30_AUDIOCIF_BITS_28 << TEGRA30_AUDIOCIF_CTRL_CLIENT_BITS_SHIFT)
 
#define TEGRA30_AUDIOCIF_CTRL_CLIENT_BITS_32   (TEGRA30_AUDIOCIF_BITS_32 << TEGRA30_AUDIOCIF_CTRL_CLIENT_BITS_SHIFT)
 
#define TEGRA30_AUDIOCIF_EXPAND_ZERO   0
 
#define TEGRA30_AUDIOCIF_EXPAND_ONE   1
 
#define TEGRA30_AUDIOCIF_EXPAND_LFSR   2
 
#define TEGRA30_AUDIOCIF_CTRL_EXPAND_SHIFT   6
 
#define TEGRA30_AUDIOCIF_CTRL_EXPAND_MASK   (3 << TEGRA30_AUDIOCIF_CTRL_EXPAND_SHIFT)
 
#define TEGRA30_AUDIOCIF_CTRL_EXPAND_ZERO   (TEGRA30_AUDIOCIF_EXPAND_ZERO << TEGRA30_AUDIOCIF_CTRL_EXPAND_SHIFT)
 
#define TEGRA30_AUDIOCIF_CTRL_EXPAND_ONE   (TEGRA30_AUDIOCIF_EXPAND_ONE << TEGRA30_AUDIOCIF_CTRL_EXPAND_SHIFT)
 
#define TEGRA30_AUDIOCIF_CTRL_EXPAND_LFSR   (TEGRA30_AUDIOCIF_EXPAND_LFSR << TEGRA30_AUDIOCIF_CTRL_EXPAND_SHIFT)
 
#define TEGRA30_AUDIOCIF_STEREO_CONV_CH0   0
 
#define TEGRA30_AUDIOCIF_STEREO_CONV_CH1   1
 
#define TEGRA30_AUDIOCIF_STEREO_CONV_AVG   2
 
#define TEGRA30_AUDIOCIF_CTRL_STEREO_CONV_SHIFT   4
 
#define TEGRA30_AUDIOCIF_CTRL_STEREO_CONV_MASK   (3 << TEGRA30_AUDIOCIF_CTRL_STEREO_CONV_SHIFT)
 
#define TEGRA30_AUDIOCIF_CTRL_STEREO_CONV_CH0   (TEGRA30_AUDIOCIF_STEREO_CONV_CH0 << TEGRA30_AUDIOCIF_CTRL_STEREO_CONV_SHIFT)
 
#define TEGRA30_AUDIOCIF_CTRL_STEREO_CONV_CH1   (TEGRA30_AUDIOCIF_STEREO_CONV_CH1 << TEGRA30_AUDIOCIF_CTRL_STEREO_CONV_SHIFT)
 
#define TEGRA30_AUDIOCIF_CTRL_STEREO_CONV_AVG   (TEGRA30_AUDIOCIF_STEREO_CONV_AVG << TEGRA30_AUDIOCIF_CTRL_STEREO_CONV_SHIFT)
 
#define TEGRA30_AUDIOCIF_CTRL_REPLICATE   3
 
#define TEGRA30_AUDIOCIF_DIRECTION_TX   0
 
#define TEGRA30_AUDIOCIF_DIRECTION_RX   1
 
#define TEGRA30_AUDIOCIF_CTRL_DIRECTION_SHIFT   2
 
#define TEGRA30_AUDIOCIF_CTRL_DIRECTION_MASK   (1 << TEGRA30_AUDIOCIF_CTRL_DIRECTION_SHIFT)
 
#define TEGRA30_AUDIOCIF_CTRL_DIRECTION_TX   (TEGRA30_AUDIOCIF_DIRECTION_TX << TEGRA30_AUDIOCIF_CTRL_DIRECTION_SHIFT)
 
#define TEGRA30_AUDIOCIF_CTRL_DIRECTION_RX   (TEGRA30_AUDIOCIF_DIRECTION_RX << TEGRA30_AUDIOCIF_CTRL_DIRECTION_SHIFT)
 
#define TEGRA30_AUDIOCIF_TRUNCATE_ROUND   0
 
#define TEGRA30_AUDIOCIF_TRUNCATE_CHOP   1
 
#define TEGRA30_AUDIOCIF_CTRL_TRUNCATE_SHIFT   1
 
#define TEGRA30_AUDIOCIF_CTRL_TRUNCATE_MASK   (1 << TEGRA30_AUDIOCIF_CTRL_TRUNCATE_SHIFT)
 
#define TEGRA30_AUDIOCIF_CTRL_TRUNCATE_ROUND   (TEGRA30_AUDIOCIF_TRUNCATE_ROUND << TEGRA30_AUDIOCIF_CTRL_TRUNCATE_SHIFT)
 
#define TEGRA30_AUDIOCIF_CTRL_TRUNCATE_CHOP   (TEGRA30_AUDIOCIF_TRUNCATE_CHOP << TEGRA30_AUDIOCIF_CTRL_TRUNCATE_SHIFT)
 
#define TEGRA30_AUDIOCIF_MONO_CONV_ZERO   0
 
#define TEGRA30_AUDIOCIF_MONO_CONV_COPY   1
 
#define TEGRA30_AUDIOCIF_CTRL_MONO_CONV_SHIFT   0
 
#define TEGRA30_AUDIOCIF_CTRL_MONO_CONV_MASK   (1 << TEGRA30_AUDIOCIF_CTRL_MONO_CONV_SHIFT)
 
#define TEGRA30_AUDIOCIF_CTRL_MONO_CONV_ZERO   (TEGRA30_AUDIOCIF_MONO_CONV_ZERO << TEGRA30_AUDIOCIF_CTRL_MONO_CONV_SHIFT)
 
#define TEGRA30_AUDIOCIF_CTRL_MONO_CONV_COPY   (TEGRA30_AUDIOCIF_MONO_CONV_COPY << TEGRA30_AUDIOCIF_CTRL_MONO_CONV_SHIFT)
 
#define TEGRA30_AHUB_CHANNEL_CTRL   0x0
 
#define TEGRA30_AHUB_CHANNEL_CTRL_STRIDE   0x20
 
#define TEGRA30_AHUB_CHANNEL_CTRL_COUNT   4
 
#define TEGRA30_AHUB_CHANNEL_CTRL_TX_EN   (1 << 31)
 
#define TEGRA30_AHUB_CHANNEL_CTRL_RX_EN   (1 << 30)
 
#define TEGRA30_AHUB_CHANNEL_CTRL_LOOPBACK   (1 << 29)
 
#define TEGRA30_AHUB_CHANNEL_CTRL_TX_THRESHOLD_SHIFT   16
 
#define TEGRA30_AHUB_CHANNEL_CTRL_TX_THRESHOLD_MASK_US   0xff
 
#define TEGRA30_AHUB_CHANNEL_CTRL_TX_THRESHOLD_MASK   (TEGRA30_AHUB_CHANNEL_CTRL_TX_THRESHOLD_MASK_US << TEGRA30_AHUB_CHANNEL_CTRL_TX_THRESHOLD_SHIFT)
 
#define TEGRA30_AHUB_CHANNEL_CTRL_RX_THRESHOLD_SHIFT   8
 
#define TEGRA30_AHUB_CHANNEL_CTRL_RX_THRESHOLD_MASK_US   0xff
 
#define TEGRA30_AHUB_CHANNEL_CTRL_RX_THRESHOLD_MASK   (TEGRA30_AHUB_CHANNEL_CTRL_RX_THRESHOLD_MASK_US << TEGRA30_AHUB_CHANNEL_CTRL_RX_THRESHOLD_SHIFT)
 
#define TEGRA30_AHUB_CHANNEL_CTRL_TX_PACK_EN   (1 << 6)
 
#define TEGRA30_PACK_8_4   2
 
#define TEGRA30_PACK_16   3
 
#define TEGRA30_AHUB_CHANNEL_CTRL_TX_PACK_SHIFT   4
 
#define TEGRA30_AHUB_CHANNEL_CTRL_TX_PACK_MASK_US   3
 
#define TEGRA30_AHUB_CHANNEL_CTRL_TX_PACK_MASK   (TEGRA30_AHUB_CHANNEL_CTRL_TX_PACK_MASK_US << TEGRA30_AHUB_CHANNEL_CTRL_TX_PACK_SHIFT)
 
#define TEGRA30_AHUB_CHANNEL_CTRL_TX_PACK_8_4   (TEGRA30_PACK_8_4 << TEGRA30_AHUB_CHANNEL_CTRL_TX_PACK_SHIFT)
 
#define TEGRA30_AHUB_CHANNEL_CTRL_TX_PACK_16   (TEGRA30_PACK_16 << TEGRA30_AHUB_CHANNEL_CTRL_TX_PACK_SHIFT)
 
#define TEGRA30_AHUB_CHANNEL_CTRL_RX_PACK_EN   (1 << 2)
 
#define TEGRA30_AHUB_CHANNEL_CTRL_RX_PACK_SHIFT   0
 
#define TEGRA30_AHUB_CHANNEL_CTRL_RX_PACK_MASK_US   3
 
#define TEGRA30_AHUB_CHANNEL_CTRL_RX_PACK_MASK   (TEGRA30_AHUB_CHANNEL_CTRL_RX_PACK_MASK_US << TEGRA30_AHUB_CHANNEL_CTRL_RX_PACK_SHIFT)
 
#define TEGRA30_AHUB_CHANNEL_CTRL_RX_PACK_8_4   (TEGRA30_PACK_8_4 << TEGRA30_AHUB_CHANNEL_CTRL_RX_PACK_SHIFT)
 
#define TEGRA30_AHUB_CHANNEL_CTRL_RX_PACK_16   (TEGRA30_PACK_16 << TEGRA30_AHUB_CHANNEL_CTRL_RX_PACK_SHIFT)
 
#define TEGRA30_AHUB_CHANNEL_CLEAR   0x4
 
#define TEGRA30_AHUB_CHANNEL_CLEAR_STRIDE   0x20
 
#define TEGRA30_AHUB_CHANNEL_CLEAR_COUNT   4
 
#define TEGRA30_AHUB_CHANNEL_CLEAR_TX_SOFT_RESET   (1 << 31)
 
#define TEGRA30_AHUB_CHANNEL_CLEAR_RX_SOFT_RESET   (1 << 30)
 
#define TEGRA30_AHUB_CHANNEL_STATUS   0x8
 
#define TEGRA30_AHUB_CHANNEL_STATUS_STRIDE   0x20
 
#define TEGRA30_AHUB_CHANNEL_STATUS_COUNT   4
 
#define TEGRA30_AHUB_CHANNEL_STATUS_TX_FREE_SHIFT   24
 
#define TEGRA30_AHUB_CHANNEL_STATUS_TX_FREE_MASK_US   0xff
 
#define TEGRA30_AHUB_CHANNEL_STATUS_TX_FREE_MASK   (TEGRA30_AHUB_CHANNEL_STATUS_TX_FREE_MASK_US << TEGRA30_AHUB_CHANNEL_STATUS_TX_FREE_SHIFT)
 
#define TEGRA30_AHUB_CHANNEL_STATUS_RX_FREE_SHIFT   16
 
#define TEGRA30_AHUB_CHANNEL_STATUS_RX_FREE_MASK_US   0xff
 
#define TEGRA30_AHUB_CHANNEL_STATUS_RX_FREE_MASK   (TEGRA30_AHUB_CHANNEL_STATUS_RX_FREE_MASK_US << TEGRA30_AHUB_CHANNEL_STATUS_RX_FREE_SHIFT)
 
#define TEGRA30_AHUB_CHANNEL_STATUS_TX_TRIG   (1 << 1)
 
#define TEGRA30_AHUB_CHANNEL_STATUS_RX_TRIG   (1 << 0)
 
#define TEGRA30_AHUB_CHANNEL_TXFIFO   0xc
 
#define TEGRA30_AHUB_CHANNEL_TXFIFO_STRIDE   0x20
 
#define TEGRA30_AHUB_CHANNEL_TXFIFO_COUNT   4
 
#define TEGRA30_AHUB_CHANNEL_RXFIFO   0x10
 
#define TEGRA30_AHUB_CHANNEL_RXFIFO_STRIDE   0x20
 
#define TEGRA30_AHUB_CHANNEL_RXFIFO_COUNT   4
 
#define TEGRA30_AHUB_CIF_TX_CTRL   0x14
 
#define TEGRA30_AHUB_CIF_TX_CTRL_STRIDE   0x20
 
#define TEGRA30_AHUB_CIF_TX_CTRL_COUNT   4
 
#define TEGRA30_AHUB_CIF_RX_CTRL   0x18
 
#define TEGRA30_AHUB_CIF_RX_CTRL_STRIDE   0x20
 
#define TEGRA30_AHUB_CIF_RX_CTRL_COUNT   4
 
#define TEGRA30_AHUB_CONFIG_LINK_CTRL   0x80
 
#define TEGRA30_AHUB_CONFIG_LINK_CTRL_MASTER_FIFO_FULL_CNT_SHIFT   28
 
#define TEGRA30_AHUB_CONFIG_LINK_CTRL_MASTER_FIFO_FULL_CNT_MASK_US   0xf
 
#define TEGRA30_AHUB_CONFIG_LINK_CTRL_MASTER_FIFO_FULL_CNT_MASK   (TEGRA30_AHUB_CONFIG_LINK_CTRL_MASTER_FIFO_FULL_CNT_MASK_US << TEGRA30_AHUB_CONFIG_LINK_CTRL_MASTER_FIFO_FULL_CNT_SHIFT)
 
#define TEGRA30_AHUB_CONFIG_LINK_CTRL_TIMEOUT_CNT_SHIFT   16
 
#define TEGRA30_AHUB_CONFIG_LINK_CTRL_TIMEOUT_CNT_MASK_US   0xfff
 
#define TEGRA30_AHUB_CONFIG_LINK_CTRL_TIMEOUT_CNT_MASK   (TEGRA30_AHUB_CONFIG_LINK_CTRL_TIMEOUT_CNT_MASK_US << TEGRA30_AHUB_CONFIG_LINK_CTRL_TIMEOUT_CNT_SHIFT)
 
#define TEGRA30_AHUB_CONFIG_LINK_CTRL_IDLE_CNT_SHIFT   4
 
#define TEGRA30_AHUB_CONFIG_LINK_CTRL_IDLE_CNT_MASK_US   0xfff
 
#define TEGRA30_AHUB_CONFIG_LINK_CTRL_IDLE_CNT_MASK   (TEGRA30_AHUB_CONFIG_LINK_CTRL_IDLE_CNT_MASK_US << TEGRA30_AHUB_CONFIG_LINK_CTRL_IDLE_CNT_SHIFT)
 
#define TEGRA30_AHUB_CONFIG_LINK_CTRL_CG_EN   (1 << 2)
 
#define TEGRA30_AHUB_CONFIG_LINK_CTRL_CLEAR_TIMEOUT_CNTR   (1 << 1)
 
#define TEGRA30_AHUB_CONFIG_LINK_CTRL_SOFT_RESET   (1 << 0)
 
#define TEGRA30_AHUB_MISC_CTRL   0x84
 
#define TEGRA30_AHUB_MISC_CTRL_AUDIO_ACTIVE   (1 << 31)
 
#define TEGRA30_AHUB_MISC_CTRL_AUDIO_CG_EN   (1 << 8)
 
#define TEGRA30_AHUB_MISC_CTRL_AUDIO_OBS_SEL_SHIFT   0
 
#define TEGRA30_AHUB_MISC_CTRL_AUDIO_OBS_SEL_MASK   (0x1f << TEGRA30_AHUB_MISC_CTRL_AUDIO_OBS_SEL_SHIFT)
 
#define TEGRA30_AHUB_APBDMA_LIVE_STATUS   0x88
 
#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH3_RX_CIF_FIFO_FULL   (1 << 31)
 
#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH3_TX_CIF_FIFO_FULL   (1 << 30)
 
#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH2_RX_CIF_FIFO_FULL   (1 << 29)
 
#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH2_TX_CIF_FIFO_FULL   (1 << 28)
 
#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH1_RX_CIF_FIFO_FULL   (1 << 27)
 
#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH1_TX_CIF_FIFO_FULL   (1 << 26)
 
#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH0_RX_CIF_FIFO_FULL   (1 << 25)
 
#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH0_TX_CIF_FIFO_FULL   (1 << 24)
 
#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH3_RX_CIF_FIFO_EMPTY   (1 << 23)
 
#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH3_TX_CIF_FIFO_EMPTY   (1 << 22)
 
#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH2_RX_CIF_FIFO_EMPTY   (1 << 21)
 
#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH2_TX_CIF_FIFO_EMPTY   (1 << 20)
 
#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH1_RX_CIF_FIFO_EMPTY   (1 << 19)
 
#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH1_TX_CIF_FIFO_EMPTY   (1 << 18)
 
#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH0_RX_CIF_FIFO_EMPTY   (1 << 17)
 
#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH0_TX_CIF_FIFO_EMPTY   (1 << 16)
 
#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH3_RX_DMA_FIFO_FULL   (1 << 15)
 
#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH3_TX_DMA_FIFO_FULL   (1 << 14)
 
#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH2_RX_DMA_FIFO_FULL   (1 << 13)
 
#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH2_TX_DMA_FIFO_FULL   (1 << 12)
 
#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH1_RX_DMA_FIFO_FULL   (1 << 11)
 
#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH1_TX_DMA_FIFO_FULL   (1 << 10)
 
#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH0_RX_DMA_FIFO_FULL   (1 << 9)
 
#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH0_TX_DMA_FIFO_FULL   (1 << 8)
 
#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH3_RX_DMA_FIFO_EMPTY   (1 << 7)
 
#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH3_TX_DMA_FIFO_EMPTY   (1 << 6)
 
#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH2_RX_DMA_FIFO_EMPTY   (1 << 5)
 
#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH2_TX_DMA_FIFO_EMPTY   (1 << 4)
 
#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH1_RX_DMA_FIFO_EMPTY   (1 << 3)
 
#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH1_TX_DMA_FIFO_EMPTY   (1 << 2)
 
#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH0_RX_DMA_FIFO_EMPTY   (1 << 1)
 
#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH0_TX_DMA_FIFO_EMPTY   (1 << 0)
 
#define TEGRA30_AHUB_I2S_LIVE_STATUS   0x8c
 
#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S4_RX_FIFO_FULL   (1 << 29)
 
#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S4_TX_FIFO_FULL   (1 << 28)
 
#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S3_RX_FIFO_FULL   (1 << 27)
 
#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S3_TX_FIFO_FULL   (1 << 26)
 
#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S2_RX_FIFO_FULL   (1 << 25)
 
#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S2_TX_FIFO_FULL   (1 << 24)
 
#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S1_RX_FIFO_FULL   (1 << 23)
 
#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S1_TX_FIFO_FULL   (1 << 22)
 
#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S0_RX_FIFO_FULL   (1 << 21)
 
#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S0_TX_FIFO_FULL   (1 << 20)
 
#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S4_RX_FIFO_ENABLED   (1 << 19)
 
#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S4_TX_FIFO_ENABLED   (1 << 18)
 
#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S3_RX_FIFO_ENABLED   (1 << 17)
 
#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S3_TX_FIFO_ENABLED   (1 << 16)
 
#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S2_RX_FIFO_ENABLED   (1 << 15)
 
#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S2_TX_FIFO_ENABLED   (1 << 14)
 
#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S1_RX_FIFO_ENABLED   (1 << 13)
 
#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S1_TX_FIFO_ENABLED   (1 << 12)
 
#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S0_RX_FIFO_ENABLED   (1 << 11)
 
#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S0_TX_FIFO_ENABLED   (1 << 10)
 
#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S4_RX_FIFO_EMPTY   (1 << 9)
 
#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S4_TX_FIFO_EMPTY   (1 << 8)
 
#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S3_RX_FIFO_EMPTY   (1 << 7)
 
#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S3_TX_FIFO_EMPTY   (1 << 6)
 
#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S2_RX_FIFO_EMPTY   (1 << 5)
 
#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S2_TX_FIFO_EMPTY   (1 << 4)
 
#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S1_RX_FIFO_EMPTY   (1 << 3)
 
#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S1_TX_FIFO_EMPTY   (1 << 2)
 
#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S0_RX_FIFO_EMPTY   (1 << 1)
 
#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S0_TX_FIFO_EMPTY   (1 << 0)
 
#define TEGRA30_AHUB_DAM_LIVE_STATUS   0x90
 
#define TEGRA30_AHUB_DAM_LIVE_STATUS_STRIDE   0x8
 
#define TEGRA30_AHUB_DAM_LIVE_STATUS_COUNT   3
 
#define TEGRA30_AHUB_DAM_LIVE_STATUS_TX_ENABLED   (1 << 26)
 
#define TEGRA30_AHUB_DAM_LIVE_STATUS_RX1_ENABLED   (1 << 25)
 
#define TEGRA30_AHUB_DAM_LIVE_STATUS_RX0_ENABLED   (1 << 24)
 
#define TEGRA30_AHUB_DAM_LIVE_STATUS_TXFIFO_FULL   (1 << 15)
 
#define TEGRA30_AHUB_DAM_LIVE_STATUS_RX1FIFO_FULL   (1 << 9)
 
#define TEGRA30_AHUB_DAM_LIVE_STATUS_RX0FIFO_FULL   (1 << 8)
 
#define TEGRA30_AHUB_DAM_LIVE_STATUS_TXFIFO_EMPTY   (1 << 7)
 
#define TEGRA30_AHUB_DAM_LIVE_STATUS_RX1FIFO_EMPTY   (1 << 1)
 
#define TEGRA30_AHUB_DAM_LIVE_STATUS_RX0FIFO_EMPTY   (1 << 0)
 
#define TEGRA30_AHUB_SPDIF_LIVE_STATUS   0xa8
 
#define TEGRA30_AHUB_SPDIF_LIVE_STATUS_USER_TX_ENABLED   (1 << 11)
 
#define TEGRA30_AHUB_SPDIF_LIVE_STATUS_USER_RX_ENABLED   (1 << 10)
 
#define TEGRA30_AHUB_SPDIF_LIVE_STATUS_DATA_TX_ENABLED   (1 << 9)
 
#define TEGRA30_AHUB_SPDIF_LIVE_STATUS_DATA_RX_ENABLED   (1 << 8)
 
#define TEGRA30_AHUB_SPDIF_LIVE_STATUS_USER_TXFIFO_FULL   (1 << 7)
 
#define TEGRA30_AHUB_SPDIF_LIVE_STATUS_USER_RXFIFO_FULL   (1 << 6)
 
#define TEGRA30_AHUB_SPDIF_LIVE_STATUS_DATA_TXFIFO_FULL   (1 << 5)
 
#define TEGRA30_AHUB_SPDIF_LIVE_STATUS_DATA_RXFIFO_FULL   (1 << 4)
 
#define TEGRA30_AHUB_SPDIF_LIVE_STATUS_USER_TXFIFO_EMPTY   (1 << 3)
 
#define TEGRA30_AHUB_SPDIF_LIVE_STATUS_USER_RXFIFO_EMPTY   (1 << 2)
 
#define TEGRA30_AHUB_SPDIF_LIVE_STATUS_DATA_TXFIFO_EMPTY   (1 << 1)
 
#define TEGRA30_AHUB_SPDIF_LIVE_STATUS_DATA_RXFIFO_EMPTY   (1 << 0)
 
#define TEGRA30_AHUB_I2S_INT_MASK   0xb0
 
#define TEGRA30_AHUB_DAM_INT_MASK   0xb4
 
#define TEGRA30_AHUB_SPDIF_INT_MASK   0xbc
 
#define TEGRA30_AHUB_APBIF_INT_MASK   0xc0
 
#define TEGRA30_AHUB_I2S_INT_STATUS   0xc8
 
#define TEGRA30_AHUB_DAM_INT_STATUS   0xcc
 
#define TEGRA30_AHUB_SPDIF_INT_STATUS   0xd4
 
#define TEGRA30_AHUB_APBIF_INT_STATUS   0xd8
 
#define TEGRA30_AHUB_I2S_INT_SOURCE   0xe0
 
#define TEGRA30_AHUB_DAM_INT_SOURCE   0xe4
 
#define TEGRA30_AHUB_SPDIF_INT_SOURCE   0xec
 
#define TEGRA30_AHUB_APBIF_INT_SOURCE   0xf0
 
#define TEGRA30_AHUB_I2S_INT_SET   0xf8
 
#define TEGRA30_AHUB_DAM_INT_SET   0xfc
 
#define TEGRA30_AHUB_SPDIF_INT_SET   0x100
 
#define TEGRA30_AHUB_APBIF_INT_SET   0x104
 
#define TEGRA30_AHUB_AUDIO_RX   0x0
 
#define TEGRA30_AHUB_AUDIO_RX_STRIDE   0x4
 
#define TEGRA30_AHUB_AUDIO_RX_COUNT   17
 

Enumerations

enum  tegra30_ahub_txcif {
  TEGRA30_AHUB_TXCIF_APBIF_TX0, TEGRA30_AHUB_TXCIF_APBIF_TX1, TEGRA30_AHUB_TXCIF_APBIF_TX2, TEGRA30_AHUB_TXCIF_APBIF_TX3,
  TEGRA30_AHUB_TXCIF_I2S0_TX0, TEGRA30_AHUB_TXCIF_I2S1_TX0, TEGRA30_AHUB_TXCIF_I2S2_TX0, TEGRA30_AHUB_TXCIF_I2S3_TX0,
  TEGRA30_AHUB_TXCIF_I2S4_TX0, TEGRA30_AHUB_TXCIF_DAM0_TX0, TEGRA30_AHUB_TXCIF_DAM1_TX0, TEGRA30_AHUB_TXCIF_DAM2_TX0,
  TEGRA30_AHUB_TXCIF_SPDIF_TX0, TEGRA30_AHUB_TXCIF_SPDIF_TX1
}
 
enum  tegra30_ahub_rxcif {
  TEGRA30_AHUB_RXCIF_APBIF_RX0, TEGRA30_AHUB_RXCIF_APBIF_RX1, TEGRA30_AHUB_RXcIF_APBIF_RX2, TEGRA30_AHUB_RXCIF_APBIF_RX3,
  TEGRA30_AHUB_RXCIF_I2S0_RX0, TEGRA30_AHUB_RXCIF_I2S1_RX0, TEGRA30_AHUB_RXCIF_I2S2_RX0, TEGRA30_AHUB_RXCIF_I2S3_RX0,
  TEGRA30_AHUB_RXCIF_I2S4_RX0, TEGRA30_AHUB_RXCIF_DAM0_RX0, TEGRA30_AHUB_RXCIF_DAM0_RX1, TEGRA30_AHUB_RXCIF_DAM1_RX0,
  TEGRA30_AHUB_RXCIF_DAM2_RX1, TEGRA30_AHUB_RXCIF_DAM3_RX0, TEGRA30_AHUB_RXCIF_DAM3_RX1, TEGRA30_AHUB_RXCIF_SPDIF_RX0,
  TEGRA30_AHUB_RXCIF_SPDIF_RX1
}
 

Functions

int tegra30_ahub_allocate_rx_fifo (enum tegra30_ahub_rxcif *rxcif, unsigned long *fiforeg, unsigned long *reqsel)
 
int tegra30_ahub_enable_rx_fifo (enum tegra30_ahub_rxcif rxcif)
 
int tegra30_ahub_disable_rx_fifo (enum tegra30_ahub_rxcif rxcif)
 
int tegra30_ahub_free_rx_fifo (enum tegra30_ahub_rxcif rxcif)
 
int tegra30_ahub_allocate_tx_fifo (enum tegra30_ahub_txcif *txcif, unsigned long *fiforeg, unsigned long *reqsel)
 
int tegra30_ahub_enable_tx_fifo (enum tegra30_ahub_txcif txcif)
 
int tegra30_ahub_disable_tx_fifo (enum tegra30_ahub_txcif txcif)
 
int tegra30_ahub_free_tx_fifo (enum tegra30_ahub_txcif txcif)
 
int tegra30_ahub_set_rx_cif_source (enum tegra30_ahub_rxcif rxcif, enum tegra30_ahub_txcif txcif)
 
int tegra30_ahub_unset_rx_cif_source (enum tegra30_ahub_rxcif rxcif)
 

Macro Definition Documentation

#define TEGRA30_AHUB_APBDMA_LIVE_STATUS   0x88

Definition at line 227 of file tegra30_ahub.h.

#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH0_RX_CIF_FIFO_EMPTY   (1 << 17)

Definition at line 242 of file tegra30_ahub.h.

#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH0_RX_CIF_FIFO_FULL   (1 << 25)

Definition at line 234 of file tegra30_ahub.h.

#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH0_RX_DMA_FIFO_EMPTY   (1 << 1)

Definition at line 258 of file tegra30_ahub.h.

#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH0_RX_DMA_FIFO_FULL   (1 << 9)

Definition at line 250 of file tegra30_ahub.h.

#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH0_TX_CIF_FIFO_EMPTY   (1 << 16)

Definition at line 243 of file tegra30_ahub.h.

#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH0_TX_CIF_FIFO_FULL   (1 << 24)

Definition at line 235 of file tegra30_ahub.h.

#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH0_TX_DMA_FIFO_EMPTY   (1 << 0)

Definition at line 259 of file tegra30_ahub.h.

#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH0_TX_DMA_FIFO_FULL   (1 << 8)

Definition at line 251 of file tegra30_ahub.h.

#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH1_RX_CIF_FIFO_EMPTY   (1 << 19)

Definition at line 240 of file tegra30_ahub.h.

#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH1_RX_CIF_FIFO_FULL   (1 << 27)

Definition at line 232 of file tegra30_ahub.h.

#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH1_RX_DMA_FIFO_EMPTY   (1 << 3)

Definition at line 256 of file tegra30_ahub.h.

#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH1_RX_DMA_FIFO_FULL   (1 << 11)

Definition at line 248 of file tegra30_ahub.h.

#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH1_TX_CIF_FIFO_EMPTY   (1 << 18)

Definition at line 241 of file tegra30_ahub.h.

#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH1_TX_CIF_FIFO_FULL   (1 << 26)

Definition at line 233 of file tegra30_ahub.h.

#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH1_TX_DMA_FIFO_EMPTY   (1 << 2)

Definition at line 257 of file tegra30_ahub.h.

#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH1_TX_DMA_FIFO_FULL   (1 << 10)

Definition at line 249 of file tegra30_ahub.h.

#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH2_RX_CIF_FIFO_EMPTY   (1 << 21)

Definition at line 238 of file tegra30_ahub.h.

#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH2_RX_CIF_FIFO_FULL   (1 << 29)

Definition at line 230 of file tegra30_ahub.h.

#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH2_RX_DMA_FIFO_EMPTY   (1 << 5)

Definition at line 254 of file tegra30_ahub.h.

#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH2_RX_DMA_FIFO_FULL   (1 << 13)

Definition at line 246 of file tegra30_ahub.h.

#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH2_TX_CIF_FIFO_EMPTY   (1 << 20)

Definition at line 239 of file tegra30_ahub.h.

#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH2_TX_CIF_FIFO_FULL   (1 << 28)

Definition at line 231 of file tegra30_ahub.h.

#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH2_TX_DMA_FIFO_EMPTY   (1 << 4)

Definition at line 255 of file tegra30_ahub.h.

#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH2_TX_DMA_FIFO_FULL   (1 << 12)

Definition at line 247 of file tegra30_ahub.h.

#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH3_RX_CIF_FIFO_EMPTY   (1 << 23)

Definition at line 236 of file tegra30_ahub.h.

#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH3_RX_CIF_FIFO_FULL   (1 << 31)

Definition at line 228 of file tegra30_ahub.h.

#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH3_RX_DMA_FIFO_EMPTY   (1 << 7)

Definition at line 252 of file tegra30_ahub.h.

#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH3_RX_DMA_FIFO_FULL   (1 << 15)

Definition at line 244 of file tegra30_ahub.h.

#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH3_TX_CIF_FIFO_EMPTY   (1 << 22)

Definition at line 237 of file tegra30_ahub.h.

#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH3_TX_CIF_FIFO_FULL   (1 << 30)

Definition at line 229 of file tegra30_ahub.h.

#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH3_TX_DMA_FIFO_EMPTY   (1 << 6)

Definition at line 253 of file tegra30_ahub.h.

#define TEGRA30_AHUB_APBDMA_LIVE_STATUS_CH3_TX_DMA_FIFO_FULL   (1 << 14)

Definition at line 245 of file tegra30_ahub.h.

#define TEGRA30_AHUB_APBIF_INT_MASK   0xc0

Definition at line 340 of file tegra30_ahub.h.

#define TEGRA30_AHUB_APBIF_INT_SET   0x104

Definition at line 388 of file tegra30_ahub.h.

#define TEGRA30_AHUB_APBIF_INT_SOURCE   0xf0

Definition at line 372 of file tegra30_ahub.h.

#define TEGRA30_AHUB_APBIF_INT_STATUS   0xd8

Definition at line 356 of file tegra30_ahub.h.

#define TEGRA30_AHUB_AUDIO_RX   0x0

Definition at line 392 of file tegra30_ahub.h.

#define TEGRA30_AHUB_AUDIO_RX_COUNT   17

Definition at line 394 of file tegra30_ahub.h.

#define TEGRA30_AHUB_AUDIO_RX_STRIDE   0x4

Definition at line 393 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CHANNEL_CLEAR   0x4

Definition at line 155 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CHANNEL_CLEAR_COUNT   4

Definition at line 157 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CHANNEL_CLEAR_RX_SOFT_RESET   (1 << 30)

Definition at line 159 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CHANNEL_CLEAR_STRIDE   0x20

Definition at line 156 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CHANNEL_CLEAR_TX_SOFT_RESET   (1 << 31)

Definition at line 158 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CHANNEL_CTRL   0x0

Definition at line 119 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CHANNEL_CTRL_COUNT   4

Definition at line 121 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CHANNEL_CTRL_LOOPBACK   (1 << 29)

Definition at line 124 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CHANNEL_CTRL_RX_EN   (1 << 30)

Definition at line 123 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CHANNEL_CTRL_RX_PACK_16   (TEGRA30_PACK_16 << TEGRA30_AHUB_CHANNEL_CTRL_RX_PACK_SHIFT)

Definition at line 151 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CHANNEL_CTRL_RX_PACK_8_4   (TEGRA30_PACK_8_4 << TEGRA30_AHUB_CHANNEL_CTRL_RX_PACK_SHIFT)

Definition at line 150 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CHANNEL_CTRL_RX_PACK_EN   (1 << 2)

Definition at line 145 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CHANNEL_CTRL_RX_PACK_MASK   (TEGRA30_AHUB_CHANNEL_CTRL_RX_PACK_MASK_US << TEGRA30_AHUB_CHANNEL_CTRL_RX_PACK_SHIFT)

Definition at line 149 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CHANNEL_CTRL_RX_PACK_MASK_US   3

Definition at line 148 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CHANNEL_CTRL_RX_PACK_SHIFT   0

Definition at line 147 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CHANNEL_CTRL_RX_THRESHOLD_MASK   (TEGRA30_AHUB_CHANNEL_CTRL_RX_THRESHOLD_MASK_US << TEGRA30_AHUB_CHANNEL_CTRL_RX_THRESHOLD_SHIFT)

Definition at line 132 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CHANNEL_CTRL_RX_THRESHOLD_MASK_US   0xff

Definition at line 131 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CHANNEL_CTRL_RX_THRESHOLD_SHIFT   8

Definition at line 130 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CHANNEL_CTRL_STRIDE   0x20

Definition at line 120 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CHANNEL_CTRL_TX_EN   (1 << 31)

Definition at line 122 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CHANNEL_CTRL_TX_PACK_16   (TEGRA30_PACK_16 << TEGRA30_AHUB_CHANNEL_CTRL_TX_PACK_SHIFT)

Definition at line 143 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CHANNEL_CTRL_TX_PACK_8_4   (TEGRA30_PACK_8_4 << TEGRA30_AHUB_CHANNEL_CTRL_TX_PACK_SHIFT)

Definition at line 142 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CHANNEL_CTRL_TX_PACK_EN   (1 << 6)

Definition at line 134 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CHANNEL_CTRL_TX_PACK_MASK   (TEGRA30_AHUB_CHANNEL_CTRL_TX_PACK_MASK_US << TEGRA30_AHUB_CHANNEL_CTRL_TX_PACK_SHIFT)

Definition at line 141 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CHANNEL_CTRL_TX_PACK_MASK_US   3

Definition at line 140 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CHANNEL_CTRL_TX_PACK_SHIFT   4

Definition at line 139 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CHANNEL_CTRL_TX_THRESHOLD_MASK   (TEGRA30_AHUB_CHANNEL_CTRL_TX_THRESHOLD_MASK_US << TEGRA30_AHUB_CHANNEL_CTRL_TX_THRESHOLD_SHIFT)

Definition at line 128 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CHANNEL_CTRL_TX_THRESHOLD_MASK_US   0xff

Definition at line 127 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CHANNEL_CTRL_TX_THRESHOLD_SHIFT   16

Definition at line 126 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CHANNEL_RXFIFO   0x10

Definition at line 183 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CHANNEL_RXFIFO_COUNT   4

Definition at line 185 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CHANNEL_RXFIFO_STRIDE   0x20

Definition at line 184 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CHANNEL_STATUS   0x8

Definition at line 163 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CHANNEL_STATUS_COUNT   4

Definition at line 165 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CHANNEL_STATUS_RX_FREE_MASK   (TEGRA30_AHUB_CHANNEL_STATUS_RX_FREE_MASK_US << TEGRA30_AHUB_CHANNEL_STATUS_RX_FREE_SHIFT)

Definition at line 171 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CHANNEL_STATUS_RX_FREE_MASK_US   0xff

Definition at line 170 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CHANNEL_STATUS_RX_FREE_SHIFT   16

Definition at line 169 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CHANNEL_STATUS_RX_TRIG   (1 << 0)

Definition at line 173 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CHANNEL_STATUS_STRIDE   0x20

Definition at line 164 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CHANNEL_STATUS_TX_FREE_MASK   (TEGRA30_AHUB_CHANNEL_STATUS_TX_FREE_MASK_US << TEGRA30_AHUB_CHANNEL_STATUS_TX_FREE_SHIFT)

Definition at line 168 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CHANNEL_STATUS_TX_FREE_MASK_US   0xff

Definition at line 167 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CHANNEL_STATUS_TX_FREE_SHIFT   24

Definition at line 166 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CHANNEL_STATUS_TX_TRIG   (1 << 1)

Definition at line 172 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CHANNEL_TXFIFO   0xc

Definition at line 177 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CHANNEL_TXFIFO_COUNT   4

Definition at line 179 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CHANNEL_TXFIFO_STRIDE   0x20

Definition at line 178 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CIF_RX_CTRL   0x18

Definition at line 196 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CIF_RX_CTRL_COUNT   4

Definition at line 198 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CIF_RX_CTRL_STRIDE   0x20

Definition at line 197 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CIF_TX_CTRL   0x14

Definition at line 189 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CIF_TX_CTRL_COUNT   4

Definition at line 191 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CIF_TX_CTRL_STRIDE   0x20

Definition at line 190 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CONFIG_LINK_CTRL   0x80

Definition at line 203 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CONFIG_LINK_CTRL_CG_EN   (1 << 2)

Definition at line 213 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CONFIG_LINK_CTRL_CLEAR_TIMEOUT_CNTR   (1 << 1)

Definition at line 214 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CONFIG_LINK_CTRL_IDLE_CNT_MASK   (TEGRA30_AHUB_CONFIG_LINK_CTRL_IDLE_CNT_MASK_US << TEGRA30_AHUB_CONFIG_LINK_CTRL_IDLE_CNT_SHIFT)

Definition at line 212 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CONFIG_LINK_CTRL_IDLE_CNT_MASK_US   0xfff

Definition at line 211 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CONFIG_LINK_CTRL_IDLE_CNT_SHIFT   4

Definition at line 210 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CONFIG_LINK_CTRL_MASTER_FIFO_FULL_CNT_MASK   (TEGRA30_AHUB_CONFIG_LINK_CTRL_MASTER_FIFO_FULL_CNT_MASK_US << TEGRA30_AHUB_CONFIG_LINK_CTRL_MASTER_FIFO_FULL_CNT_SHIFT)

Definition at line 206 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CONFIG_LINK_CTRL_MASTER_FIFO_FULL_CNT_MASK_US   0xf

Definition at line 205 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CONFIG_LINK_CTRL_MASTER_FIFO_FULL_CNT_SHIFT   28

Definition at line 204 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CONFIG_LINK_CTRL_SOFT_RESET   (1 << 0)

Definition at line 215 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CONFIG_LINK_CTRL_TIMEOUT_CNT_MASK   (TEGRA30_AHUB_CONFIG_LINK_CTRL_TIMEOUT_CNT_MASK_US << TEGRA30_AHUB_CONFIG_LINK_CTRL_TIMEOUT_CNT_SHIFT)

Definition at line 209 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CONFIG_LINK_CTRL_TIMEOUT_CNT_MASK_US   0xfff

Definition at line 208 of file tegra30_ahub.h.

#define TEGRA30_AHUB_CONFIG_LINK_CTRL_TIMEOUT_CNT_SHIFT   16

Definition at line 207 of file tegra30_ahub.h.

#define TEGRA30_AHUB_DAM_INT_MASK   0xb4

Definition at line 332 of file tegra30_ahub.h.

#define TEGRA30_AHUB_DAM_INT_SET   0xfc

Definition at line 380 of file tegra30_ahub.h.

#define TEGRA30_AHUB_DAM_INT_SOURCE   0xe4

Definition at line 364 of file tegra30_ahub.h.

#define TEGRA30_AHUB_DAM_INT_STATUS   0xcc

Definition at line 348 of file tegra30_ahub.h.

#define TEGRA30_AHUB_DAM_LIVE_STATUS   0x90

Definition at line 297 of file tegra30_ahub.h.

#define TEGRA30_AHUB_DAM_LIVE_STATUS_COUNT   3

Definition at line 299 of file tegra30_ahub.h.

#define TEGRA30_AHUB_DAM_LIVE_STATUS_RX0_ENABLED   (1 << 24)

Definition at line 302 of file tegra30_ahub.h.

#define TEGRA30_AHUB_DAM_LIVE_STATUS_RX0FIFO_EMPTY   (1 << 0)

Definition at line 308 of file tegra30_ahub.h.

#define TEGRA30_AHUB_DAM_LIVE_STATUS_RX0FIFO_FULL   (1 << 8)

Definition at line 305 of file tegra30_ahub.h.

#define TEGRA30_AHUB_DAM_LIVE_STATUS_RX1_ENABLED   (1 << 25)

Definition at line 301 of file tegra30_ahub.h.

#define TEGRA30_AHUB_DAM_LIVE_STATUS_RX1FIFO_EMPTY   (1 << 1)

Definition at line 307 of file tegra30_ahub.h.

#define TEGRA30_AHUB_DAM_LIVE_STATUS_RX1FIFO_FULL   (1 << 9)

Definition at line 304 of file tegra30_ahub.h.

#define TEGRA30_AHUB_DAM_LIVE_STATUS_STRIDE   0x8

Definition at line 298 of file tegra30_ahub.h.

#define TEGRA30_AHUB_DAM_LIVE_STATUS_TX_ENABLED   (1 << 26)

Definition at line 300 of file tegra30_ahub.h.

#define TEGRA30_AHUB_DAM_LIVE_STATUS_TXFIFO_EMPTY   (1 << 7)

Definition at line 306 of file tegra30_ahub.h.

#define TEGRA30_AHUB_DAM_LIVE_STATUS_TXFIFO_FULL   (1 << 15)

Definition at line 303 of file tegra30_ahub.h.

#define TEGRA30_AHUB_I2S_INT_MASK   0xb0

Definition at line 328 of file tegra30_ahub.h.

#define TEGRA30_AHUB_I2S_INT_SET   0xf8

Definition at line 376 of file tegra30_ahub.h.

#define TEGRA30_AHUB_I2S_INT_SOURCE   0xe0

Definition at line 360 of file tegra30_ahub.h.

#define TEGRA30_AHUB_I2S_INT_STATUS   0xc8

Definition at line 344 of file tegra30_ahub.h.

#define TEGRA30_AHUB_I2S_LIVE_STATUS   0x8c

Definition at line 263 of file tegra30_ahub.h.

#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S0_RX_FIFO_EMPTY   (1 << 1)

Definition at line 292 of file tegra30_ahub.h.

#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S0_RX_FIFO_ENABLED   (1 << 11)

Definition at line 282 of file tegra30_ahub.h.

#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S0_RX_FIFO_FULL   (1 << 21)

Definition at line 272 of file tegra30_ahub.h.

#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S0_TX_FIFO_EMPTY   (1 << 0)

Definition at line 293 of file tegra30_ahub.h.

#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S0_TX_FIFO_ENABLED   (1 << 10)

Definition at line 283 of file tegra30_ahub.h.

#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S0_TX_FIFO_FULL   (1 << 20)

Definition at line 273 of file tegra30_ahub.h.

#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S1_RX_FIFO_EMPTY   (1 << 3)

Definition at line 290 of file tegra30_ahub.h.

#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S1_RX_FIFO_ENABLED   (1 << 13)

Definition at line 280 of file tegra30_ahub.h.

#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S1_RX_FIFO_FULL   (1 << 23)

Definition at line 270 of file tegra30_ahub.h.

#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S1_TX_FIFO_EMPTY   (1 << 2)

Definition at line 291 of file tegra30_ahub.h.

#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S1_TX_FIFO_ENABLED   (1 << 12)

Definition at line 281 of file tegra30_ahub.h.

#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S1_TX_FIFO_FULL   (1 << 22)

Definition at line 271 of file tegra30_ahub.h.

#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S2_RX_FIFO_EMPTY   (1 << 5)

Definition at line 288 of file tegra30_ahub.h.

#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S2_RX_FIFO_ENABLED   (1 << 15)

Definition at line 278 of file tegra30_ahub.h.

#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S2_RX_FIFO_FULL   (1 << 25)

Definition at line 268 of file tegra30_ahub.h.

#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S2_TX_FIFO_EMPTY   (1 << 4)

Definition at line 289 of file tegra30_ahub.h.

#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S2_TX_FIFO_ENABLED   (1 << 14)

Definition at line 279 of file tegra30_ahub.h.

#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S2_TX_FIFO_FULL   (1 << 24)

Definition at line 269 of file tegra30_ahub.h.

#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S3_RX_FIFO_EMPTY   (1 << 7)

Definition at line 286 of file tegra30_ahub.h.

#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S3_RX_FIFO_ENABLED   (1 << 17)

Definition at line 276 of file tegra30_ahub.h.

#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S3_RX_FIFO_FULL   (1 << 27)

Definition at line 266 of file tegra30_ahub.h.

#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S3_TX_FIFO_EMPTY   (1 << 6)

Definition at line 287 of file tegra30_ahub.h.

#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S3_TX_FIFO_ENABLED   (1 << 16)

Definition at line 277 of file tegra30_ahub.h.

#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S3_TX_FIFO_FULL   (1 << 26)

Definition at line 267 of file tegra30_ahub.h.

#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S4_RX_FIFO_EMPTY   (1 << 9)

Definition at line 284 of file tegra30_ahub.h.

#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S4_RX_FIFO_ENABLED   (1 << 19)

Definition at line 274 of file tegra30_ahub.h.

#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S4_RX_FIFO_FULL   (1 << 29)

Definition at line 264 of file tegra30_ahub.h.

#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S4_TX_FIFO_EMPTY   (1 << 8)

Definition at line 285 of file tegra30_ahub.h.

#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S4_TX_FIFO_ENABLED   (1 << 18)

Definition at line 275 of file tegra30_ahub.h.

#define TEGRA30_AHUB_I2S_LIVE_STATUS_I2S4_TX_FIFO_FULL   (1 << 28)

Definition at line 265 of file tegra30_ahub.h.

#define TEGRA30_AHUB_MISC_CTRL   0x84

Definition at line 219 of file tegra30_ahub.h.

#define TEGRA30_AHUB_MISC_CTRL_AUDIO_ACTIVE   (1 << 31)

Definition at line 220 of file tegra30_ahub.h.

#define TEGRA30_AHUB_MISC_CTRL_AUDIO_CG_EN   (1 << 8)

Definition at line 221 of file tegra30_ahub.h.

#define TEGRA30_AHUB_MISC_CTRL_AUDIO_OBS_SEL_MASK   (0x1f << TEGRA30_AHUB_MISC_CTRL_AUDIO_OBS_SEL_SHIFT)

Definition at line 223 of file tegra30_ahub.h.

#define TEGRA30_AHUB_MISC_CTRL_AUDIO_OBS_SEL_SHIFT   0

Definition at line 222 of file tegra30_ahub.h.

#define TEGRA30_AHUB_SPDIF_INT_MASK   0xbc

Definition at line 336 of file tegra30_ahub.h.

#define TEGRA30_AHUB_SPDIF_INT_SET   0x100

Definition at line 384 of file tegra30_ahub.h.

#define TEGRA30_AHUB_SPDIF_INT_SOURCE   0xec

Definition at line 368 of file tegra30_ahub.h.

#define TEGRA30_AHUB_SPDIF_INT_STATUS   0xd4

Definition at line 352 of file tegra30_ahub.h.

#define TEGRA30_AHUB_SPDIF_LIVE_STATUS   0xa8

Definition at line 312 of file tegra30_ahub.h.

#define TEGRA30_AHUB_SPDIF_LIVE_STATUS_DATA_RX_ENABLED   (1 << 8)

Definition at line 316 of file tegra30_ahub.h.

#define TEGRA30_AHUB_SPDIF_LIVE_STATUS_DATA_RXFIFO_EMPTY   (1 << 0)

Definition at line 324 of file tegra30_ahub.h.

#define TEGRA30_AHUB_SPDIF_LIVE_STATUS_DATA_RXFIFO_FULL   (1 << 4)

Definition at line 320 of file tegra30_ahub.h.

#define TEGRA30_AHUB_SPDIF_LIVE_STATUS_DATA_TX_ENABLED   (1 << 9)

Definition at line 315 of file tegra30_ahub.h.

#define TEGRA30_AHUB_SPDIF_LIVE_STATUS_DATA_TXFIFO_EMPTY   (1 << 1)

Definition at line 323 of file tegra30_ahub.h.

#define TEGRA30_AHUB_SPDIF_LIVE_STATUS_DATA_TXFIFO_FULL   (1 << 5)

Definition at line 319 of file tegra30_ahub.h.

#define TEGRA30_AHUB_SPDIF_LIVE_STATUS_USER_RX_ENABLED   (1 << 10)

Definition at line 314 of file tegra30_ahub.h.

#define TEGRA30_AHUB_SPDIF_LIVE_STATUS_USER_RXFIFO_EMPTY   (1 << 2)

Definition at line 322 of file tegra30_ahub.h.

#define TEGRA30_AHUB_SPDIF_LIVE_STATUS_USER_RXFIFO_FULL   (1 << 6)

Definition at line 318 of file tegra30_ahub.h.

#define TEGRA30_AHUB_SPDIF_LIVE_STATUS_USER_TX_ENABLED   (1 << 11)

Definition at line 313 of file tegra30_ahub.h.

#define TEGRA30_AHUB_SPDIF_LIVE_STATUS_USER_TXFIFO_EMPTY   (1 << 3)

Definition at line 321 of file tegra30_ahub.h.

#define TEGRA30_AHUB_SPDIF_LIVE_STATUS_USER_TXFIFO_FULL   (1 << 7)

Definition at line 317 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_BITS_12   2

Definition at line 40 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_BITS_16   3

Definition at line 41 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_BITS_20   4

Definition at line 42 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_BITS_24   5

Definition at line 43 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_BITS_28   6

Definition at line 44 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_BITS_32   7

Definition at line 45 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_BITS_4   0

Definition at line 38 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_BITS_8   1

Definition at line 39 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_AUDIO_BITS_12   (TEGRA30_AUDIOCIF_BITS_12 << TEGRA30_AUDIOCIF_CTRL_AUDIO_BITS_SHIFT)

Definition at line 51 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_AUDIO_BITS_16   (TEGRA30_AUDIOCIF_BITS_16 << TEGRA30_AUDIOCIF_CTRL_AUDIO_BITS_SHIFT)

Definition at line 52 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_AUDIO_BITS_20   (TEGRA30_AUDIOCIF_BITS_20 << TEGRA30_AUDIOCIF_CTRL_AUDIO_BITS_SHIFT)

Definition at line 53 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_AUDIO_BITS_24   (TEGRA30_AUDIOCIF_BITS_24 << TEGRA30_AUDIOCIF_CTRL_AUDIO_BITS_SHIFT)

Definition at line 54 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_AUDIO_BITS_28   (TEGRA30_AUDIOCIF_BITS_28 << TEGRA30_AUDIOCIF_CTRL_AUDIO_BITS_SHIFT)

Definition at line 55 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_AUDIO_BITS_32   (TEGRA30_AUDIOCIF_BITS_32 << TEGRA30_AUDIOCIF_CTRL_AUDIO_BITS_SHIFT)

Definition at line 56 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_AUDIO_BITS_4   (TEGRA30_AUDIOCIF_BITS_4 << TEGRA30_AUDIOCIF_CTRL_AUDIO_BITS_SHIFT)

Definition at line 49 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_AUDIO_BITS_8   (TEGRA30_AUDIOCIF_BITS_8 << TEGRA30_AUDIOCIF_CTRL_AUDIO_BITS_SHIFT)

Definition at line 50 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_AUDIO_BITS_MASK   (7 << TEGRA30_AUDIOCIF_CTRL_AUDIO_BITS_SHIFT)

Definition at line 48 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_AUDIO_BITS_SHIFT   12

Definition at line 47 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_AUDIO_CHANNELS_MASK   (TEGRA30_AUDIOCIF_CTRL_AUDIO_CHANNELS_MASK_US << TEGRA30_AUDIOCIF_CTRL_AUDIO_CHANNELS_SHIFT)

Definition at line 31 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_AUDIO_CHANNELS_MASK_US   7

Definition at line 30 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_AUDIO_CHANNELS_SHIFT   24

Definition at line 29 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_CLIENT_BITS_12   (TEGRA30_AUDIOCIF_BITS_12 << TEGRA30_AUDIOCIF_CTRL_CLIENT_BITS_SHIFT)

Definition at line 62 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_CLIENT_BITS_16   (TEGRA30_AUDIOCIF_BITS_16 << TEGRA30_AUDIOCIF_CTRL_CLIENT_BITS_SHIFT)

Definition at line 63 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_CLIENT_BITS_20   (TEGRA30_AUDIOCIF_BITS_20 << TEGRA30_AUDIOCIF_CTRL_CLIENT_BITS_SHIFT)

Definition at line 64 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_CLIENT_BITS_24   (TEGRA30_AUDIOCIF_BITS_24 << TEGRA30_AUDIOCIF_CTRL_CLIENT_BITS_SHIFT)

Definition at line 65 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_CLIENT_BITS_28   (TEGRA30_AUDIOCIF_BITS_28 << TEGRA30_AUDIOCIF_CTRL_CLIENT_BITS_SHIFT)

Definition at line 66 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_CLIENT_BITS_32   (TEGRA30_AUDIOCIF_BITS_32 << TEGRA30_AUDIOCIF_CTRL_CLIENT_BITS_SHIFT)

Definition at line 67 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_CLIENT_BITS_4   (TEGRA30_AUDIOCIF_BITS_4 << TEGRA30_AUDIOCIF_CTRL_CLIENT_BITS_SHIFT)

Definition at line 60 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_CLIENT_BITS_8   (TEGRA30_AUDIOCIF_BITS_8 << TEGRA30_AUDIOCIF_CTRL_CLIENT_BITS_SHIFT)

Definition at line 61 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_CLIENT_BITS_MASK   (7 << TEGRA30_AUDIOCIF_CTRL_CLIENT_BITS_SHIFT)

Definition at line 59 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_CLIENT_BITS_SHIFT   8

Definition at line 58 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_CLIENT_CHANNELS_MASK   (TEGRA30_AUDIOCIF_CTRL_CLIENT_CHANNELS_MASK_US << TEGRA30_AUDIOCIF_CTRL_CLIENT_CHANNELS_SHIFT)

Definition at line 36 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_CLIENT_CHANNELS_MASK_US   7

Definition at line 35 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_CLIENT_CHANNELS_SHIFT   16

Definition at line 34 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_DIRECTION_MASK   (1 << TEGRA30_AUDIOCIF_CTRL_DIRECTION_SHIFT)

Definition at line 95 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_DIRECTION_RX   (TEGRA30_AUDIOCIF_DIRECTION_RX << TEGRA30_AUDIOCIF_CTRL_DIRECTION_SHIFT)

Definition at line 97 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_DIRECTION_SHIFT   2

Definition at line 94 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_DIRECTION_TX   (TEGRA30_AUDIOCIF_DIRECTION_TX << TEGRA30_AUDIOCIF_CTRL_DIRECTION_SHIFT)

Definition at line 96 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_EXPAND_LFSR   (TEGRA30_AUDIOCIF_EXPAND_LFSR << TEGRA30_AUDIOCIF_CTRL_EXPAND_SHIFT)

Definition at line 77 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_EXPAND_MASK   (3 << TEGRA30_AUDIOCIF_CTRL_EXPAND_SHIFT)

Definition at line 74 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_EXPAND_ONE   (TEGRA30_AUDIOCIF_EXPAND_ONE << TEGRA30_AUDIOCIF_CTRL_EXPAND_SHIFT)

Definition at line 76 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_EXPAND_SHIFT   6

Definition at line 73 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_EXPAND_ZERO   (TEGRA30_AUDIOCIF_EXPAND_ZERO << TEGRA30_AUDIOCIF_CTRL_EXPAND_SHIFT)

Definition at line 75 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_FIFO_THRESHOLD_MASK   (TEGRA30_AUDIOCIF_CTRL_FIFO_THRESHOLD_MASK_US << TEGRA30_AUDIOCIF_CTRL_FIFO_THRESHOLD_SHIFT)

Definition at line 26 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_FIFO_THRESHOLD_MASK_US   0xf

Definition at line 25 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_FIFO_THRESHOLD_SHIFT   28

Definition at line 24 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_MONO_CONV_COPY   (TEGRA30_AUDIOCIF_MONO_CONV_COPY << TEGRA30_AUDIOCIF_CTRL_MONO_CONV_SHIFT)

Definition at line 113 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_MONO_CONV_MASK   (1 << TEGRA30_AUDIOCIF_CTRL_MONO_CONV_SHIFT)

Definition at line 111 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_MONO_CONV_SHIFT   0

Definition at line 110 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_MONO_CONV_ZERO   (TEGRA30_AUDIOCIF_MONO_CONV_ZERO << TEGRA30_AUDIOCIF_CTRL_MONO_CONV_SHIFT)

Definition at line 112 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_REPLICATE   3

Definition at line 89 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_STEREO_CONV_AVG   (TEGRA30_AUDIOCIF_STEREO_CONV_AVG << TEGRA30_AUDIOCIF_CTRL_STEREO_CONV_SHIFT)

Definition at line 87 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_STEREO_CONV_CH0   (TEGRA30_AUDIOCIF_STEREO_CONV_CH0 << TEGRA30_AUDIOCIF_CTRL_STEREO_CONV_SHIFT)

Definition at line 85 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_STEREO_CONV_CH1   (TEGRA30_AUDIOCIF_STEREO_CONV_CH1 << TEGRA30_AUDIOCIF_CTRL_STEREO_CONV_SHIFT)

Definition at line 86 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_STEREO_CONV_MASK   (3 << TEGRA30_AUDIOCIF_CTRL_STEREO_CONV_SHIFT)

Definition at line 84 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_STEREO_CONV_SHIFT   4

Definition at line 83 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_TRUNCATE_CHOP   (TEGRA30_AUDIOCIF_TRUNCATE_CHOP << TEGRA30_AUDIOCIF_CTRL_TRUNCATE_SHIFT)

Definition at line 105 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_TRUNCATE_MASK   (1 << TEGRA30_AUDIOCIF_CTRL_TRUNCATE_SHIFT)

Definition at line 103 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_TRUNCATE_ROUND   (TEGRA30_AUDIOCIF_TRUNCATE_ROUND << TEGRA30_AUDIOCIF_CTRL_TRUNCATE_SHIFT)

Definition at line 104 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_CTRL_TRUNCATE_SHIFT   1

Definition at line 102 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_DIRECTION_RX   1

Definition at line 92 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_DIRECTION_TX   0

Definition at line 91 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_EXPAND_LFSR   2

Definition at line 71 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_EXPAND_ONE   1

Definition at line 70 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_EXPAND_ZERO   0

Definition at line 69 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_MONO_CONV_COPY   1

Definition at line 108 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_MONO_CONV_ZERO   0

Definition at line 107 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_STEREO_CONV_AVG   2

Definition at line 81 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_STEREO_CONV_CH0   0

Definition at line 79 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_STEREO_CONV_CH1   1

Definition at line 80 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_TRUNCATE_CHOP   1

Definition at line 100 of file tegra30_ahub.h.

#define TEGRA30_AUDIOCIF_TRUNCATE_ROUND   0

Definition at line 99 of file tegra30_ahub.h.

#define TEGRA30_PACK_16   3

Definition at line 137 of file tegra30_ahub.h.

#define TEGRA30_PACK_8_4   2

Definition at line 136 of file tegra30_ahub.h.

Enumeration Type Documentation

Enumerator:
TEGRA30_AHUB_RXCIF_APBIF_RX0 
TEGRA30_AHUB_RXCIF_APBIF_RX1 
TEGRA30_AHUB_RXcIF_APBIF_RX2 
TEGRA30_AHUB_RXCIF_APBIF_RX3 
TEGRA30_AHUB_RXCIF_I2S0_RX0 
TEGRA30_AHUB_RXCIF_I2S1_RX0 
TEGRA30_AHUB_RXCIF_I2S2_RX0 
TEGRA30_AHUB_RXCIF_I2S3_RX0 
TEGRA30_AHUB_RXCIF_I2S4_RX0 
TEGRA30_AHUB_RXCIF_DAM0_RX0 
TEGRA30_AHUB_RXCIF_DAM0_RX1 
TEGRA30_AHUB_RXCIF_DAM1_RX0 
TEGRA30_AHUB_RXCIF_DAM2_RX1 
TEGRA30_AHUB_RXCIF_DAM3_RX0 
TEGRA30_AHUB_RXCIF_DAM3_RX1 
TEGRA30_AHUB_RXCIF_SPDIF_RX0 
TEGRA30_AHUB_RXCIF_SPDIF_RX1 

Definition at line 433 of file tegra30_ahub.h.

Enumerator:
TEGRA30_AHUB_TXCIF_APBIF_TX0 
TEGRA30_AHUB_TXCIF_APBIF_TX1 
TEGRA30_AHUB_TXCIF_APBIF_TX2 
TEGRA30_AHUB_TXCIF_APBIF_TX3 
TEGRA30_AHUB_TXCIF_I2S0_TX0 
TEGRA30_AHUB_TXCIF_I2S1_TX0 
TEGRA30_AHUB_TXCIF_I2S2_TX0 
TEGRA30_AHUB_TXCIF_I2S3_TX0 
TEGRA30_AHUB_TXCIF_I2S4_TX0 
TEGRA30_AHUB_TXCIF_DAM0_TX0 
TEGRA30_AHUB_TXCIF_DAM1_TX0 
TEGRA30_AHUB_TXCIF_DAM2_TX0 
TEGRA30_AHUB_TXCIF_SPDIF_TX0 
TEGRA30_AHUB_TXCIF_SPDIF_TX1 

Definition at line 416 of file tegra30_ahub.h.

Function Documentation

int tegra30_ahub_allocate_rx_fifo ( enum tegra30_ahub_rxcif rxcif,
unsigned long fiforeg,
unsigned long reqsel 
)

Definition at line 98 of file tegra30_ahub.c.

int tegra30_ahub_allocate_tx_fifo ( enum tegra30_ahub_txcif txcif,
unsigned long fiforeg,
unsigned long reqsel 
)

Definition at line 181 of file tegra30_ahub.c.

int tegra30_ahub_disable_rx_fifo ( enum tegra30_ahub_rxcif  rxcif)

Definition at line 156 of file tegra30_ahub.c.

int tegra30_ahub_disable_tx_fifo ( enum tegra30_ahub_txcif  txcif)

Definition at line 239 of file tegra30_ahub.c.

int tegra30_ahub_enable_rx_fifo ( enum tegra30_ahub_rxcif  rxcif)

Definition at line 141 of file tegra30_ahub.c.

int tegra30_ahub_enable_tx_fifo ( enum tegra30_ahub_txcif  txcif)

Definition at line 224 of file tegra30_ahub.c.

int tegra30_ahub_free_rx_fifo ( enum tegra30_ahub_rxcif  rxcif)

Definition at line 171 of file tegra30_ahub.c.

int tegra30_ahub_free_tx_fifo ( enum tegra30_ahub_txcif  txcif)

Definition at line 254 of file tegra30_ahub.c.

int tegra30_ahub_set_rx_cif_source ( enum tegra30_ahub_rxcif  rxcif,
enum tegra30_ahub_txcif  txcif 
)

Definition at line 264 of file tegra30_ahub.c.

int tegra30_ahub_unset_rx_cif_source ( enum tegra30_ahub_rxcif  rxcif)

Definition at line 278 of file tegra30_ahub.c.