~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/sound/pci/oxygen/oxygen_regs.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /sound/pci/oxygen/oxygen_regs.h (Architecture alpha) and /sound/pci/oxygen/oxygen_regs.h (Architecture ppc)


  1 /* SPDX-License-Identifier: GPL-2.0 */              1 /* SPDX-License-Identifier: GPL-2.0 */
  2 #ifndef OXYGEN_REGS_H_INCLUDED                      2 #ifndef OXYGEN_REGS_H_INCLUDED
  3 #define OXYGEN_REGS_H_INCLUDED                      3 #define OXYGEN_REGS_H_INCLUDED
  4                                                     4 
  5 /* recording channel A */                           5 /* recording channel A */
  6 #define OXYGEN_DMA_A_ADDRESS            0x00        6 #define OXYGEN_DMA_A_ADDRESS            0x00    /* 32-bit base address */
  7 #define OXYGEN_DMA_A_COUNT              0x04        7 #define OXYGEN_DMA_A_COUNT              0x04    /* buffer counter (dwords) */
  8 #define OXYGEN_DMA_A_TCOUNT             0x06        8 #define OXYGEN_DMA_A_TCOUNT             0x06    /* interrupt counter (dwords) */
  9                                                     9 
 10 /* recording channel B */                          10 /* recording channel B */
 11 #define OXYGEN_DMA_B_ADDRESS            0x08       11 #define OXYGEN_DMA_B_ADDRESS            0x08
 12 #define OXYGEN_DMA_B_COUNT              0x0c       12 #define OXYGEN_DMA_B_COUNT              0x0c
 13 #define OXYGEN_DMA_B_TCOUNT             0x0e       13 #define OXYGEN_DMA_B_TCOUNT             0x0e
 14                                                    14 
 15 /* recording channel C */                          15 /* recording channel C */
 16 #define OXYGEN_DMA_C_ADDRESS            0x10       16 #define OXYGEN_DMA_C_ADDRESS            0x10
 17 #define OXYGEN_DMA_C_COUNT              0x14       17 #define OXYGEN_DMA_C_COUNT              0x14
 18 #define OXYGEN_DMA_C_TCOUNT             0x16       18 #define OXYGEN_DMA_C_TCOUNT             0x16
 19                                                    19 
 20 /* SPDIF playback channel */                       20 /* SPDIF playback channel */
 21 #define OXYGEN_DMA_SPDIF_ADDRESS        0x18       21 #define OXYGEN_DMA_SPDIF_ADDRESS        0x18
 22 #define OXYGEN_DMA_SPDIF_COUNT          0x1c       22 #define OXYGEN_DMA_SPDIF_COUNT          0x1c
 23 #define OXYGEN_DMA_SPDIF_TCOUNT         0x1e       23 #define OXYGEN_DMA_SPDIF_TCOUNT         0x1e
 24                                                    24 
 25 /* multichannel playback channel */                25 /* multichannel playback channel */
 26 #define OXYGEN_DMA_MULTICH_ADDRESS      0x20       26 #define OXYGEN_DMA_MULTICH_ADDRESS      0x20
 27 #define OXYGEN_DMA_MULTICH_COUNT        0x24       27 #define OXYGEN_DMA_MULTICH_COUNT        0x24    /* 24 bits */
 28 #define OXYGEN_DMA_MULTICH_TCOUNT       0x28       28 #define OXYGEN_DMA_MULTICH_TCOUNT       0x28    /* 24 bits */
 29                                                    29 
 30 /* AC'97 (front panel) playback channel */         30 /* AC'97 (front panel) playback channel */
 31 #define OXYGEN_DMA_AC97_ADDRESS         0x30       31 #define OXYGEN_DMA_AC97_ADDRESS         0x30
 32 #define OXYGEN_DMA_AC97_COUNT           0x34       32 #define OXYGEN_DMA_AC97_COUNT           0x34
 33 #define OXYGEN_DMA_AC97_TCOUNT          0x36       33 #define OXYGEN_DMA_AC97_TCOUNT          0x36
 34                                                    34 
 35 /* all registers 0x00..0x36 return current pos     35 /* all registers 0x00..0x36 return current position on read */
 36                                                    36 
 37 #define OXYGEN_DMA_STATUS               0x40       37 #define OXYGEN_DMA_STATUS               0x40    /* 1 = running, 0 = stop */
 38 #define  OXYGEN_CHANNEL_A               0x01       38 #define  OXYGEN_CHANNEL_A               0x01
 39 #define  OXYGEN_CHANNEL_B               0x02       39 #define  OXYGEN_CHANNEL_B               0x02
 40 #define  OXYGEN_CHANNEL_C               0x04       40 #define  OXYGEN_CHANNEL_C               0x04
 41 #define  OXYGEN_CHANNEL_SPDIF           0x08       41 #define  OXYGEN_CHANNEL_SPDIF           0x08
 42 #define  OXYGEN_CHANNEL_MULTICH         0x10       42 #define  OXYGEN_CHANNEL_MULTICH         0x10
 43 #define  OXYGEN_CHANNEL_AC97            0x20       43 #define  OXYGEN_CHANNEL_AC97            0x20
 44                                                    44 
 45 #define OXYGEN_DMA_PAUSE                0x41       45 #define OXYGEN_DMA_PAUSE                0x41    /* 1 = pause */
 46 /* OXYGEN_CHANNEL_* */                             46 /* OXYGEN_CHANNEL_* */
 47                                                    47 
 48 #define OXYGEN_DMA_RESET                0x42       48 #define OXYGEN_DMA_RESET                0x42
 49 /* OXYGEN_CHANNEL_* */                             49 /* OXYGEN_CHANNEL_* */
 50                                                    50 
 51 #define OXYGEN_PLAY_CHANNELS            0x43       51 #define OXYGEN_PLAY_CHANNELS            0x43
 52 #define  OXYGEN_PLAY_CHANNELS_MASK      0x03       52 #define  OXYGEN_PLAY_CHANNELS_MASK      0x03
 53 #define  OXYGEN_PLAY_CHANNELS_2         0x00       53 #define  OXYGEN_PLAY_CHANNELS_2         0x00
 54 #define  OXYGEN_PLAY_CHANNELS_4         0x01       54 #define  OXYGEN_PLAY_CHANNELS_4         0x01
 55 #define  OXYGEN_PLAY_CHANNELS_6         0x02       55 #define  OXYGEN_PLAY_CHANNELS_6         0x02
 56 #define  OXYGEN_PLAY_CHANNELS_8         0x03       56 #define  OXYGEN_PLAY_CHANNELS_8         0x03
 57 #define  OXYGEN_DMA_A_BURST_MASK        0x04       57 #define  OXYGEN_DMA_A_BURST_MASK        0x04
 58 #define  OXYGEN_DMA_A_BURST_8           0x00       58 #define  OXYGEN_DMA_A_BURST_8           0x00    /* dwords */
 59 #define  OXYGEN_DMA_A_BURST_16          0x04       59 #define  OXYGEN_DMA_A_BURST_16          0x04
 60 #define  OXYGEN_DMA_MULTICH_BURST_MASK  0x08       60 #define  OXYGEN_DMA_MULTICH_BURST_MASK  0x08
 61 #define  OXYGEN_DMA_MULTICH_BURST_8     0x00       61 #define  OXYGEN_DMA_MULTICH_BURST_8     0x00
 62 #define  OXYGEN_DMA_MULTICH_BURST_16    0x08       62 #define  OXYGEN_DMA_MULTICH_BURST_16    0x08
 63                                                    63 
 64 #define OXYGEN_INTERRUPT_MASK           0x44       64 #define OXYGEN_INTERRUPT_MASK           0x44
 65 /* OXYGEN_CHANNEL_* */                             65 /* OXYGEN_CHANNEL_* */
 66 #define  OXYGEN_INT_SPDIF_IN_DETECT     0x0100     66 #define  OXYGEN_INT_SPDIF_IN_DETECT     0x0100
 67 #define  OXYGEN_INT_MCU                 0x0200     67 #define  OXYGEN_INT_MCU                 0x0200
 68 #define  OXYGEN_INT_2WIRE               0x0400     68 #define  OXYGEN_INT_2WIRE               0x0400
 69 #define  OXYGEN_INT_GPIO                0x0800     69 #define  OXYGEN_INT_GPIO                0x0800
 70 #define  OXYGEN_INT_MCB                 0x2000     70 #define  OXYGEN_INT_MCB                 0x2000
 71 #define  OXYGEN_INT_AC97                0x4000     71 #define  OXYGEN_INT_AC97                0x4000
 72                                                    72 
 73 #define OXYGEN_INTERRUPT_STATUS         0x46       73 #define OXYGEN_INTERRUPT_STATUS         0x46
 74 /* OXYGEN_CHANNEL_* amd OXYGEN_INT_* */            74 /* OXYGEN_CHANNEL_* amd OXYGEN_INT_* */
 75 #define  OXYGEN_INT_MIDI                0x1000     75 #define  OXYGEN_INT_MIDI                0x1000
 76                                                    76 
 77 #define OXYGEN_MISC                     0x48       77 #define OXYGEN_MISC                     0x48
 78 #define  OXYGEN_MISC_WRITE_PCI_SUBID    0x01       78 #define  OXYGEN_MISC_WRITE_PCI_SUBID    0x01
 79 #define  OXYGEN_MISC_LATENCY_3F         0x02       79 #define  OXYGEN_MISC_LATENCY_3F         0x02
 80 #define  OXYGEN_MISC_REC_C_FROM_SPDIF   0x04       80 #define  OXYGEN_MISC_REC_C_FROM_SPDIF   0x04
 81 #define  OXYGEN_MISC_REC_B_FROM_AC97    0x08       81 #define  OXYGEN_MISC_REC_B_FROM_AC97    0x08
 82 #define  OXYGEN_MISC_REC_A_FROM_MULTICH 0x10       82 #define  OXYGEN_MISC_REC_A_FROM_MULTICH 0x10
 83 #define  OXYGEN_MISC_PCI_MEM_W_1_CLOCK  0x20       83 #define  OXYGEN_MISC_PCI_MEM_W_1_CLOCK  0x20
 84 #define  OXYGEN_MISC_MIDI               0x40       84 #define  OXYGEN_MISC_MIDI               0x40
 85 #define  OXYGEN_MISC_CRYSTAL_MASK       0x80       85 #define  OXYGEN_MISC_CRYSTAL_MASK       0x80
 86 #define  OXYGEN_MISC_CRYSTAL_24576      0x00       86 #define  OXYGEN_MISC_CRYSTAL_24576      0x00
 87 #define  OXYGEN_MISC_CRYSTAL_27         0x80       87 #define  OXYGEN_MISC_CRYSTAL_27         0x80    /* MHz */
 88                                                    88 
 89 #define OXYGEN_REC_FORMAT               0x4a       89 #define OXYGEN_REC_FORMAT               0x4a
 90 #define  OXYGEN_REC_FORMAT_A_MASK       0x03       90 #define  OXYGEN_REC_FORMAT_A_MASK       0x03
 91 #define  OXYGEN_REC_FORMAT_A_SHIFT      0          91 #define  OXYGEN_REC_FORMAT_A_SHIFT      0
 92 #define  OXYGEN_REC_FORMAT_B_MASK       0x0c       92 #define  OXYGEN_REC_FORMAT_B_MASK       0x0c
 93 #define  OXYGEN_REC_FORMAT_B_SHIFT      2          93 #define  OXYGEN_REC_FORMAT_B_SHIFT      2
 94 #define  OXYGEN_REC_FORMAT_C_MASK       0x30       94 #define  OXYGEN_REC_FORMAT_C_MASK       0x30
 95 #define  OXYGEN_REC_FORMAT_C_SHIFT      4          95 #define  OXYGEN_REC_FORMAT_C_SHIFT      4
 96 #define  OXYGEN_FORMAT_16               0x00       96 #define  OXYGEN_FORMAT_16               0x00
 97 #define  OXYGEN_FORMAT_24               0x01       97 #define  OXYGEN_FORMAT_24               0x01
 98 #define  OXYGEN_FORMAT_32               0x02       98 #define  OXYGEN_FORMAT_32               0x02
 99                                                    99 
