Go to the documentation of this file. 1 #ifndef __SOUND_CS8427_H
2 #define __SOUND_CS8427_H
27 #define CS8427_BASE_ADDR 0x10
29 #define CS8427_REG_AUTOINC 0x80
30 #define CS8427_REG_CONTROL1 0x01
31 #define CS8427_REG_CONTROL2 0x02
32 #define CS8427_REG_DATAFLOW 0x03
33 #define CS8427_REG_CLOCKSOURCE 0x04
34 #define CS8427_REG_SERIALINPUT 0x05
35 #define CS8427_REG_SERIALOUTPUT 0x06
36 #define CS8427_REG_INT1STATUS 0x07
37 #define CS8427_REG_INT2STATUS 0x08
38 #define CS8427_REG_INT1MASK 0x09
39 #define CS8427_REG_INT1MODEMSB 0x0a
40 #define CS8427_REG_INT1MODELSB 0x0b
41 #define CS8427_REG_INT2MASK 0x0c
42 #define CS8427_REG_INT2MODEMSB 0x0d
43 #define CS8427_REG_INT2MODELSB 0x0e
44 #define CS8427_REG_RECVCSDATA 0x0f
45 #define CS8427_REG_RECVERRORS 0x10
46 #define CS8427_REG_RECVERRMASK 0x11
47 #define CS8427_REG_CSDATABUF 0x12
48 #define CS8427_REG_UDATABUF 0x13
49 #define CS8427_REG_QSUBCODE 0x14
50 #define CS8427_REG_OMCKRMCKRATIO 0x1e
51 #define CS8427_REG_CORU_DATABUF 0x20
52 #define CS8427_REG_ID_AND_VER 0x7f
55 #define CS8427_SWCLK (1<<7)
56 #define CS8427_VSET (1<<6)
57 #define CS8427_MUTESAO (1<<5)
58 #define CS8427_MUTEAES (1<<4)
59 #define CS8427_INTMASK (3<<1)
60 #define CS8427_INTACTHIGH (0<<1)
61 #define CS8427_INTACTLOW (1<<1)
62 #define CS8427_INTOPENDRAIN (2<<1)
63 #define CS8427_TCBLDIR (1<<0)
66 #define CS8427_HOLDMASK (3<<5)
67 #define CS8427_HOLDLASTSAMPLE (0<<5)
68 #define CS8427_HOLDZERO (1<<5)
69 #define CS8427_HOLDNOCHANGE (2<<5)
70 #define CS8427_RMCKF (1<<4)
71 #define CS8427_MMR (1<<3)
72 #define CS8427_MMT (1<<2)
73 #define CS8427_MMTCS (1<<1)
74 #define CS8427_MMTLR (1<<0)
77 #define CS8427_TXOFF (1<<6)
78 #define CS8427_AESBP (1<<5)
79 #define CS8427_TXDMASK (3<<3)
80 #define CS8427_TXDSERIAL (1<<3)
81 #define CS8427_TXAES3DRECEIVER (2<<3)
82 #define CS8427_SPDMASK (3<<1)
83 #define CS8427_SPDSERIAL (1<<1)
84 #define CS8427_SPDAES3RECEIVER (2<<1)
87 #define CS8427_RUN (1<<6)
88 #define CS8427_CLKMASK (3<<4)
89 #define CS8427_CLK256 (0<<4)
90 #define CS8427_CLK384 (1<<4)
91 #define CS8427_CLK512 (2<<4)
92 #define CS8427_OUTC (1<<3)
93 #define CS8427_INC (1<<2)
94 #define CS8427_RXDMASK (3<<0)
95 #define CS8427_RXDILRCK (0<<0)
96 #define CS8427_RXDAES3INPUT (1<<0)
97 #define CS8427_EXTCLOCKRESET (2<<0)
98 #define CS8427_EXTCLOCK (3<<0)
101 #define CS8427_SIMS (1<<7)
102 #define CS8427_SISF (1<<6)
103 #define CS8427_SIRESMASK (3<<4)
104 #define CS8427_SIRES24 (0<<4)
105 #define CS8427_SIRES20 (1<<4)
106 #define CS8427_SIRES16 (2<<4)
107 #define CS8427_SIJUST (1<<3)
108 #define CS8427_SIDEL (1<<2)
109 #define CS8427_SISPOL (1<<1)
110 #define CS8427_SILRPOL (1<<0)
113 #define CS8427_SOMS (1<<7)
114 #define CS8427_SOSF (1<<6)
115 #define CS8427_SORESMASK (3<<4)
116 #define CS8427_SORES24 (0<<4)
117 #define CS8427_SORES20 (1<<4)
118 #define CS8427_SORES16 (2<<4)
119 #define CS8427_SORESDIRECT (2<<4)
120 #define CS8427_SOJUST (1<<3)
121 #define CS8427_SODEL (1<<2)
122 #define CS8427_SOSPOL (1<<1)
123 #define CS8427_SOLRPOL (1<<0)
126 #define CS8427_TSLIP (1<<7)
127 #define CS8427_OSLIP (1<<6)
128 #define CS8427_DETC (1<<2)
129 #define CS8427_EFTC (1<<1)
130 #define CS8427_RERR (1<<0)
133 #define CS8427_DETU (1<<3)
134 #define CS8427_EFTU (1<<2)
135 #define CS8427_QCH (1<<1)
141 #define CS8427_INTMODERISINGMSB 0
142 #define CS8427_INTMODERESINGLSB 0
143 #define CS8427_INTMODEFALLINGMSB 0
144 #define CS8427_INTMODEFALLINGLSB 1
145 #define CS8427_INTMODELEVELMSB 1
146 #define CS8427_INTMODELEVELLSB 0
149 #define CS8427_AUXMASK (15<<4)
150 #define CS8427_AUXSHIFT 4
151 #define CS8427_PRO (1<<3)
152 #define CS8427_AUDIO (1<<2)
153 #define CS8427_COPY (1<<1)
154 #define CS8427_ORIG (1<<0)
158 #define CS8427_QCRC (1<<6)
159 #define CS8427_CCRC (1<<5)
160 #define CS8427_UNLOCK (1<<4)
161 #define CS8427_V (1<<3)
162 #define CS8427_CONF (1<<2)
163 #define CS8427_BIP (1<<1)
164 #define CS8427_PAR (1<<0)
167 #define CS8427_BSEL (1<<5)
168 #define CS8427_CBMR (1<<4)
169 #define CS8427_DETCI (1<<3)
170 #define CS8427_EFTCI (1<<2)
171 #define CS8427_CAM (1<<1)
172 #define CS8427_CHS (1<<0)
175 #define CS8427_UD (1<<4)
176 #define CS8427_UBMMASK (3<<2)
177 #define CS8427_UBMZEROS (0<<2)
178 #define CS8427_UBMBLOCK (1<<2)
179 #define CS8427_DETUI (1<<1)
180 #define CS8427_EFTUI (1<<1)
183 #define CS8427_IDMASK (15<<4)
184 #define CS8427_IDSHIFT 4
185 #define CS8427_VERMASK (15<<0)
186 #define CS8427_VERSHIFT 0
187 #define CS8427_VER8427A 0x71