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

Go to the source code of this file.

Data Structures

struct  aaci_runtime
 
struct  aaci
 

Macros

#define AACI_CSCH1   0x000
 
#define AACI_CSCH2   0x014
 
#define AACI_CSCH3   0x028
 
#define AACI_CSCH4   0x03c
 
#define AACI_RXCR   0x000 /* 29 bits Control Rx FIFO */
 
#define AACI_TXCR   0x004 /* 17 bits Control Tx FIFO */
 
#define AACI_SR   0x008 /* 12 bits Status */
 
#define AACI_ISR   0x00c /* 7 bits Int Status */
 
#define AACI_IE   0x010 /* 7 bits Int Enable */
 
#define AACI_SL1RX   0x050
 
#define AACI_SL1TX   0x054
 
#define AACI_SL2RX   0x058
 
#define AACI_SL2TX   0x05c
 
#define AACI_SL12RX   0x060
 
#define AACI_SL12TX   0x064
 
#define AACI_SLFR   0x068 /* slot flags */
 
#define AACI_SLISTAT   0x06c /* slot interrupt status */
 
#define AACI_SLIEN   0x070 /* slot interrupt enable */
 
#define AACI_INTCLR   0x074 /* interrupt clear */
 
#define AACI_MAINCR   0x078 /* main control */
 
#define AACI_RESET   0x07c /* reset control */
 
#define AACI_SYNC   0x080 /* sync control */
 
#define AACI_ALLINTS   0x084 /* all fifo interrupt status */
 
#define AACI_MAINFR   0x088 /* main flag register */
 
#define AACI_DR1   0x090 /* data read/written fifo 1 */
 
#define AACI_DR2   0x0b0 /* data read/written fifo 2 */
 
#define AACI_DR3   0x0d0 /* data read/written fifo 3 */
 
#define AACI_DR4   0x0f0 /* data read/written fifo 4 */
 
#define CR_FEN   (1 << 16) /* fifo enable */
 
#define CR_COMPACT   (1 << 15) /* compact mode */
 
#define CR_SZ16   (0 << 13) /* 16 bits */
 
#define CR_SZ18   (1 << 13) /* 18 bits */
 
#define CR_SZ20   (2 << 13) /* 20 bits */
 
#define CR_SZ12   (3 << 13) /* 12 bits */
 
#define CR_SL12   (1 << 12)
 
#define CR_SL11   (1 << 11)
 
#define CR_SL10   (1 << 10)
 
#define CR_SL9   (1 << 9)
 
#define CR_SL8   (1 << 8)
 
#define CR_SL7   (1 << 7)
 
#define CR_SL6   (1 << 6)
 
#define CR_SL5   (1 << 5)
 
#define CR_SL4   (1 << 4)
 
#define CR_SL3   (1 << 3)
 
#define CR_SL2   (1 << 2)
 
#define CR_SL1   (1 << 1)
 
#define CR_EN   (1 << 0) /* transmit enable */
 
#define SR_RXTOFE   (1 << 11) /* rx timeout fifo empty */
 
#define SR_TXTO   (1 << 10) /* rx timeout fifo nonempty */
 
#define SR_TXU   (1 << 9) /* tx underrun */
 
#define SR_RXO   (1 << 8) /* rx overrun */
 
#define SR_TXB   (1 << 7) /* tx busy */
 
#define SR_RXB   (1 << 6) /* rx busy */
 
#define SR_TXFF   (1 << 5) /* tx fifo full */
 
#define SR_RXFF   (1 << 4) /* rx fifo full */
 
#define SR_TXHE   (1 << 3) /* tx fifo half empty */
 
#define SR_RXHF   (1 << 2) /* rx fifo half full */
 
#define SR_TXFE   (1 << 1) /* tx fifo empty */
 
#define SR_RXFE   (1 << 0) /* rx fifo empty */
 