100 #define OXYGEN_PLAY_FORMAT              0x4b      100 #define OXYGEN_PLAY_FORMAT              0x4b
101 #define  OXYGEN_SPDIF_FORMAT_MASK       0x03      101 #define  OXYGEN_SPDIF_FORMAT_MASK       0x03
102 #define  OXYGEN_SPDIF_FORMAT_SHIFT      0         102 #define  OXYGEN_SPDIF_FORMAT_SHIFT      0
103 #define  OXYGEN_MULTICH_FORMAT_MASK     0x0c      103 #define  OXYGEN_MULTICH_FORMAT_MASK     0x0c
104 #define  OXYGEN_MULTICH_FORMAT_SHIFT    2         104 #define  OXYGEN_MULTICH_FORMAT_SHIFT    2
105 /* OXYGEN_FORMAT_* */                             105 /* OXYGEN_FORMAT_* */
106                                                   106 
107 #define OXYGEN_REC_CHANNELS             0x4c      107 #define OXYGEN_REC_CHANNELS             0x4c
108 #define  OXYGEN_REC_CHANNELS_MASK       0x07      108 #define  OXYGEN_REC_CHANNELS_MASK       0x07
109 #define  OXYGEN_REC_CHANNELS_2_2_2      0x00      109 #define  OXYGEN_REC_CHANNELS_2_2_2      0x00    /* DMA A, B, C */
110 #define  OXYGEN_REC_CHANNELS_4_2_2      0x01      110 #define  OXYGEN_REC_CHANNELS_4_2_2      0x01
111 #define  OXYGEN_REC_CHANNELS_6_0_2      0x02      111 #define  OXYGEN_REC_CHANNELS_6_0_2      0x02
112 #define  OXYGEN_REC_CHANNELS_6_2_0      0x03      112 #define  OXYGEN_REC_CHANNELS_6_2_0      0x03
113 #define  OXYGEN_REC_CHANNELS_8_0_0      0x04      113 #define  OXYGEN_REC_CHANNELS_8_0_0      0x04
114                                                   114 
115 #define OXYGEN_FUNCTION                 0x50      115 #define OXYGEN_FUNCTION                 0x50
116 #define  OXYGEN_FUNCTION_CLOCK_MASK     0x01      116 #define  OXYGEN_FUNCTION_CLOCK_MASK     0x01
117 #define  OXYGEN_FUNCTION_CLOCK_PLL      0x00      117 #define  OXYGEN_FUNCTION_CLOCK_PLL      0x00
118 #define  OXYGEN_FUNCTION_CLOCK_CRYSTAL  0x01      118 #define  OXYGEN_FUNCTION_CLOCK_CRYSTAL  0x01
119 #define  OXYGEN_FUNCTION_RESET_CODEC    0x02      119 #define  OXYGEN_FUNCTION_RESET_CODEC    0x02
120 #define  OXYGEN_FUNCTION_RESET_POL      0x04      120 #define  OXYGEN_FUNCTION_RESET_POL      0x04
121 #define  OXYGEN_FUNCTION_PWDN           0x08      121 #define  OXYGEN_FUNCTION_PWDN           0x08
122 #define  OXYGEN_FUNCTION_PWDN_EN        0x10      122 #define  OXYGEN_FUNCTION_PWDN_EN        0x10
123 #define  OXYGEN_FUNCTION_PWDN_POL       0x20      123 #define  OXYGEN_FUNCTION_PWDN_POL       0x20
124 #define  OXYGEN_FUNCTION_2WIRE_SPI_MASK 0x40      124 #define  OXYGEN_FUNCTION_2WIRE_SPI_MASK 0x40
125 #define  OXYGEN_FUNCTION_SPI            0x00      125 #define  OXYGEN_FUNCTION_SPI            0x00
126 #define  OXYGEN_FUNCTION_2WIRE          0x40      126 #define  OXYGEN_FUNCTION_2WIRE          0x40
127 #define  OXYGEN_FUNCTION_ENABLE_SPI_4_5 0x80      127 #define  OXYGEN_FUNCTION_ENABLE_SPI_4_5 0x80    /* 0 = EEPROM */
128                                                   128 
129 #define OXYGEN_I2S_MULTICH_FORMAT       0x60      129 #define OXYGEN_I2S_MULTICH_FORMAT       0x60
130 #define  OXYGEN_I2S_RATE_MASK           0x0007    130 #define  OXYGEN_I2S_RATE_MASK           0x0007  /* LRCK */
131 #define  OXYGEN_RATE_32000              0x0000    131 #define  OXYGEN_RATE_32000              0x0000
132 #define  OXYGEN_RATE_44100              0x0001    132 #define  OXYGEN_RATE_44100              0x0001
133 #define  OXYGEN_RATE_48000              0x0002    133 #define  OXYGEN_RATE_48000              0x0002
134 #define  OXYGEN_RATE_64000              0x0003    134 #define  OXYGEN_RATE_64000              0x0003
135 #define  OXYGEN_RATE_88200              0x0004    135 #define  OXYGEN_RATE_88200              0x0004
136 #define  OXYGEN_RATE_96000              0x0005    136 #define  OXYGEN_RATE_96000              0x0005
137 #define  OXYGEN_RATE_176400             0x0006    137 #define  OXYGEN_RATE_176400             0x0006
138 #define  OXYGEN_RATE_192000             0x0007    138 #define  OXYGEN_RATE_192000             0x0007
139 #define  OXYGEN_I2S_FORMAT_MASK         0x0008    139 #define  OXYGEN_I2S_FORMAT_MASK         0x0008
140 #define  OXYGEN_I2S_FORMAT_I2S          0x0000    140 #define  OXYGEN_I2S_FORMAT_I2S          0x0000
141 #define  OXYGEN_I2S_FORMAT_LJUST        0x0008    141 #define  OXYGEN_I2S_FORMAT_LJUST        0x0008
142 #define  OXYGEN_I2S_MCLK_MASK           0x0030    142 #define  OXYGEN_I2S_MCLK_MASK           0x0030  /* MCLK/LRCK */
143 #define  OXYGEN_I2S_MCLK_SHIFT          4         143 #define  OXYGEN_I2S_MCLK_SHIFT          4
144 #define  MCLK_128                       0         144 #define  MCLK_128                       0
145 #define  MCLK_256                       1         145 #define  MCLK_256                       1
146 #define  MCLK_512                       2         146 #define  MCLK_512                       2
147 #define  OXYGEN_I2S_MCLK(f)             (((f)     147 #define  OXYGEN_I2S_MCLK(f)             (((f) & 3) << OXYGEN_I2S_MCLK_SHIFT)
148 #define  OXYGEN_I2S_BITS_MASK           0x00c0    148 #define  OXYGEN_I2S_BITS_MASK           0x00c0
149 #define  OXYGEN_I2S_BITS_16             0x0000    149 #define  OXYGEN_I2S_BITS_16             0x0000
150 #define  OXYGEN_I2S_BITS_20             0x0040    150 #define  OXYGEN_I2S_BITS_20             0x0040
151 #define  OXYGEN_I2S_BITS_24             0x0080    151 #define  OXYGEN_I2S_BITS_24             0x0080
152 #define  OXYGEN_I2S_BITS_32             0x00c0    152 #define  OXYGEN_I2S_BITS_32             0x00c0
153 #define  OXYGEN_I2S_MASTER              0x0100    153 #define  OXYGEN_I2S_MASTER              0x0100
154 #define  OXYGEN_I2S_BCLK_MASK           0x0600    154 #define  OXYGEN_I2S_BCLK_MASK           0x0600  /* BCLK/LRCK */
155 #define  OXYGEN_I2S_BCLK_64             0x0000    155 #define  OXYGEN_I2S_BCLK_64             0x0000
156 #define  OXYGEN_I2S_BCLK_128            0x0200    156 #define  OXYGEN_I2S_BCLK_128            0x0200
157 #define  OXYGEN_I2S_BCLK_256            0x0400    157 #define  OXYGEN_I2S_BCLK_256            0x0400
158 #define  OXYGEN_I2S_MUTE_MCLK           0x0800    158 #define  OXYGEN_I2S_MUTE_MCLK           0x0800
159                                                   159 
160 #define OXYGEN_I2S_A_FORMAT             0x62      160 #define OXYGEN_I2S_A_FORMAT             0x62
161 #define OXYGEN_I2S_B_FORMAT             0x64      161 #define OXYGEN_I2S_B_FORMAT             0x64
162 #define OXYGEN_I2S_C_FORMAT             0x66      162 #define OXYGEN_I2S_C_FORMAT             0x66
163 /* like OXYGEN_I2S_MULTICH_FORMAT */              163 /* like OXYGEN_I2S_MULTICH_FORMAT */
164                                                   164 
165 #define OXYGEN_SPDIF_CONTROL            0x70      165 #define OXYGEN_SPDIF_CONTROL            0x70
166 #define  OXYGEN_SPDIF_OUT_ENABLE        0x0000    166 #define  OXYGEN_SPDIF_OUT_ENABLE        0x00000002
167 #define  OXYGEN_SPDIF_LOOPBACK          0x0000    167 #define  OXYGEN_SPDIF_LOOPBACK          0x00000004      /* in to out */
168 #define  OXYGEN_SPDIF_SENSE_MASK        0x0000    168 #define  OXYGEN_SPDIF_SENSE_MASK        0x00000008
169 #define  OXYGEN_SPDIF_LOCK_MASK         0x0000    169 #define  OXYGEN_SPDIF_LOCK_MASK         0x00000010
170 #define  OXYGEN_SPDIF_RATE_MASK         0x0000    170 #define  OXYGEN_SPDIF_RATE_MASK         0x00000020
171 #define  OXYGEN_SPDIF_SPDVALID          0x0000    171 #define  OXYGEN_SPDIF_SPDVALID          0x00000040
172 #define  OXYGEN_SPDIF_SENSE_PAR         0x0000    172 #define  OXYGEN_SPDIF_SENSE_PAR         0x00000200
173 #define  OXYGEN_SPDIF_LOCK_PAR          0x0000    173 #define  OXYGEN_SPDIF_LOCK_PAR          0x00000400
174 #define  OXYGEN_SPDIF_SENSE_STATUS      0x0000    174 #define  OXYGEN_SPDIF_SENSE_STATUS      0x00000800
175 #define  OXYGEN_SPDIF_LOCK_STATUS       0x0000    175 #define  OXYGEN_SPDIF_LOCK_STATUS       0x00001000
176 #define  OXYGEN_SPDIF_SENSE_INT         0x0000    176 #define  OXYGEN_SPDIF_SENSE_INT         0x00002000      /* r/wc */
177 #define  OXYGEN_SPDIF_LOCK_INT          0x0000    177 #define  OXYGEN_SPDIF_LOCK_INT          0x00004000      /* r/wc */
178 #define  OXYGEN_SPDIF_RATE_INT          0x0000    178 #define  OXYGEN_SPDIF_RATE_INT          0x00008000      /* r/wc */
179 #define  OXYGEN_SPDIF_IN_CLOCK_MASK     0x0001    179 #define  OXYGEN_SPDIF_IN_CLOCK_MASK     0x00010000
180 #define  OXYGEN_SPDIF_IN_CLOCK_96       0x0000    180 #define  OXYGEN_SPDIF_IN_CLOCK_96       0x00000000      /* <= 96 kHz */
181 #define  OXYGEN_SPDIF_IN_CLOCK_192      0x0001    181 #define  OXYGEN_SPDIF_IN_CLOCK_192      0x00010000      /* > 96 kHz */
182 #define  OXYGEN_SPDIF_OUT_RATE_MASK     0x0700    182 #define  OXYGEN_SPDIF_OUT_RATE_MASK     0x07000000
183 #define  OXYGEN_SPDIF_OUT_RATE_SHIFT    24        183 #define  OXYGEN_SPDIF_OUT_RATE_SHIFT    24
184 /* OXYGEN_RATE_* << OXYGEN_SPDIF_OUT_RATE_SHIF    184 /* OXYGEN_RATE_* << OXYGEN_SPDIF_OUT_RATE_SHIFT */
185                                                   185 
186 #define OXYGEN_SPDIF_OUTPUT_BITS        0x74      186 #define OXYGEN_SPDIF_OUTPUT_BITS        0x74
187 #define  OXYGEN_SPDIF_NONAUDIO          0x0000    187 #define  OXYGEN_SPDIF_NONAUDIO          0x00000002
188 #define  OXYGEN_SPDIF_C                 0x0000    188 #define  OXYGEN_SPDIF_C                 0x00000004
189 #define  OXYGEN_SPDIF_PREEMPHASIS       0x0000    189 #define  OXYGEN_SPDIF_PREEMPHASIS       0x00000008
190 #define  OXYGEN_SPDIF_CATEGORY_MASK     0x0000    190 #define  OXYGEN_SPDIF_CATEGORY_MASK     0x000007f0
191 #define  OXYGEN_SPDIF_CATEGORY_SHIFT    4         191 #define  OXYGEN_SPDIF_CATEGORY_SHIFT    4
192 #define  OXYGEN_SPDIF_ORIGINAL          0x0000    192 #define  OXYGEN_SPDIF_ORIGINAL          0x00000800
193 #define  OXYGEN_SPDIF_CS_RATE_MASK      0x0000    193 #define  OXYGEN_SPDIF_CS_RATE_MASK      0x0000f000
194 #define  OXYGEN_SPDIF_CS_RATE_SHIFT     12        194 #define  OXYGEN_SPDIF_CS_RATE_SHIFT     12
195 #define  OXYGEN_SPDIF_V                 0x0001    195 #define  OXYGEN_SPDIF_V                 0x00010000      /* 0 = valid */
196                                                   196 
197 #define OXYGEN_SPDIF_INPUT_BITS         0x78      197 #define OXYGEN_SPDIF_INPUT_BITS         0x78
198 /* 32 bits, IEC958_AES_* */                       198 /* 32 bits, IEC958_AES_* */
199                                                   199 
200 #define OXYGEN_EEPROM_CONTROL           0x80      200 #define OXYGEN_EEPROM_CONTROL           0x80
201 #define  OXYGEN_EEPROM_ADDRESS_MASK     0x7f      201 #define  OXYGEN_EEPROM_ADDRESS_MASK     0x7f
202 #define  OXYGEN_EEPROM_DIR_MASK         0x80      202 #define  OXYGEN_EEPROM_DIR_MASK         0x80
203 #define  OXYGEN_EEPROM_DIR_READ         0x00      203 #define  OXYGEN_EEPROM_DIR_READ         0x00
204 #define  OXYGEN_EEPROM_DIR_WRITE        0x80      204 #define  OXYGEN_EEPROM_DIR_WRITE        0x80
205                                                   205 
206 #define OXYGEN_EEPROM_STATUS            0x81      206 #define OXYGEN_EEPROM_STATUS            0x81
207 #define  OXYGEN_EEPROM_VALID            0x40      207 #define  OXYGEN_EEPROM_VALID            0x40
208 #define  OXYGEN_EEPROM_BUSY             0x80      208 #define  OXYGEN_EEPROM_BUSY             0x80
209                                                   209 
210 #define OXYGEN_EEPROM_DATA              0x82      210 #define OXYGEN_EEPROM_DATA              0x82    /* 16 bits */
211                                                   211 
212 #define OXYGEN_2WIRE_CONTROL            0x90      212 #define OXYGEN_2WIRE_CONTROL            0x90
213 #define  OXYGEN_2WIRE_DIR_MASK          0x01      213 #define  OXYGEN_2WIRE_DIR_MASK          0x01
214 #define  OXYGEN_2WIRE_DIR_WRITE         0x00      214 #define  OXYGEN_2WIRE_DIR_WRITE         0x00
215 #define  OXYGEN_2WIRE_DIR_READ          0x01      215 #define  OXYGEN_2WIRE_DIR_READ          0x01
216 #define  OXYGEN_2WIRE_ADDRESS_MASK      0xfe      216 #define  OXYGEN_2WIRE_ADDRESS_MASK      0xfe    /* slave device address */
217 #define  OXYGEN_2WIRE_ADDRESS_SHIFT     1         217 #define  OXYGEN_2WIRE_ADDRESS_SHIFT     1
218                                                   218 
219 #define OXYGEN_2WIRE_MAP                0x91      219 #define OXYGEN_2WIRE_MAP                0x91    /* address, 8 bits */
220 #define OXYGEN_2WIRE_DATA               0x92      220 #define OXYGEN_2WIRE_DATA               0x92    /* data, 16 bits */
221                                                   221 
222 #define OXYGEN_2WIRE_BUS_STATUS         0x94      222 #define OXYGEN_2WIRE_BUS_STATUS         0x94
223 #define  OXYGEN_2WIRE_BUSY              0x0001    223 #define  OXYGEN_2WIRE_BUSY              0x0001
224 #define  OXYGEN_2WIRE_LENGTH_MASK       0x0002    224 #define  OXYGEN_2WIRE_LENGTH_MASK       0x0002
225 #define  OXYGEN_2WIRE_LENGTH_8          0x0000    225 #define  OXYGEN_2WIRE_LENGTH_8          0x0000
226 #define  OXYGEN_2WIRE_LENGTH_16         0x0002    226 #define  OXYGEN_2WIRE_LENGTH_16         0x0002
227 #define  OXYGEN_2WIRE_MANUAL_READ       0x0004    227 #define  OXYGEN_2WIRE_MANUAL_READ       0x0004  /* 0 = auto read */
228 #define  OXYGEN_2WIRE_WRITE_MAP_ONLY    0x0008    228 #define  OXYGEN_2WIRE_WRITE_MAP_ONLY    0x0008
229 #define  OXYGEN_2WIRE_SLAVE_AD_MASK     0x0030    229 #define  OXYGEN_2WIRE_SLAVE_AD_MASK     0x0030  /* AD0, AD1 */
230 #define  OXYGEN_2WIRE_INTERRUPT_MASK    0x0040    230 #define  OXYGEN_2WIRE_INTERRUPT_MASK    0x0040  /* 0 = int. if not responding */
231 #define  OXYGEN_2WIRE_SLAVE_NO_RESPONSE 0x0080    231 #define  OXYGEN_2WIRE_SLAVE_NO_RESPONSE 0x0080
232 #define  OXYGEN_2WIRE_SPEED_MASK        0x0100    232 #define  OXYGEN_2WIRE_SPEED_MASK        0x0100
233 #define  OXYGEN_2WIRE_SPEED_STANDARD    0x0000    233 #define  OXYGEN_2WIRE_SPEED_STANDARD    0x0000
234 #define  OXYGEN_2WIRE_SPEED_FAST        0x0100    234 #define  OXYGEN_2WIRE_SPEED_FAST        0x0100
235 #define  OXYGEN_2WIRE_CLOCK_SYNC        0x0200    235 #define  OXYGEN_2WIRE_CLOCK_SYNC        0x0200
236 #define  OXYGEN_2WIRE_BUS_RESET         0x0400    236 #define  OXYGEN_2WIRE_BUS_RESET         0x0400
237                                                   237 
238 #define OXYGEN_SPI_CONTROL              0x98      238 #define OXYGEN_SPI_CONTROL              0x98
239 #define  OXYGEN_SPI_BUSY                0x01      239 #define  OXYGEN_SPI_BUSY                0x01    /* read */
240 #define  OXYGEN_SPI_TRIGGER             0x01      240 #define  OXYGEN_SPI_TRIGGER             0x01    /* write */
241 #define  OXYGEN_SPI_DATA_LENGTH_MASK    0x02      241 #define  OXYGEN_SPI_DATA_LENGTH_MASK    0x02
242 #define  OXYGEN_SPI_DATA_LENGTH_2       0x00      242 #define  OXYGEN_SPI_DATA_LENGTH_2       0x00
243 #define  OXYGEN_SPI_DATA_LENGTH_3       0x02      243 #define  OXYGEN_SPI_DATA_LENGTH_3       0x02
244 #define  OXYGEN_SPI_CLOCK_MASK          0x0c      244 #define  OXYGEN_SPI_CLOCK_MASK          0x0c
245 #define  OXYGEN_SPI_CLOCK_160           0x00      245 #define  OXYGEN_SPI_CLOCK_160           0x00    /* ns */
246 #define  OXYGEN_SPI_CLOCK_320           0x04      246 #define  OXYGEN_SPI_CLOCK_320           0x04
247 #define  OXYGEN_SPI_CLOCK_640           0x08      247 #define  OXYGEN_SPI_CLOCK_640           0x08
248 #define  OXYGEN_SPI_CLOCK_1280          0x0c      248 #define  OXYGEN_SPI_CLOCK_1280          0x0c
249 #define  OXYGEN_SPI_CODEC_MASK          0x70      249 #define  OXYGEN_SPI_CODEC_MASK          0x70    /* 0..5 */
250 #define  OXYGEN_SPI_CODEC_SHIFT         4         250 #define  OXYGEN_SPI_CODEC_SHIFT         4
251 #define  OXYGEN_SPI_CEN_MASK            0x80      251 #define  OXYGEN_SPI_CEN_MASK            0x80
252 #define  OXYGEN_SPI_CEN_LATCH_CLOCK_LO  0x00      252 #define  OXYGEN_SPI_CEN_LATCH_CLOCK_LO  0x00
253 #define  OXYGEN_SPI_CEN_LATCH_CLOCK_HI  0x80      253 #define  OXYGEN_SPI_CEN_LATCH_CLOCK_HI  0x80
254                                                   254 
255 #define OXYGEN_SPI_DATA1                0x99      255 #define OXYGEN_SPI_DATA1                0x99
256 #define OXYGEN_SPI_DATA2                0x9a      256 #define OXYGEN_SPI_DATA2                0x9a
257 #define OXYGEN_SPI_DATA3                0x9b      257 #define OXYGEN_SPI_DATA3                0x9b
258                                                   258 
259 #define OXYGEN_MPU401                   0xa0      259 #define OXYGEN_MPU401                   0xa0
260                                                   260 
261 #define OXYGEN_MPU401_CONTROL           0xa2      261 #define OXYGEN_MPU401_CONTROL           0xa2
262 #define  OXYGEN_MPU401_LOOPBACK         0x01      262 #define  OXYGEN_MPU401_LOOPBACK         0x01    /* TXD to RXD */
263                                                   263 
264 #define OXYGEN_GPI_DATA                 0xa4      264 #define OXYGEN_GPI_DATA                 0xa4
265 /* bits 0..5 = pin XGPI0..XGPI5 */                265 /* bits 0..5 = pin XGPI0..XGPI5 */
266                                                   266 
267 #define OXYGEN_GPI_INTERRUPT_MASK       0xa5      267 #define OXYGEN_GPI_INTERRUPT_MASK       0xa5
268 /* bits 0..5, 1 = enable */                       268 /* bits 0..5, 1 = enable */
269                                                   269 
270 #define OXYGEN_GPIO_DATA                0xa6      270 #define OXYGEN_GPIO_DATA                0xa6
271 /* bits 0..9 */                                   271 /* bits 0..9 */
272                                                   272 
273 #define OXYGEN_GPIO_CONTROL             0xa8      273 #define OXYGEN_GPIO_CONTROL             0xa8
274 /* bits 0..9, 0 = input, 1 = output */            274 /* bits 0..9, 0 = input, 1 = output */
275 #define  OXYGEN_GPIO1_XSLAVE_RDY        0x8000    275 #define  OXYGEN_GPIO1_XSLAVE_RDY        0x8000
276                                                   276 
277 #define OXYGEN_GPIO_INTERRUPT_MASK      0xaa      277 #define OXYGEN_GPIO_INTERRUPT_MASK      0xaa
278 /* bits 0..9, 1 = enable */                       278 /* bits 0..9, 1 = enable */
279                                                   279 
280 #define OXYGEN_DEVICE_SENSE             0xac      280 #define OXYGEN_DEVICE_SENSE             0xac
281 #define  OXYGEN_HEAD_PHONE_DETECT       0x01      281 #define  OXYGEN_HEAD_PHONE_DETECT       0x01
282 #define  OXYGEN_HEAD_PHONE_MASK         0x06      282 #define  OXYGEN_HEAD_PHONE_MASK         0x06
283 #define  OXYGEN_HEAD_PHONE_PASSIVE_SPK  0x00      283 #define  OXYGEN_HEAD_PHONE_PASSIVE_SPK  0x00
284 #define  OXYGEN_HEAD_PHONE_HP           0x02      284 #define  OXYGEN_HEAD_PHONE_HP           0x02
285 #define  OXYGEN_HEAD_PHONE_ACTIVE_SPK   0x04      285 #define  OXYGEN_HEAD_PHONE_ACTIVE_SPK   0x04
286                                                   286 
287 #define OXYGEN_MCU_2WIRE_DATA           0xb0      287 #define OXYGEN_MCU_2WIRE_DATA           0xb0
288                                                   288 
289 #define OXYGEN_MCU_2WIRE_MAP            0xb2      289 #define OXYGEN_MCU_2WIRE_MAP            0xb2
290                                                   290 
291 #define OXYGEN_MCU_2WIRE_STATUS         0xb3      291 #define OXYGEN_MCU_2WIRE_STATUS         0xb3
292 #define  OXYGEN_MCU_2WIRE_BUSY          0x01      292 #define  OXYGEN_MCU_2WIRE_BUSY          0x01
293 #define  OXYGEN_MCU_2WIRE_LENGTH_MASK   0x06      293 #define  OXYGEN_MCU_2WIRE_LENGTH_MASK   0x06
294 #define  OXYGEN_MCU_2WIRE_LENGTH_1      0x00      294 #define  OXYGEN_MCU_2WIRE_LENGTH_1      0x00
295 #define  OXYGEN_MCU_2WIRE_LENGTH_2      0x02      295 #define  OXYGEN_MCU_2WIRE_LENGTH_2      0x02
296 #define  OXYGEN_MCU_2WIRE_LENGTH_3      0x04      296 #define  OXYGEN_MCU_2WIRE_LENGTH_3      0x04
297 #define  OXYGEN_MCU_2WIRE_WRITE         0x08      297 #define  OXYGEN_MCU_2WIRE_WRITE         0x08    /* r/wc */
298 #define  OXYGEN_MCU_2WIRE_READ          0x10      298 #define  OXYGEN_MCU_2WIRE_READ          0x10    /* r/wc */
299 #define  OXYGEN_MCU_2WIRE_DRV_XACT_FAIL 0x20      299 #define  OXYGEN_MCU_2WIRE_DRV_XACT_FAIL 0x20    /* r/wc */
300 #define  OXYGEN_MCU_2WIRE_RESET         0x40      300 #define  OXYGEN_MCU_2WIRE_RESET         0x40
301                                                   301 
302 #define OXYGEN_MCU_2WIRE_CONTROL        0xb4      302 #define OXYGEN_MCU_2WIRE_CONTROL        0xb4
303 #define  OXYGEN_MCU_2WIRE_DRV_ACK       0x01      303 #define  OXYGEN_MCU_2WIRE_DRV_ACK       0x01
304 #define  OXYGEN_MCU_2WIRE_DRV_XACT      0x02      304 #define  OXYGEN_MCU_2WIRE_DRV_XACT      0x02
305 #define  OXYGEN_MCU_2WIRE_INT_MASK      0x04      305 #define  OXYGEN_MCU_2WIRE_INT_MASK      0x04
306 #define  OXYGEN_MCU_2WIRE_SYNC_MASK     0x08      306 #define  OXYGEN_MCU_2WIRE_SYNC_MASK     0x08
307 #define  OXYGEN_MCU_2WIRE_SYNC_RDY_PIN  0x00      307 #define  OXYGEN_MCU_2WIRE_SYNC_RDY_PIN  0x00
308 #define  OXYGEN_MCU_2WIRE_SYNC_DATA     0x08      308 #define  OXYGEN_MCU_2WIRE_SYNC_DATA     0x08
309 #define  OXYGEN_MCU_2WIRE_ADDRESS_MASK  0x30      309 #define  OXYGEN_MCU_2WIRE_ADDRESS_MASK  0x30
310 #define  OXYGEN_MCU_2WIRE_ADDRESS_10    0x00      310 #define  OXYGEN_MCU_2WIRE_ADDRESS_10    0x00
311 #define  OXYGEN_MCU_2WIRE_ADDRESS_12    0x10      311 #define  OXYGEN_MCU_2WIRE_ADDRESS_12    0x10
312 #define  OXYGEN_MCU_2WIRE_ADDRESS_14    0x20      312 #define  OXYGEN_MCU_2WIRE_ADDRESS_14    0x20
313 #define  OXYGEN_MCU_2WIRE_ADDRESS_16    0x30      313 #define  OXYGEN_MCU_2WIRE_ADDRESS_16    0x30
314 #define  OXYGEN_MCU_2WIRE_INT_POL       0x40      314 #define  OXYGEN_MCU_2WIRE_INT_POL       0x40
315 #define  OXYGEN_MCU_2WIRE_SYNC_ENABLE   0x80      315 #define  OXYGEN_MCU_2WIRE_SYNC_ENABLE   0x80
316                                                   316 
317 #define OXYGEN_PLAY_ROUTING             0xc0      317 #define OXYGEN_PLAY_ROUTING             0xc0
318 #define  OXYGEN_PLAY_MUTE01             0x0001    318 #define  OXYGEN_PLAY_MUTE01             0x0001
319 #define  OXYGEN_PLAY_MUTE23             0x0002    319 #define  OXYGEN_PLAY_MUTE23             0x0002
320 #define  OXYGEN_PLAY_MUTE45             0x0004    320 #define  OXYGEN_PLAY_MUTE45             0x0004
321 #define  OXYGEN_PLAY_MUTE67             0x0008    321 #define  OXYGEN_PLAY_MUTE67             0x0008
322 #define  OXYGEN_PLAY_MUTE_MASK          0x000f    322 #define  OXYGEN_PLAY_MUTE_MASK          0x000f
323 #define  OXYGEN_PLAY_MULTICH_MASK       0x0010    323 #define  OXYGEN_PLAY_MULTICH_MASK       0x0010
324 #define  OXYGEN_PLAY_MULTICH_I2S_DAC    0x0000    324 #define  OXYGEN_PLAY_MULTICH_I2S_DAC    0x0000
325 #define  OXYGEN_PLAY_MULTICH_AC97       0x0010    325 #define  OXYGEN_PLAY_MULTICH_AC97       0x0010
326 #define  OXYGEN_PLAY_SPDIF_MASK         0x00e0    326 #define  OXYGEN_PLAY_SPDIF_MASK         0x00e0
327 #define  OXYGEN_PLAY_SPDIF_SPDIF        0x0000    327 #define  OXYGEN_PLAY_SPDIF_SPDIF        0x0000
328 #define  OXYGEN_PLAY_SPDIF_MULTICH_01   0x0020    328 #define  OXYGEN_PLAY_SPDIF_MULTICH_01   0x0020
329 #define  OXYGEN_PLAY_SPDIF_MULTICH_23   0x0040    329 #define  OXYGEN_PLAY_SPDIF_MULTICH_23   0x0040
330 #define  OXYGEN_PLAY_SPDIF_MULTICH_45   0x0060    330 #define  OXYGEN_PLAY_SPDIF_MULTICH_45   0x0060
331 #define  OXYGEN_PLAY_SPDIF_MULTICH_67   0x0080    331 #define  OXYGEN_PLAY_SPDIF_MULTICH_67   0x0080
332 #define  OXYGEN_PLAY_SPDIF_REC_A        0x00a0    332 #define  OXYGEN_PLAY_SPDIF_REC_A        0x00a0
333 #define  OXYGEN_PLAY_SPDIF_REC_B        0x00c0    333 #define  OXYGEN_PLAY_SPDIF_REC_B        0x00c0
334 #define  OXYGEN_PLAY_SPDIF_I2S_ADC_3    0x00e0    334 #define  OXYGEN_PLAY_SPDIF_I2S_ADC_3    0x00e0
335 #define  OXYGEN_PLAY_DAC0_SOURCE_MASK   0x0300    335 #define  OXYGEN_PLAY_DAC0_SOURCE_MASK   0x0300
336 #define  OXYGEN_PLAY_DAC0_SOURCE_SHIFT  8         336 #define  OXYGEN_PLAY_DAC0_SOURCE_SHIFT  8
337 #define  OXYGEN_PLAY_DAC1_SOURCE_MASK   0x0c00    337 #define  OXYGEN_PLAY_DAC1_SOURCE_MASK   0x0c00
338 #define  OXYGEN_PLAY_DAC1_SOURCE_SHIFT  10        338 #define  OXYGEN_PLAY_DAC1_SOURCE_SHIFT  10
339 #define  OXYGEN_PLAY_DAC2_SOURCE_MASK   0x3000    339 #define  OXYGEN_PLAY_DAC2_SOURCE_MASK   0x3000
340 #define  OXYGEN_PLAY_DAC2_SOURCE_SHIFT  12        340 #define  OXYGEN_PLAY_DAC2_SOURCE_SHIFT  12
341 #define  OXYGEN_PLAY_DAC3_SOURCE_MASK   0xc000    341 #define  OXYGEN_PLAY_DAC3_SOURCE_MASK   0xc000
342 #define  OXYGEN_PLAY_DAC3_SOURCE_SHIFT  14        342 #define  OXYGEN_PLAY_DAC3_SOURCE_SHIFT  14
343                                                   343 
344 #define OXYGEN_REC_ROUTING              0xc2      344 #define OXYGEN_REC_ROUTING              0xc2
345 #define  OXYGEN_MUTE_I2S_ADC_1          0x01      345 #define  OXYGEN_MUTE_I2S_ADC_1          0x01
346 #define  OXYGEN_MUTE_I2S_ADC_2          0x02      346 #define  OXYGEN_MUTE_I2S_ADC_2          0x02
347 #define  OXYGEN_MUTE_I2S_ADC_3          0x04      347 #define  OXYGEN_MUTE_I2S_ADC_3          0x04
348 #define  OXYGEN_REC_A_ROUTE_MASK        0x08      348 #define  OXYGEN_REC_A_ROUTE_MASK        0x08
349 #define  OXYGEN_REC_A_ROUTE_I2S_ADC_1   0x00      349 #define  OXYGEN_REC_A_ROUTE_I2S_ADC_1   0x00
350 #define  OXYGEN_REC_A_ROUTE_AC97_0      0x08      350 #define  OXYGEN_REC_A_ROUTE_AC97_0      0x08
351 #define  OXYGEN_REC_B_ROUTE_MASK        0x10      351 #define  OXYGEN_REC_B_ROUTE_MASK        0x10
352 #define  OXYGEN_REC_B_ROUTE_I2S_ADC_2   0x00      352 #define  OXYGEN_REC_B_ROUTE_I2S_ADC_2   0x00
353 #define  OXYGEN_REC_B_ROUTE_AC97_1      0x10      353 #define  OXYGEN_REC_B_ROUTE_AC97_1      0x10
354 #define  OXYGEN_REC_C_ROUTE_MASK        0x20      354 #define  OXYGEN_REC_C_ROUTE_MASK        0x20
355 #define  OXYGEN_REC_C_ROUTE_SPDIF       0x00      355 #define  OXYGEN_REC_C_ROUTE_SPDIF       0x00
356 #define  OXYGEN_REC_C_ROUTE_I2S_ADC_3   0x20      356 #define  OXYGEN_REC_C_ROUTE_I2S_ADC_3   0x20
357                                                   357 
358 #define OXYGEN_ADC_MONITOR              0xc3      358 #define OXYGEN_ADC_MONITOR              0xc3
359 #define  OXYGEN_ADC_MONITOR_A           0x01      359 #define  OXYGEN_ADC_MONITOR_A           0x01
360 #define  OXYGEN_ADC_MONITOR_A_HALF_VOL  0x02      360 #define  OXYGEN_ADC_MONITOR_A_HALF_VOL  0x02
361 #define  OXYGEN_ADC_MONITOR_B           0x04      361 #define  OXYGEN_ADC_MONITOR_B           0x04
362 #define  OXYGEN_ADC_MONITOR_B_HALF_VOL  0x08      362 #define  OXYGEN_ADC_MONITOR_B_HALF_VOL  0x08
363 #define  OXYGEN_ADC_MONITOR_C           0x10      363 #define  OXYGEN_ADC_MONITOR_C           0x10
364 #define  OXYGEN_ADC_MONITOR_C_HALF_VOL  0x20      364 #define  OXYGEN_ADC_MONITOR_C_HALF_VOL  0x20
365                                                   365 
366 #define OXYGEN_A_MONITOR_ROUTING        0xc4      366 #define OXYGEN_A_MONITOR_ROUTING        0xc4
367 #define  OXYGEN_A_MONITOR_ROUTE_0_MASK  0x03      367 #define  OXYGEN_A_MONITOR_ROUTE_0_MASK  0x03
368 #define  OXYGEN_A_MONITOR_ROUTE_0_SHIFT 0         368 #define  OXYGEN_A_MONITOR_ROUTE_0_SHIFT 0
369 #define  OXYGEN_A_MONITOR_ROUTE_1_MASK  0x0c      369 #define  OXYGEN_A_MONITOR_ROUTE_1_MASK  0x0c
370 #define  OXYGEN_A_MONITOR_ROUTE_1_SHIFT 2         370 #define  OXYGEN_A_MONITOR_ROUTE_1_SHIFT 2
371 #define  OXYGEN_A_MONITOR_ROUTE_2_MASK  0x30      371 #define  OXYGEN_A_MONITOR_ROUTE_2_MASK  0x30
372 #define  OXYGEN_A_MONITOR_ROUTE_2_SHIFT 4         372 #define  OXYGEN_A_MONITOR_ROUTE_2_SHIFT 4
373 #define  OXYGEN_A_MONITOR_ROUTE_3_MASK  0xc0      373 #define  OXYGEN_A_MONITOR_ROUTE_3_MASK  0xc0
374 #define  OXYGEN_A_MONITOR_ROUTE_3_SHIFT 6         374 #define  OXYGEN_A_MONITOR_ROUTE_3_SHIFT 6
375                                                   375 
376 #define OXYGEN_AC97_CONTROL             0xd0      376 #define OXYGEN_AC97_CONTROL             0xd0
377 #define  OXYGEN_AC97_COLD_RESET         0x0001    377 #define  OXYGEN_AC97_COLD_RESET         0x0001
378 #define  OXYGEN_AC97_SUSPENDED          0x0002    378 #define  OXYGEN_AC97_SUSPENDED          0x0002  /* read */
379 #define  OXYGEN_AC97_RESUME             0x0002    379 #define  OXYGEN_AC97_RESUME             0x0002  /* write */
380 #define  OXYGEN_AC97_CLOCK_DISABLE      0x0004    380 #define  OXYGEN_AC97_CLOCK_DISABLE      0x0004
381 #define  OXYGEN_AC97_NO_CODEC_0         0x0008    381 #define  OXYGEN_AC97_NO_CODEC_0         0x0008
382 #define  OXYGEN_AC97_CODEC_0            0x0010    382 #define  OXYGEN_AC97_CODEC_0            0x0010
383 #define  OXYGEN_AC97_CODEC_1            0x0020    383 #define  OXYGEN_AC97_CODEC_1            0x0020
384                                                   384 
385 #define OXYGEN_AC97_INTERRUPT_MASK      0xd2      385 #define OXYGEN_AC97_INTERRUPT_MASK      0xd2
386 #define  OXYGEN_AC97_INT_READ_DONE      0x01      386 #define  OXYGEN_AC97_INT_READ_DONE      0x01
387 #define  OXYGEN_AC97_INT_WRITE_DONE     0x02      387 #define  OXYGEN_AC97_INT_WRITE_DONE     0x02
388 #define  OXYGEN_AC97_INT_CODEC_0        0x10      388 #define  OXYGEN_AC97_INT_CODEC_0        0x10
389 #define  OXYGEN_AC97_INT_CODEC_1        0x20      389 #define  OXYGEN_AC97_INT_CODEC_1        0x20
390                                                   390 
391 #define OXYGEN_AC97_INTERRUPT_STATUS    0xd3      391 #define OXYGEN_AC97_INTERRUPT_STATUS    0xd3
392 /* OXYGEN_AC97_INT_* */                           392 /* OXYGEN_AC97_INT_* */
393                                                   393 
394 #define OXYGEN_AC97_OUT_CONFIG          0xd4      394 #define OXYGEN_AC97_OUT_CONFIG          0xd4
395 #define  OXYGEN_AC97_CODEC1_SLOT3       0x0000    395 #define  OXYGEN_AC97_CODEC1_SLOT3       0x00000001
396 #define  OXYGEN_AC97_CODEC1_SLOT3_VSR   0x0000    396 #define  OXYGEN_AC97_CODEC1_SLOT3_VSR   0x00000002
397 #define  OXYGEN_AC97_CODEC1_SLOT4       0x0000    397 #define  OXYGEN_AC97_CODEC1_SLOT4       0x00000010
398 #define  OXYGEN_AC97_CODEC1_SLOT4_VSR   0x0000    398 #define  OXYGEN_AC97_CODEC1_SLOT4_VSR   0x00000020
399 #define  OXYGEN_AC97_CODEC0_FRONTL      0x0000    399 #define  OXYGEN_AC97_CODEC0_FRONTL      0x00000100
400 #define  OXYGEN_AC97_CODEC0_FRONTR      0x0000    400 #define  OXYGEN_AC97_CODEC0_FRONTR      0x00000200
401 #define  OXYGEN_AC97_CODEC0_SIDEL       0x0000    401 #define  OXYGEN_AC97_CODEC0_SIDEL       0x00000400
402 #define  OXYGEN_AC97_CODEC0_SIDER       0x0000    402 #define  OXYGEN_AC97_CODEC0_SIDER       0x00000800
403 #define  OXYGEN_AC97_CODEC0_CENTER      0x0000    403 #define  OXYGEN_AC97_CODEC0_CENTER      0x00001000
404 #define  OXYGEN_AC97_CODEC0_BASE        0x0000    404 #define  OXYGEN_AC97_CODEC0_BASE        0x00002000
405 #define  OXYGEN_AC97_CODEC0_REARL       0x0000    405 #define  OXYGEN_AC97_CODEC0_REARL       0x00004000
406 #define  OXYGEN_AC97_CODEC0_REARR       0x0000    406 #define  OXYGEN_AC97_CODEC0_REARR       0x00008000
407                                                   407 
408 #define OXYGEN_AC97_IN_CONFIG           0xd8      408 #define OXYGEN_AC97_IN_CONFIG           0xd8
409 #define  OXYGEN_AC97_CODEC1_LINEL       0x0000    409 #define  OXYGEN_AC97_CODEC1_LINEL       0x00000001
410 #define  OXYGEN_AC97_CODEC1_LINEL_VSR   0x0000    410 #define  OXYGEN_AC97_CODEC1_LINEL_VSR   0x00000002
411 #define  OXYGEN_AC97_CODEC1_LINEL_16    0x0000    411 #define  OXYGEN_AC97_CODEC1_LINEL_16    0x00000000
412 #define  OXYGEN_AC97_CODEC1_LINEL_18    0x0000    412 #define  OXYGEN_AC97_CODEC1_LINEL_18    0x00000004
413 #define  OXYGEN_AC97_CODEC1_LINEL_20    0x0000    413 #define  OXYGEN_AC97_CODEC1_LINEL_20    0x00000008
414 #define  OXYGEN_AC97_CODEC1_LINER       0x0000    414 #define  OXYGEN_AC97_CODEC1_LINER       0x00000010
415 #define  OXYGEN_AC97_CODEC1_LINER_VSR   0x0000    415 #define  OXYGEN_AC97_CODEC1_LINER_VSR   0x00000020
416 #define  OXYGEN_AC97_CODEC1_LINER_16    0x0000    416 #define  OXYGEN_AC97_CODEC1_LINER_16    0x00000000
417 #define  OXYGEN_AC97_CODEC1_LINER_18    0x0000    417 #define  OXYGEN_AC97_CODEC1_LINER_18    0x00000040
418 #define  OXYGEN_AC97_CODEC1_LINER_20    0x0000    418 #define  OXYGEN_AC97_CODEC1_LINER_20    0x00000080
419 #define  OXYGEN_AC97_CODEC0_LINEL       0x0000    419 #define  OXYGEN_AC97_CODEC0_LINEL       0x00000100
420 #define  OXYGEN_AC97_CODEC0_LINER       0x0000    420 #define  OXYGEN_AC97_CODEC0_LINER       0x00000200
421                                                   421 
422 #define OXYGEN_AC97_REGS                0xdc      422 #define OXYGEN_AC97_REGS                0xdc
423 #define  OXYGEN_AC97_REG_DATA_MASK      0x0000    423 #define  OXYGEN_AC97_REG_DATA_MASK      0x0000ffff
424 #define  OXYGEN_AC97_REG_ADDR_MASK      0x007f    424 #define  OXYGEN_AC97_REG_ADDR_MASK      0x007f0000
425 #define  OXYGEN_AC97_REG_ADDR_SHIFT     16        425 #define  OXYGEN_AC97_REG_ADDR_SHIFT     16
426 #define  OXYGEN_AC97_REG_DIR_MASK       0x0080    426 #define  OXYGEN_AC97_REG_DIR_MASK       0x00800000
427 #define  OXYGEN_AC97_REG_DIR_WRITE      0x0000    427 #define  OXYGEN_AC97_REG_DIR_WRITE      0x00000000
428 #define  OXYGEN_AC97_REG_DIR_READ       0x0080    428 #define  OXYGEN_AC97_REG_DIR_READ       0x00800000
429 #define  OXYGEN_AC97_REG_CODEC_MASK     0x0100    429 #define  OXYGEN_AC97_REG_CODEC_MASK     0x01000000
430 #define  OXYGEN_AC97_REG_CODEC_SHIFT    24        430 #define  OXYGEN_AC97_REG_CODEC_SHIFT    24
431                                                   431 
432 #define OXYGEN_TEST                     0xe0      432 #define OXYGEN_TEST                     0xe0
433 #define  OXYGEN_TEST_RAM_SUCCEEDED      0x01      433 #define  OXYGEN_TEST_RAM_SUCCEEDED      0x01
434 #define  OXYGEN_TEST_PLAYBACK_RAM       0x02      434 #define  OXYGEN_TEST_PLAYBACK_RAM       0x02
435 #define  OXYGEN_TEST_RECORD_RAM         0x04      435 #define  OXYGEN_TEST_RECORD_RAM         0x04
436 #define  OXYGEN_TEST_PLL                0x08      436 #define  OXYGEN_TEST_PLL                0x08
437 #define  OXYGEN_TEST_2WIRE_LOOPBACK     0x10      437 #define  OXYGEN_TEST_2WIRE_LOOPBACK     0x10
438                                                   438 
439 #define OXYGEN_DMA_FLUSH                0xe1      439 #define OXYGEN_DMA_FLUSH                0xe1
440 /* OXYGEN_CHANNEL_* */                            440 /* OXYGEN_CHANNEL_* */
441                                                   441 
442 #define OXYGEN_CODEC_VERSION            0xe4      442 #define OXYGEN_CODEC_VERSION            0xe4
443 #define  OXYGEN_CODEC_ID_MASK           0x07      443 #define  OXYGEN_CODEC_ID_MASK           0x07
444                                                   444 
445 #define OXYGEN_REVISION                 0xe6      445 #define OXYGEN_REVISION                 0xe6
446 #define  OXYGEN_PACKAGE_ID_MASK         0x0007    446 #define  OXYGEN_PACKAGE_ID_MASK         0x0007
447 #define  OXYGEN_PACKAGE_ID_8786         0x0004    447 #define  OXYGEN_PACKAGE_ID_8786         0x0004
448 #define  OXYGEN_PACKAGE_ID_8787         0x0006    448 #define  OXYGEN_PACKAGE_ID_8787         0x0006
449 #define  OXYGEN_PACKAGE_ID_8788         0x0007    449 #define  OXYGEN_PACKAGE_ID_8788         0x0007
450 #define  OXYGEN_REVISION_MASK           0xfff8    450 #define  OXYGEN_REVISION_MASK           0xfff8
451 #define  OXYGEN_REVISION_2              0x0008    451 #define  OXYGEN_REVISION_2              0x0008
452                                                   452 
453 #define OXYGEN_OFFSIN_48K               0xe8      453 #define OXYGEN_OFFSIN_48K               0xe8
454 #define OXYGEN_OFFSBASE_48K             0xe9      454 #define OXYGEN_OFFSBASE_48K             0xe9
455 #define  OXYGEN_OFFSBASE_MASK           0x0fff    455 #define  OXYGEN_OFFSBASE_MASK           0x0fff
456 #define OXYGEN_OFFSIN_44K               0xec      456 #define OXYGEN_OFFSIN_44K               0xec
457 #define OXYGEN_OFFSBASE_44K             0xed      457 #define OXYGEN_OFFSBASE_44K             0xed
458                                                   458 
459 #endif                                            459 #endif
460                                                   460 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php