Lines Matching refs:saphir
84 return (readreg(cs->hw.saphir.ale, cs->hw.saphir.isac, offset)); in ReadISAC()
90 writereg(cs->hw.saphir.ale, cs->hw.saphir.isac, offset, value); in WriteISAC()
96 readfifo(cs->hw.saphir.ale, cs->hw.saphir.isac, 0, data, size); in ReadISACfifo()
102 writefifo(cs->hw.saphir.ale, cs->hw.saphir.isac, 0, data, size); in WriteISACfifo()
108 return (readreg(cs->hw.saphir.ale, cs->hw.saphir.hscx, in ReadHSCX()
115 writereg(cs->hw.saphir.ale, cs->hw.saphir.hscx, in WriteHSCX()
119 #define READHSCX(cs, nr, reg) readreg(cs->hw.saphir.ale, \
120 cs->hw.saphir.hscx, reg + (nr ? 0x40 : 0))
121 #define WRITEHSCX(cs, nr, reg, data) writereg(cs->hw.saphir.ale, \
122 cs->hw.saphir.hscx, reg + (nr ? 0x40 : 0), data)
124 #define READHSCXFIFO(cs, nr, ptr, cnt) readfifo(cs->hw.saphir.ale, \
125 cs->hw.saphir.hscx, (nr ? 0x40 : 0), ptr, cnt)
127 #define WRITEHSCXFIFO(cs, nr, ptr, cnt) writefifo(cs->hw.saphir.ale, \
128 cs->hw.saphir.hscx, (nr ? 0x40 : 0), ptr, cnt)
142 val = readreg(cs->hw.saphir.ale, cs->hw.saphir.hscx, HSCX_ISTA + 0x40); in saphir_interrupt()
146 val = readreg(cs->hw.saphir.ale, cs->hw.saphir.isac, ISAC_ISTA); in saphir_interrupt()
150 val = readreg(cs->hw.saphir.ale, cs->hw.saphir.hscx, HSCX_ISTA + 0x40); in saphir_interrupt()
156 val = readreg(cs->hw.saphir.ale, cs->hw.saphir.isac, ISAC_ISTA); in saphir_interrupt()
163 if (cs->hw.saphir.timer.function) in saphir_interrupt()
164 mod_timer(&cs->hw.saphir.timer, jiffies+1*HZ); in saphir_interrupt()
167 writereg(cs->hw.saphir.ale, cs->hw.saphir.hscx, HSCX_MASK, 0xFF); in saphir_interrupt()
168 writereg(cs->hw.saphir.ale, cs->hw.saphir.hscx, HSCX_MASK + 0x40, 0xFF); in saphir_interrupt()
169 writereg(cs->hw.saphir.ale, cs->hw.saphir.isac, ISAC_MASK, 0xFF); in saphir_interrupt()
170 writereg(cs->hw.saphir.ale, cs->hw.saphir.isac, ISAC_MASK, 0); in saphir_interrupt()
171 writereg(cs->hw.saphir.ale, cs->hw.saphir.hscx, HSCX_MASK, 0); in saphir_interrupt()
172 writereg(cs->hw.saphir.ale, cs->hw.saphir.hscx, HSCX_MASK + 0x40, 0); in saphir_interrupt()
180 mod_timer(&cs->hw.saphir.timer, jiffies+1*HZ); in SaphirWatchDog()
190 byteout(cs->hw.saphir.cfg_reg + IRQ_REG, 0xff); in release_io_saphir()
191 del_timer(&cs->hw.saphir.timer); in release_io_saphir()
192 cs->hw.saphir.timer.function = NULL; in release_io_saphir()
194 if (cs->hw.saphir.cfg_reg) in release_io_saphir()
195 release_region(cs->hw.saphir.cfg_reg, 6); in release_io_saphir()
223 byteout(cs->hw.saphir.cfg_reg + IRQ_REG, irq_val); in saphir_reset()
226 byteout(cs->hw.saphir.cfg_reg + RESET_REG, 1); in saphir_reset()
229 byteout(cs->hw.saphir.cfg_reg + RESET_REG, 0); in saphir_reset()
233 byteout(cs->hw.saphir.cfg_reg + IRQ_REG, irq_val); in saphir_reset()
234 byteout(cs->hw.saphir.cfg_reg + SPARE_REG, 0x02); in saphir_reset()
270 cs->hw.saphir.cfg_reg = card->para[1]; in setup_saphir()
271 cs->hw.saphir.isac = card->para[1] + ISAC_DATA; in setup_saphir()
272 cs->hw.saphir.hscx = card->para[1] + HSCX_DATA; in setup_saphir()
273 cs->hw.saphir.ale = card->para[1] + ADDRESS_REG; in setup_saphir()
275 if (check_region((cs->hw.saphir.cfg_reg), 6)) { in setup_saphir()
279 cs->hw.saphir.cfg_reg, in setup_saphir()
280 cs->hw.saphir.cfg_reg + 5); in setup_saphir()
283 request_region(cs->hw.saphir.cfg_reg,6, "saphir"); in setup_saphir()
288 cs->hw.saphir.cfg_reg); in setup_saphir()
290 cs->hw.saphir.timer.function = (void *) SaphirWatchDog; in setup_saphir()
291 cs->hw.saphir.timer.data = (long) cs; in setup_saphir()
292 init_timer(&cs->hw.saphir.timer); in setup_saphir()
293 cs->hw.saphir.timer.expires = jiffies + 4*HZ; in setup_saphir()
294 add_timer(&cs->hw.saphir.timer); in setup_saphir()