#define ISR_RXTOFEINTR   (1 << 6) /* rx fifo empty */
 
#define ISR_URINTR   (1 << 5) /* tx underflow */
 
#define ISR_ORINTR   (1 << 4) /* rx overflow */
 
#define ISR_RXINTR   (1 << 3) /* rx fifo */
 
#define ISR_TXINTR   (1 << 2) /* tx fifo intr */
 
#define ISR_RXTOINTR   (1 << 1) /* tx timeout */
 
#define ISR_TXCINTR   (1 << 0) /* tx complete */
 
#define IE_RXTOIE   (1 << 6)
 
#define IE_URIE   (1 << 5)
 
#define IE_ORIE   (1 << 4)
 
#define IE_RXIE   (1 << 3)
 
#define IE_TXIE   (1 << 2)
 
#define IE_RXTIE   (1 << 1)
 
#define IE_TXCIE   (1 << 0)
 
#define ISR_RXTOFE   (1 << 6) /* rx timeout fifo empty */
 
#define ISR_UR   (1 << 5) /* tx fifo underrun */
 
#define ISR_OR   (1 << 4) /* rx fifo overrun */
 
#define ISR_RX   (1 << 3) /* rx interrupt status */
 
#define ISR_TX   (1 << 2) /* tx interrupt status */
 
#define ISR_RXTO   (1 << 1) /* rx timeout */
 
#define ISR_TXC   (1 << 0) /* tx complete */
 
#define IE_RXTOFE   (1 << 6) /* rx timeout fifo empty */
 
#define IE_UR   (1 << 5) /* tx fifo underrun */
 
#define IE_OR   (1 << 4) /* rx fifo overrun */
 
#define IE_RX   (1 << 3) /* rx interrupt status */
 
#define IE_TX   (1 << 2) /* tx interrupt status */
 
#define IE_RXTO   (1 << 1) /* rx timeout */
 
#define IE_TXC   (1 << 0) /* tx complete */
 
#define SLFR_RWIS   (1 << 13) /* raw wake-up interrupt status */
 
#define SLFR_RGPIOINTR   (1 << 12) /* raw gpio interrupt */
 
#define SLFR_12TXE   (1 << 11) /* slot 12 tx empty */
 
#define SLFR_12RXV   (1 << 10) /* slot 12 rx valid */
 
#define SLFR_2TXE   (1 << 9) /* slot 2 tx empty */
 
#define SLFR_2RXV   (1 << 8) /* slot 2 rx valid */
 
#define SLFR_1TXE   (1 << 7) /* slot 1 tx empty */
 
#define SLFR_1RXV   (1 << 6) /* slot 1 rx valid */
 
#define SLFR_12TXB   (1 << 5) /* slot 12 tx busy */
 
#define SLFR_12RXB   (1 << 4) /* slot 12 rx busy */
 
#define SLFR_2TXB   (1 << 3) /* slot 2 tx busy */
 
#define SLFR_2RXB   (1 << 2) /* slot 2 rx busy */
 
#define SLFR_1TXB   (1 << 1) /* slot 1 tx busy */
 
#define SLFR_1RXB   (1 << 0) /* slot 1 rx busy */
 
#define ICLR_RXTOFEC4   (1 << 12)
 
#define ICLR_RXTOFEC3   (1 << 11)
 
#define ICLR_RXTOFEC2   (1 << 10)
 
#define ICLR_RXTOFEC1   (1 << 9)
 
#define ICLR_TXUEC4   (1 << 8)
 
#define ICLR_TXUEC3   (1 << 7)
 
#define ICLR_TXUEC2   (1 << 6)
 
#define ICLR_TXUEC1   (1 << 5)
 
#define ICLR_RXOEC4   (1 << 4)
 
#define ICLR_RXOEC3   (1 << 3)
 
#define ICLR_RXOEC2   (1 << 2)
 
#define ICLR_RXOEC1   (1 << 1)
 
