Lines Matching refs:saphir

70 	return (readreg(cs->hw.saphir.ale, cs->hw.saphir.isac, offset));  in ReadISAC()
76 writereg(cs->hw.saphir.ale, cs->hw.saphir.isac, offset, value); in WriteISAC()
82 readfifo(cs->hw.saphir.ale, cs->hw.saphir.isac, 0, data, size); in ReadISACfifo()
88 writefifo(cs->hw.saphir.ale, cs->hw.saphir.isac, 0, data, size); in WriteISACfifo()
94 return (readreg(cs->hw.saphir.ale, cs->hw.saphir.hscx, in ReadHSCX()
101 writereg(cs->hw.saphir.ale, cs->hw.saphir.hscx, in WriteHSCX()
105 #define READHSCX(cs, nr, reg) readreg(cs->hw.saphir.ale, \
106 cs->hw.saphir.hscx, reg + (nr ? 0x40 : 0))
107 #define WRITEHSCX(cs, nr, reg, data) writereg(cs->hw.saphir.ale, \
108 cs->hw.saphir.hscx, reg + (nr ? 0x40 : 0), data)
110 #define READHSCXFIFO(cs, nr, ptr, cnt) readfifo(cs->hw.saphir.ale, \
111 cs->hw.saphir.hscx, (nr ? 0x40 : 0), ptr, cnt)
113 #define WRITEHSCXFIFO(cs, nr, ptr, cnt) writefifo(cs->hw.saphir.ale, \
114 cs->hw.saphir.hscx, (nr ? 0x40 : 0), ptr, cnt)
126 val = readreg(cs->hw.saphir.ale, cs->hw.saphir.hscx, HSCX_ISTA + 0x40); in saphir_interrupt()
130 val = readreg(cs->hw.saphir.ale, cs->hw.saphir.isac, ISAC_ISTA); in saphir_interrupt()
134 val = readreg(cs->hw.saphir.ale, cs->hw.saphir.hscx, HSCX_ISTA + 0x40); in saphir_interrupt()
140 val = readreg(cs->hw.saphir.ale, cs->hw.saphir.isac, ISAC_ISTA); in saphir_interrupt()
147 if (cs->hw.saphir.timer.function) in saphir_interrupt()
148 mod_timer(&cs->hw.saphir.timer, jiffies + 1 * HZ); in saphir_interrupt()
151 writereg(cs->hw.saphir.ale, cs->hw.saphir.hscx, HSCX_MASK, 0xFF); in saphir_interrupt()
152 writereg(cs->hw.saphir.ale, cs->hw.saphir.hscx, HSCX_MASK + 0x40, 0xFF); in saphir_interrupt()
153 writereg(cs->hw.saphir.ale, cs->hw.saphir.isac, ISAC_MASK, 0xFF); in saphir_interrupt()
154 writereg(cs->hw.saphir.ale, cs->hw.saphir.isac, ISAC_MASK, 0); in saphir_interrupt()
155 writereg(cs->hw.saphir.ale, cs->hw.saphir.hscx, HSCX_MASK, 0); in saphir_interrupt()
156 writereg(cs->hw.saphir.ale, cs->hw.saphir.hscx, HSCX_MASK + 0x40, 0); in saphir_interrupt()
164 struct IsdnCardState *cs = from_timer(cs, t, hw.saphir.timer); in SaphirWatchDog()
171 mod_timer(&cs->hw.saphir.timer, jiffies + 1 * HZ); in SaphirWatchDog()
177 byteout(cs->hw.saphir.cfg_reg + IRQ_REG, 0xff); in release_io_saphir()
178 del_timer(&cs->hw.saphir.timer); in release_io_saphir()
179 cs->hw.saphir.timer.function = NULL; in release_io_saphir()
180 if (cs->hw.saphir.cfg_reg) in release_io_saphir()
181 release_region(cs->hw.saphir.cfg_reg, 6); in release_io_saphir()
208 byteout(cs->hw.saphir.cfg_reg + IRQ_REG, irq_val); in saphir_reset()
209 byteout(cs->hw.saphir.cfg_reg + RESET_REG, 1); in saphir_reset()
211 byteout(cs->hw.saphir.cfg_reg + RESET_REG, 0); in saphir_reset()
213 byteout(cs->hw.saphir.cfg_reg + IRQ_REG, irq_val); in saphir_reset()
214 byteout(cs->hw.saphir.cfg_reg + SPARE_REG, 0x02); in saphir_reset()
255 cs->hw.saphir.cfg_reg = card->para[1]; in setup_saphir()
256 cs->hw.saphir.isac = card->para[1] + ISAC_DATA; in setup_saphir()
257 cs->hw.saphir.hscx = card->para[1] + HSCX_DATA; in setup_saphir()
258 cs->hw.saphir.ale = card->para[1] + ADDRESS_REG; in setup_saphir()
260 if (!request_region(cs->hw.saphir.cfg_reg, 6, "saphir")) { in setup_saphir()
263 cs->hw.saphir.cfg_reg, in setup_saphir()
264 cs->hw.saphir.cfg_reg + 5); in setup_saphir()
269 cs->irq, cs->hw.saphir.cfg_reg); in setup_saphir()
272 timer_setup(&cs->hw.saphir.timer, SaphirWatchDog, 0); in setup_saphir()
273 cs->hw.saphir.timer.expires = jiffies + 4 * HZ; in setup_saphir()
274 add_timer(&cs->hw.saphir.timer); in setup_saphir()