Go to the documentation of this file.
49 #ifndef _LINUX_3780I_H
50 #define _LINUX_3780I_H
55 #define DSP_IsaSlaveControl 0x0000
56 #define DSP_IsaSlaveStatus 0x0001
57 #define DSP_ConfigAddress 0x0002
58 #define DSP_ConfigData 0x0003
59 #define DSP_HBridgeControl 0x0002
60 #define DSP_MsaAddrLow 0x0004
61 #define DSP_MsaAddrHigh 0x0006
62 #define DSP_MsaDataDSISHigh 0x0008
63 #define DSP_MsaDataISLow 0x000A
64 #define DSP_ReadAndClear 0x000C
65 #define DSP_Interrupt 0x000E
70 unsigned char ConfigMode:1;
76 unsigned short EnableDspInt:1;
77 unsigned short MemAutoInc:1;
78 unsigned short IoAutoInc:1;
79 unsigned short DiagnosticMode:1;
80 unsigned short IsaPacingTimer:12;
85 #define DSP_UartCfg1Index 0x0003
86 #define DSP_UartCfg2Index 0x0004
87 #define DSP_HBridgeCfg1Index 0x0007
88 #define DSP_HBridgeCfg2Index 0x0008
89 #define DSP_BusMasterCfg1Index 0x0009
90 #define DSP_BusMasterCfg2Index 0x000A
91 #define DSP_IsaProtCfgIndex 0x000F
92 #define DSP_PowerMgCfgIndex 0x0010
93 #define DSP_HBusTimerCfgIndex 0x0011
96 unsigned char IrqActiveLow:1;
97 unsigned char IrqPulse:1;
99 unsigned char BaseIO:2;
104 unsigned char Enable:1;
109 unsigned char IrqActiveLow:1;
110 unsigned char IrqPulse:1;
112 unsigned char AccessMode:1;
117 unsigned char Enable:1;
124 unsigned char NumTransfers:2;
125 unsigned char ReRequest:2;
126 unsigned char MEMCS16:1;
130 unsigned char IsaMemCmdWidth:2;
136 unsigned char GateIOCHRDY:1;
141 unsigned char Enable:1;
146 unsigned char LoadValue:8;
152 #define DSP_ChipID 0x80000000
153 #define DSP_MspBootDomain 0x80000580
154 #define DSP_LBusTimeoutDisable 0x80000580
155 #define DSP_ClockControl_1 0x8000058A
156 #define DSP_ClockControl_2 0x8000058C
157 #define DSP_ChipReset 0x80000588
158 #define DSP_GpioModeControl_15_8 0x80000082
159 #define DSP_GpioDriverEnable_15_8 0x80000076
160 #define DSP_GpioOutputData_15_8 0x80000072
164 unsigned short Halt:1;
165 unsigned short ResetCore:1;
170 unsigned short DisableTimeout:1;
176 unsigned short SerialPort1:1;
177 unsigned short SerialPort2:1;
178 unsigned short SerialPort3:1;
179 unsigned short Gpio:1;
180 unsigned short Dma:1;
181 unsigned short SoundBlaster:1;
182 unsigned short Uart:1;
183 unsigned short Midi:1;
184 unsigned short IsaMaster:1;
189 unsigned short N_Divisor:6;
191 unsigned short M_Multiplier:6;
196 unsigned short PllBypass:1;
201 unsigned short Latch8:1;
202 unsigned short Latch9:1;
203 unsigned short Latch10:1;
204 unsigned short Latch11:1;
205 unsigned short Latch12:1;
206 unsigned short Latch13:1;
207 unsigned short Latch14:1;
208 unsigned short Latch15:1;
209 unsigned short Mask8:1;
210 unsigned short Mask9:1;
211 unsigned short Mask10:1;
212 unsigned short Mask11:1;
213 unsigned short Mask12:1;
214 unsigned short Mask13:1;
215 unsigned short Mask14:1;
216 unsigned short Mask15:1;
220 unsigned short Enable8:1;
221 unsigned short Enable9:1;
222 unsigned short Enable10:1;
223 unsigned short Enable11:1;
224 unsigned short Enable12:1;
225 unsigned short Enable13:1;
226 unsigned short Enable14:1;
227 unsigned short Enable15:1;
228 unsigned short Mask8:1;
229 unsigned short Mask9:1;
230 unsigned short Mask10:1;
231 unsigned short Mask11:1;
232 unsigned short Mask12:1;
233 unsigned short Mask13:1;
234 unsigned short Mask14:1;
235 unsigned short Mask15:1;
239 unsigned short GpioMode8:2;
240 unsigned short GpioMode9:2;
241 unsigned short GpioMode10:2;
242 unsigned short GpioMode11:2;
243 unsigned short GpioMode12:2;
244 unsigned short GpioMode13:2;
245 unsigned short GpioMode14:2;
246 unsigned short GpioMode15:2;
250 #define MW_ADC_MASK 0x0001
251 #define MW_AIC2_MASK 0x0006
252 #define MW_MIDI_MASK 0x0008
253 #define MW_CDDAC_MASK 0x8001
254 #define MW_AIC1_MASK 0xE006
255 #define MW_UART_MASK 0xE00A
256 #define MW_ACI_MASK 0xE00B
321 unsigned short *pIrqMap,
322 unsigned short *pDmaMap);
327 unsigned uCount,
unsigned long ulDSPAddr);
329 void __user *pvBuffer,
unsigned uCount,
330 unsigned long ulDSPAddr);
332 unsigned uCount,
unsigned long ulDSPAddr);
334 unsigned uCount,
unsigned long ulDSPAddr);
336 unsigned uCount,
unsigned long ulDSPAddr);
338 unsigned long ulMsaAddr);
340 unsigned long ulMsaAddr,
unsigned short usValue);
342 unsigned short *pusIPCSource);
345 #define MKWORD(var) (*((unsigned short *)(&var)))
346 #define MKBYTE(var) (*((unsigned char *)(&var)))
348 #define WriteMsaCfg(addr,value) dsp3780I_WriteMsaCfg(usDspBaseIO,addr,value)
349 #define ReadMsaCfg(addr) dsp3780I_ReadMsaCfg(usDspBaseIO,addr)
350 #define WriteGenCfg(index,value) dsp3780I_WriteGenCfg(usDspBaseIO,index,value)
351 #define ReadGenCfg(index) dsp3780I_ReadGenCfg(usDspBaseIO,index)
353 #define InWordDsp(index) inw(usDspBaseIO+index)
354 #define InByteDsp(index) inb(usDspBaseIO+index)
355 #define OutWordDsp(index,value) outw(value,usDspBaseIO+index)
356 #define OutByteDsp(index,value) outb(value,usDspBaseIO+index)