Lines Matching refs:teles0

100 	return (readisac(cs->hw.teles0.membase, offset));  in ReadISAC()
106 writeisac(cs->hw.teles0.membase, offset, value); in WriteISAC()
112 read_fifo_isac(cs->hw.teles0.membase, data, size); in ReadISACfifo()
118 write_fifo_isac(cs->hw.teles0.membase, data, size); in WriteISACfifo()
124 return (readhscx(cs->hw.teles0.membase, hscx, offset)); in ReadHSCX()
130 writehscx(cs->hw.teles0.membase, hscx, offset, value); in WriteHSCX()
137 #define READHSCX(cs, nr, reg) readhscx(cs->hw.teles0.membase, nr, reg)
138 #define WRITEHSCX(cs, nr, reg, data) writehscx(cs->hw.teles0.membase, nr, reg, data)
139 #define READHSCXFIFO(cs, nr, ptr, cnt) read_fifo_hscx(cs->hw.teles0.membase, nr, ptr, cnt)
140 #define WRITEHSCXFIFO(cs, nr, ptr, cnt) write_fifo_hscx(cs->hw.teles0.membase, nr, ptr, cnt)
153 val = readhscx(cs->hw.teles0.membase, 1, HSCX_ISTA); in teles0_interrupt()
157 val = readisac(cs->hw.teles0.membase, ISAC_ISTA); in teles0_interrupt()
162 val = readhscx(cs->hw.teles0.membase, 1, HSCX_ISTA); in teles0_interrupt()
168 val = readisac(cs->hw.teles0.membase, ISAC_ISTA); in teles0_interrupt()
174 writehscx(cs->hw.teles0.membase, 0, HSCX_MASK, 0xFF); in teles0_interrupt()
175 writehscx(cs->hw.teles0.membase, 1, HSCX_MASK, 0xFF); in teles0_interrupt()
176 writeisac(cs->hw.teles0.membase, ISAC_MASK, 0xFF); in teles0_interrupt()
177 writeisac(cs->hw.teles0.membase, ISAC_MASK, 0x0); in teles0_interrupt()
178 writehscx(cs->hw.teles0.membase, 0, HSCX_MASK, 0x0); in teles0_interrupt()
179 writehscx(cs->hw.teles0.membase, 1, HSCX_MASK, 0x0); in teles0_interrupt()
187 if (cs->hw.teles0.cfg_reg) in release_io_teles0()
188 release_region(cs->hw.teles0.cfg_reg, 8); in release_io_teles0()
189 iounmap(cs->hw.teles0.membase); in release_io_teles0()
190 release_mem_region(cs->hw.teles0.phymem, TELES_IOMEM_SIZE); in release_io_teles0()
198 if (cs->hw.teles0.cfg_reg) { in reset_teles0()
228 cfval |= ((cs->hw.teles0.phymem >> 9) & 0xF0); in reset_teles0()
229 byteout(cs->hw.teles0.cfg_reg + 4, cfval); in reset_teles0()
231 byteout(cs->hw.teles0.cfg_reg + 4, cfval | 1); in reset_teles0()
234 writeb(0, cs->hw.teles0.membase + 0x80); mb(); in reset_teles0()
236 writeb(1, cs->hw.teles0.membase + 0x80); mb(); in reset_teles0()
279 cs->hw.teles0.cfg_reg = card->para[2]; in setup_teles0()
281 cs->hw.teles0.cfg_reg = 0; in setup_teles0()
290 if (cs->hw.teles0.cfg_reg) { in setup_teles0()
291 if (!request_region(cs->hw.teles0.cfg_reg, 8, "teles cfg")) { in setup_teles0()
295 cs->hw.teles0.cfg_reg, in setup_teles0()
296 cs->hw.teles0.cfg_reg + 8); in setup_teles0()
300 if (cs->hw.teles0.cfg_reg) { in setup_teles0()
301 if ((val = bytein(cs->hw.teles0.cfg_reg + 0)) != 0x51) { in setup_teles0()
303 cs->hw.teles0.cfg_reg + 0, val); in setup_teles0()
304 release_region(cs->hw.teles0.cfg_reg, 8); in setup_teles0()
307 if ((val = bytein(cs->hw.teles0.cfg_reg + 1)) != 0x93) { in setup_teles0()
309 cs->hw.teles0.cfg_reg + 1, val); in setup_teles0()
310 release_region(cs->hw.teles0.cfg_reg, 8); in setup_teles0()
313 val = bytein(cs->hw.teles0.cfg_reg + 2); /* 0x1e=without AB in setup_teles0()
319 cs->hw.teles0.cfg_reg + 2, val); in setup_teles0()
320 release_region(cs->hw.teles0.cfg_reg, 8); in setup_teles0()
326 cs->hw.teles0.phymem = card->para[1]; in setup_teles0()
327 if (!request_mem_region(cs->hw.teles0.phymem, TELES_IOMEM_SIZE, "teles iomem")) { in setup_teles0()
331 cs->hw.teles0.phymem, in setup_teles0()
332 cs->hw.teles0.phymem + TELES_IOMEM_SIZE); in setup_teles0()
333 if (cs->hw.teles0.cfg_reg) in setup_teles0()
334 release_region(cs->hw.teles0.cfg_reg, 8); in setup_teles0()
337 cs->hw.teles0.membase = ioremap(cs->hw.teles0.phymem, TELES_IOMEM_SIZE); in setup_teles0()
341 cs->hw.teles0.membase, cs->hw.teles0.cfg_reg); in setup_teles0()