#define ICLR_WISC   (1 << 0)
 
#define MAINCR_SCRA(x)   ((x) << 10) /* secondary codec reg access */
 
#define MAINCR_DMAEN   (1 << 9) /* dma enable */
 
#define MAINCR_SL12TXEN   (1 << 8) /* slot 12 transmit enable */
 
#define MAINCR_SL12RXEN   (1 << 7) /* slot 12 receive enable */
 
#define MAINCR_SL2TXEN   (1 << 6) /* slot 2 transmit enable */
 
#define MAINCR_SL2RXEN   (1 << 5) /* slot 2 receive enable */
 
#define MAINCR_SL1TXEN   (1 << 4) /* slot 1 transmit enable */
 
#define MAINCR_SL1RXEN   (1 << 3) /* slot 1 receive enable */
 
#define MAINCR_LPM   (1 << 2) /* low power mode */
 
#define MAINCR_LOOPBK   (1 << 1) /* loopback */
 
#define MAINCR_IE   (1 << 0) /* aaci interface enable */
 
#define RESET_NRST   (1 << 0)
 
#define SYNC_FORCE   (1 << 0)
 
#define MAINFR_TXB   (1 << 1) /* transmit busy */
 
#define MAINFR_RXB   (1 << 0) /* receive busy */
 
#define ACSTREAM_FRONT   0
 
#define ACSTREAM_SURROUND   1
 
#define ACSTREAM_LFE   2
 

Macro Definition Documentation

#define AACI_ALLINTS   0x084 /* all fifo interrupt status */

Definition at line 44 of file aaci.h.

#define AACI_CSCH1   0x000

Definition at line 17 of file aaci.h.

#define AACI_CSCH2   0x014

Definition at line 18 of file aaci.h.

#define AACI_CSCH3   0x028

Definition at line 19 of file aaci.h.

#define AACI_CSCH4   0x03c

Definition at line 20 of file aaci.h.

#define AACI_DR1   0x090 /* data read/written fifo 1 */

Definition at line 46 of file aaci.h.

#define AACI_DR2   0x0b0 /* data read/written fifo 2 */

Definition at line 47 of file aaci.h.

#define AACI_DR3   0x0d0 /* data read/written fifo 3 */

Definition at line 48 of file aaci.h.

#define AACI_DR4   0x0f0 /* data read/written fifo 4 */

Definition at line 49 of file aaci.h.

#define AACI_IE   0x010 /* 7 bits Int Enable */

Definition at line 26 of file aaci.h.

#define AACI_INTCLR   0x074 /* interrupt clear */

Definition at line 40 of file aaci.h.

#define AACI_ISR   0x00c /* 7 bits Int Status */

Definition at line 25 of file aaci.h.

#define AACI_MAINCR   0x078 /* main control */

Definition at line 41 of file aaci.h.

#define AACI_MAINFR   0x088 /* main flag register */

Definition at line 45 of file aaci.h.

#define AACI_RESET   0x07c /* reset control */

Definition at line 42 of file aaci.h.

#define AACI_RXCR   0x000 /* 29 bits Control Rx FIFO */

Definition at line 22 of file aaci.h.

#define AACI_SL12RX   0x060

Definition at line 35 of file aaci.h.

#define AACI_SL12TX   0x064

Definition at line 36 of file aaci.h.

#define AACI_SL1RX   0x050

Definition at line 31 of file aaci.h.

#define AACI_SL1TX   0x054

Definition at line 32 of file aaci.h.

#define AACI_SL2RX   0x058

Definition at line 33 of file aaci.h.

#define AACI_SL2TX   0x05c

Definition at line 34 of file aaci.h.

#define AACI_SLFR   0x068 /* slot flags */

Definition at line 37 of file aaci.h.

#define AACI_SLIEN   0x070 /* slot interrupt enable */

Definition at line 39 of file aaci.h.

