Lines Matching refs:avm

60 	return (readreg(cs->hw.avm.isac, offset));  in ReadISAC()
66 writereg(cs->hw.avm.isac, offset, value); in WriteISAC()
72 read_fifo(cs->hw.avm.isacfifo, data, size); in ReadISACfifo()
78 write_fifo(cs->hw.avm.isacfifo, data, size); in WriteISACfifo()
84 return (readreg(cs->hw.avm.hscx[hscx], offset)); in ReadHSCX()
90 writereg(cs->hw.avm.hscx[hscx], offset, value); in WriteHSCX()
97 #define READHSCX(cs, nr, reg) readreg(cs->hw.avm.hscx[nr], reg)
98 #define WRITEHSCX(cs, nr, reg, data) writereg(cs->hw.avm.hscx[nr], reg, data)
99 #define READHSCXFIFO(cs, nr, ptr, cnt) read_fifo(cs->hw.avm.hscxfifo[nr], ptr, cnt)
100 #define WRITEHSCXFIFO(cs, nr, ptr, cnt) write_fifo(cs->hw.avm.hscxfifo[nr], ptr, cnt)
114 while (((sval = bytein(cs->hw.avm.cfg_reg)) & 0xf) != 0x7) { in avm_a1_interrupt()
116 byteout(cs->hw.avm.cfg_reg, 0x1E); in avm_a1_interrupt()
117 sval = bytein(cs->hw.avm.cfg_reg); in avm_a1_interrupt()
121 val = readreg(cs->hw.avm.hscx[1], HSCX_ISTA); in avm_a1_interrupt()
126 val = readreg(cs->hw.avm.isac, ISAC_ISTA); in avm_a1_interrupt()
131 writereg(cs->hw.avm.hscx[0], HSCX_MASK, 0xFF); in avm_a1_interrupt()
132 writereg(cs->hw.avm.hscx[1], HSCX_MASK, 0xFF); in avm_a1_interrupt()
133 writereg(cs->hw.avm.isac, ISAC_MASK, 0xFF); in avm_a1_interrupt()
134 writereg(cs->hw.avm.isac, ISAC_MASK, 0x0); in avm_a1_interrupt()
135 writereg(cs->hw.avm.hscx[0], HSCX_MASK, 0x0); in avm_a1_interrupt()
136 writereg(cs->hw.avm.hscx[1], HSCX_MASK, 0x0); in avm_a1_interrupt()
142 release_region(cs->hw.avm.cfg_reg, 8); in release_ioregs()
144 release_region(cs->hw.avm.isac + 32, 32); in release_ioregs()
146 release_region(cs->hw.avm.isacfifo, 1); in release_ioregs()
148 release_region(cs->hw.avm.hscx[0] + 32, 32); in release_ioregs()
150 release_region(cs->hw.avm.hscxfifo[0], 1); in release_ioregs()
152 release_region(cs->hw.avm.hscx[1] + 32, 32); in release_ioregs()
154 release_region(cs->hw.avm.hscxfifo[1], 1); in release_ioregs()
168 byteout(cs->hw.avm.cfg_reg, 0x16); in AVM_card_msg()
169 byteout(cs->hw.avm.cfg_reg, 0x1E); in AVM_card_msg()
191 cs->hw.avm.cfg_reg = card->para[1] + 0x1800; in setup_avm_a1()
192 cs->hw.avm.isac = card->para[1] + 0x1400 - 0x20; in setup_avm_a1()
193 cs->hw.avm.hscx[0] = card->para[1] + 0x400 - 0x20; in setup_avm_a1()
194 cs->hw.avm.hscx[1] = card->para[1] + 0xc00 - 0x20; in setup_avm_a1()
195 cs->hw.avm.isacfifo = card->para[1] + 0x1000; in setup_avm_a1()
196 cs->hw.avm.hscxfifo[0] = card->para[1]; in setup_avm_a1()
197 cs->hw.avm.hscxfifo[1] = card->para[1] + 0x800; in setup_avm_a1()
199 if (check_region((cs->hw.avm.cfg_reg), 8)) { in setup_avm_a1()
203 cs->hw.avm.cfg_reg, in setup_avm_a1()
204 cs->hw.avm.cfg_reg + 8); in setup_avm_a1()
207 request_region(cs->hw.avm.cfg_reg, 8, "avm cfg"); in setup_avm_a1()
209 if (check_region((cs->hw.avm.isac + 32), 32)) { in setup_avm_a1()
213 cs->hw.avm.isac + 32, in setup_avm_a1()
214 cs->hw.avm.isac + 64); in setup_avm_a1()
218 request_region(cs->hw.avm.isac + 32, 32, "HiSax isac"); in setup_avm_a1()
220 if (check_region((cs->hw.avm.isacfifo), 1)) { in setup_avm_a1()
224 cs->hw.avm.isacfifo); in setup_avm_a1()
228 request_region(cs->hw.avm.isacfifo, 1, "HiSax isac fifo"); in setup_avm_a1()
230 if (check_region((cs->hw.avm.hscx[0]) + 32, 32)) { in setup_avm_a1()
234 cs->hw.avm.hscx[0] + 32, in setup_avm_a1()
235 cs->hw.avm.hscx[0] + 64); in setup_avm_a1()
239 request_region(cs->hw.avm.hscx[0] + 32, 32, "HiSax hscx A"); in setup_avm_a1()
241 if (check_region(cs->hw.avm.hscxfifo[0], 1)) { in setup_avm_a1()
245 cs->hw.avm.hscxfifo[0]); in setup_avm_a1()
249 request_region(cs->hw.avm.hscxfifo[0], 1, "HiSax hscx A fifo"); in setup_avm_a1()
251 if (check_region(cs->hw.avm.hscx[1] + 32, 32)) { in setup_avm_a1()
255 cs->hw.avm.hscx[1] + 32, in setup_avm_a1()
256 cs->hw.avm.hscx[1] + 64); in setup_avm_a1()
260 request_region(cs->hw.avm.hscx[1] + 32, 32, "HiSax hscx B"); in setup_avm_a1()
262 if (check_region(cs->hw.avm.hscxfifo[1], 1)) { in setup_avm_a1()
266 cs->hw.avm.hscxfifo[1]); in setup_avm_a1()
270 request_region(cs->hw.avm.hscxfifo[1], 1, "HiSax hscx B fifo"); in setup_avm_a1()
273 byteout(cs->hw.avm.cfg_reg, 0x0); in setup_avm_a1()
276 byteout(cs->hw.avm.cfg_reg, 0x1); in setup_avm_a1()
278 byteout(cs->hw.avm.cfg_reg, 0x0); in setup_avm_a1()
283 byteout(cs->hw.avm.cfg_reg + 1, val); in setup_avm_a1()
285 byteout(cs->hw.avm.cfg_reg, 0x0); in setup_avm_a1()
289 val = bytein(cs->hw.avm.cfg_reg); in setup_avm_a1()
291 cs->hw.avm.cfg_reg, val); in setup_avm_a1()
292 val = bytein(cs->hw.avm.cfg_reg + 3); in setup_avm_a1()
294 cs->hw.avm.cfg_reg + 3, val); in setup_avm_a1()
295 val = bytein(cs->hw.avm.cfg_reg + 2); in setup_avm_a1()
297 cs->hw.avm.cfg_reg + 2, val); in setup_avm_a1()
298 val = bytein(cs->hw.avm.cfg_reg); in setup_avm_a1()
300 cs->hw.avm.cfg_reg, val); in setup_avm_a1()
305 cs->hw.avm.cfg_reg); in setup_avm_a1()
308 cs->hw.avm.isac + 32, cs->hw.avm.isacfifo); in setup_avm_a1()
311 cs->hw.avm.hscx[0] + 32, cs->hw.avm.hscxfifo[0], in setup_avm_a1()
312 cs->hw.avm.hscx[1] + 32, cs->hw.avm.hscxfifo[1]); in setup_avm_a1()