#define AACI_SLISTAT   0x06c /* slot interrupt status */

Definition at line 38 of file aaci.h.

#define AACI_SR   0x008 /* 12 bits Status */

Definition at line 24 of file aaci.h.

#define AACI_SYNC   0x080 /* sync control */

Definition at line 43 of file aaci.h.

#define AACI_TXCR   0x004 /* 17 bits Control Tx FIFO */

Definition at line 23 of file aaci.h.

#define ACSTREAM_FRONT   0

Definition at line 246 of file aaci.h.

#define ACSTREAM_LFE   2

Definition at line 248 of file aaci.h.

#define ACSTREAM_SURROUND   1

Definition at line 247 of file aaci.h.

#define CR_COMPACT   (1 << 15) /* compact mode */

Definition at line 55 of file aaci.h.

#define CR_EN   (1 << 0) /* transmit enable */

Definition at line 72 of file aaci.h.

#define CR_FEN   (1 << 16) /* fifo enable */

Definition at line 54 of file aaci.h.

#define CR_SL1   (1 << 1)

Definition at line 71 of file aaci.h.

#define CR_SL10   (1 << 10)

Definition at line 62 of file aaci.h.

#define CR_SL11   (1 << 11)

Definition at line 61 of file aaci.h.

#define CR_SL12   (1 << 12)

Definition at line 60 of file aaci.h.

#define CR_SL2   (1 << 2)

Definition at line 70 of file aaci.h.

#define CR_SL3   (1 << 3)

Definition at line 69 of file aaci.h.

#define CR_SL4   (1 << 4)

Definition at line 68 of file aaci.h.

#define CR_SL5   (1 << 5)

Definition at line 67 of file aaci.h.

#define CR_SL6   (1 << 6)

Definition at line 66 of file aaci.h.

#define CR_SL7   (1 << 7)

Definition at line 65 of file aaci.h.

#define CR_SL8   (1 << 8)

Definition at line 64 of file aaci.h.

#define CR_SL9   (1 << 9)

Definition at line 63 of file aaci.h.

#define CR_SZ12   (3 << 13) /* 12 bits */

Definition at line 59 of file aaci.h.

#define CR_SZ16   (0 << 13) /* 16 bits */

Definition at line 56 of file aaci.h.

#define CR_SZ18   (1 << 13) /* 18 bits */

Definition at line 57 of file aaci.h.

#define CR_SZ20   (2 << 13) /* 20 bits */

Definition at line 58 of file aaci.h.

#define ICLR_RXOEC1   (1 << 1)

Definition at line 166 of file aaci.h.

#define ICLR_RXOEC2   (1 << 2)

Definition at line 165 of file aaci.h.

#define ICLR_RXOEC3   (1 << 3)

Definition at line 164 of file aaci.h.

#define ICLR_RXOEC4   (1 << 4)

Definition at line 163 of file aaci.h.

#define ICLR_RXTOFEC1   (1 << 9)

Definition at line 158 of file aaci.h.

#define ICLR_RXTOFEC2   (1 << 10)

Definition at line 157 of file aaci.h.

#define ICLR_RXTOFEC3   (1 << 11)

Definition at line 156 of file aaci.h.

#define ICLR_RXTOFEC4   (1 << 12)

Definition at line 155 of file aaci.h.

#define ICLR_TXUEC1   (1 << 5)

Definition at line 162 of file aaci.h.

#define ICLR_TXUEC2   (1 << 6)

Definition at line 161 of file aaci.h.

#define ICLR_TXUEC3   (1 << 7)

Definition at line 160 of file aaci.h.

#define ICLR_TXUEC4   (1 << 8)

Definition at line 159 of file aaci.h.

#define ICLR_WISC   (1 << 0)

Definition at line 167 of file aaci.h.

#define IE_OR   (1 << 4) /* rx fifo overrun */

Definition at line 128 of file aaci.h.

#define IE_ORIE   (1 << 4)

Definition at line 106 of file aaci.h.

#define IE_RX   (1 << 3) /* rx interrupt status */

Definition at line 129 of file aaci.h.

#define IE_RXIE   (1 << 3)

Definition at line 107 of file aaci.h.

#define IE_RXTIE   (1 << 1)

Definition at line 109 of file aaci.h.

#define IE_RXTO   (1 << 1) /* rx timeout */

Definition at line 131 of file aaci.h.

#define IE_RXTOFE   (1 << 6) /* rx timeout fifo empty */

Definition at line 126 of file aaci.h.

#define IE_RXTOIE   (1 << 6)

Definition at line 104 of file aaci.h.

#define IE_TX   (1 << 2) /* tx interrupt status */

Definition at line 130 of file aaci.h.

#define IE_TXC   (1 << 0) /* tx complete */

Definition at line 132 of file aaci.h.

#define IE_TXCIE   (1 << 0)

Definition at line 110 of file aaci.h.

#define IE_TXIE   (1 << 2)

Definition at line 108 of file aaci.h.

#define IE_UR   (1 << 5) /* tx fifo underrun */

Definition at line 127 of file aaci.h.

#define IE_URIE   (1 << 5)

Definition at line 105 of file aaci.h.

#define ISR_OR   (1 << 4) /* rx fifo overrun */

Definition at line 117 of file aaci.h.

#define ISR_ORINTR   (1 << 4) /* rx overflow */

Definition at line 95 of file aaci.h.

#define ISR_RX   (1 << 3) /* rx interrupt status */

Definition at line 118 of file aaci.h.

#define ISR_RXINTR   (1 << 3) /* rx fifo */

Definition at line 96 of file aaci.h.

#define ISR_RXTO   (1 << 1) /* rx timeout */

Definition at line 120 of file aaci.h.

#define ISR_RXTOFE   (1 << 6) /* rx timeout fifo empty */

Definition at line 115 of file aaci.h.

#define ISR_RXTOFEINTR   (1 << 6) /* rx fifo empty */

Definition at line 93 of file aaci.h.

#define ISR_RXTOINTR   (1 << 1) /* tx timeout */

Definition at line 98 of file aaci.h.

#define ISR_TX   (1 << 2) /* tx interrupt status */

Definition at line 119 of file aaci.h.

#define ISR_TXC   (1 << 0) /* tx complete */

Definition at line 121 of file aaci.h.

#define ISR_TXCINTR   (1 << 0) /* tx complete */

Definition at line 99 of file aaci.h.

#define ISR_TXINTR   (1 << 2) /* tx fifo intr */

Definition at line 97 of file aaci.h.

#define ISR_UR   (1 << 5) /* tx fifo underrun */

Definition at line 116 of file aaci.h.

#define ISR_URINTR   (1 << 5) /* tx underflow */

Definition at line 94 of file aaci.h.

#define MAINCR_DMAEN   (1 << 9) /* dma enable */

Definition at line 173 of file aaci.h.

#define MAINCR_IE   (1 << 0) /* aaci interface enable */

Definition at line 182 of file aaci.h.

#define MAINCR_LOOPBK   (1 << 1) /* loopback */

Definition at line 181 of file aaci.h.

#define MAINCR_LPM   (1 << 2) /* low power mode */

Definition at line 180 of file aaci.h.

#define MAINCR_SCRA (   x)    ((x) << 10) /* secondary codec reg access */

Definition at line 172 of file aaci.h.

#define MAINCR_SL12RXEN   (1 << 7) /* slot 12 receive enable */

Definition at line 175 of file aaci.h.

#define MAINCR_SL12TXEN   (1 << 8) /* slot 12 transmit enable */

Definition at line 174 of file aaci.h.

#define MAINCR_SL1RXEN   (1 << 3) /* slot 1 receive enable */

Definition at line 179 of file aaci.h.

#define MAINCR_SL1TXEN   (1 << 4) /* slot 1 transmit enable */

Definition at line 178 of file aaci.h.

#define MAINCR_SL2RXEN   (1 << 5) /* slot 2 receive enable */

Definition at line 177 of file aaci.h.

#define MAINCR_SL2TXEN   (1 << 6) /* slot 2 transmit enable */

Definition at line 176 of file aaci.h.

#define MAINFR_RXB   (1 << 0) /* receive busy */

Definition at line 198 of file aaci.h.

#define MAINFR_TXB   (1 << 1) /* transmit busy */

Definition at line 197 of file aaci.h.

#define RESET_NRST   (1 << 0)

Definition at line 187 of file aaci.h.

#define SLFR_12RXB   (1 << 4) /* slot 12 rx busy */

Definition at line 146 of file aaci.h.

#define SLFR_12RXV   (1 << 10) /* slot 12 rx valid */

Definition at line 140 of file aaci.h.

#define SLFR_12TXB   (1 << 5) /* slot 12 tx busy */

Definition at line 145 of file aaci.h.

#define SLFR_12TXE   (1 << 11) /* slot 12 tx empty */

Definition at line 139 of file aaci.h.

#define SLFR_1RXB   (1 << 0) /* slot 1 rx busy */

Definition at line 150 of file aaci.h.

#define SLFR_1RXV   (1 << 6) /* slot 1 rx valid */

Definition at line 144 of file aaci.h.

#define SLFR_1TXB   (1 << 1) /* slot 1 tx busy */

Definition at line 149 of file aaci.h.

#define SLFR_1TXE   (1 << 7) /* slot 1 tx empty */

Definition at line 143 of file aaci.h.

#define SLFR_2RXB   (1 << 2) /* slot 2 rx busy */

Definition at line 148 of file aaci.h.

#define SLFR_2RXV   (1 << 8) /* slot 2 rx valid */

Definition at line 142 of file aaci.h.

#define SLFR_2TXB   (1 << 3) /* slot 2 tx busy */

Definition at line 147 of file aaci.h.

#define SLFR_2TXE   (1 << 9) /* slot 2 tx empty */

Definition at line 141 of file aaci.h.

#define SLFR_RGPIOINTR   (1 << 12) /* raw gpio interrupt */

Definition at line 138 of file aaci.h.

#define SLFR_RWIS   (1 << 13) /* raw wake-up interrupt status */

Definition at line 137 of file aaci.h.

#define SR_RXB   (1 << 6) /* rx busy */

Definition at line 82 of file aaci.h.

#define SR_RXFE   (1 << 0) /* rx fifo empty */

Definition at line 88 of file aaci.h.

#define SR_RXFF   (1 << 4) /* rx fifo full */

Definition at line 84 of file aaci.h.

#define SR_RXHF   (1 << 2) /* rx fifo half full */

Definition at line 86 of file aaci.h.

#define SR_RXO   (1 << 8) /* rx overrun */

Definition at line 80 of file aaci.h.

#define SR_RXTOFE   (1 << 11) /* rx timeout fifo empty */

Definition at line 77 of file aaci.h.

#define SR_TXB   (1 << 7) /* tx busy */

Definition at line 81 of file aaci.h.

#define SR_TXFE   (1 << 1) /* tx fifo empty */

Definition at line 87 of file aaci.h.

#define SR_TXFF   (1 << 5) /* tx fifo full */

Definition at line 83 of file aaci.h.

#define SR_TXHE   (1 << 3) /* tx fifo half empty */

Definition at line 85 of file aaci.h.

#define SR_TXTO   (1 << 10) /* rx timeout fifo nonempty */

Definition at line 78 of file aaci.h.

#define SR_TXU   (1 << 9) /* tx underrun */

Definition at line 79 of file aaci.h.

#define SYNC_FORCE   (1 << 0)

Definition at line 192 of file aaci.h.