Lines Matching refs:hfc
105 cs->hw.hfc.cip = offset; in ReadISAC()
106 return (readreg(cs->hw.hfc.addr | 1, cs->hw.hfc.addr, offset)); in ReadISAC()
112 cs->hw.hfc.cip = offset; in WriteISAC()
113 writereg(cs->hw.hfc.addr | 1, cs->hw.hfc.addr, offset, value); in WriteISAC()
119 cs->hw.hfc.cip = 0; in ReadISACfifo()
120 readfifo(cs->hw.hfc.addr | 1, cs->hw.hfc.addr, 0, data, size); in ReadISACfifo()
126 cs->hw.hfc.cip = 0; in WriteISACfifo()
127 writefifo(cs->hw.hfc.addr | 1, cs->hw.hfc.addr, 0, data, size); in WriteISACfifo()
136 cs->hw.hfc.cip = reg; in ReadHFC()
137 byteout(cs->hw.hfc.addr | 1, reg); in ReadHFC()
138 ret = bytein(cs->hw.hfc.addr); in ReadHFC()
142 ret = bytein(cs->hw.hfc.addr | 1); in ReadHFC()
149 byteout(cs->hw.hfc.addr | 1, reg); in WriteHFC()
150 cs->hw.hfc.cip = reg; in WriteHFC()
152 byteout(cs->hw.hfc.addr, value); in WriteHFC()
165 val = readreg(cs->hw.hfc.addr | 1, cs->hw.hfc.addr, ISAC_ISTA); in TeleInt_interrupt()
169 val = readreg(cs->hw.hfc.addr | 1, cs->hw.hfc.addr, ISAC_ISTA); in TeleInt_interrupt()
175 writereg(cs->hw.hfc.addr | 1, cs->hw.hfc.addr, ISAC_MASK, 0xFF); in TeleInt_interrupt()
176 writereg(cs->hw.hfc.addr | 1, cs->hw.hfc.addr, ISAC_MASK, 0x0); in TeleInt_interrupt()
200 cs->hw.hfc.timer.expires = jiffies + stat; in TeleInt_Timer()
201 add_timer(&cs->hw.hfc.timer); in TeleInt_Timer()
207 del_timer(&cs->hw.hfc.timer); in release_io_TeleInt()
209 if (cs->hw.hfc.addr) in release_io_TeleInt()
210 release_region(cs->hw.hfc.addr, 2); in release_io_TeleInt()
217 cs->hw.hfc.cirm |= HFC_RESET; in reset_TeleInt()
218 byteout(cs->hw.hfc.addr | 1, cs->hw.hfc.cirm); /* Reset On */ in reset_TeleInt()
220 cs->hw.hfc.cirm &= ~HFC_RESET; in reset_TeleInt()
221 byteout(cs->hw.hfc.addr | 1, cs->hw.hfc.cirm); /* Reset Off */ in reset_TeleInt()
253 cs->hw.hfc.timer.expires = jiffies + delay; in TeleInt_card_msg()
254 add_timer(&cs->hw.hfc.timer); in TeleInt_card_msg()
273 cs->hw.hfc.addr = card->para[1] & 0x3fe; in setup_TeleInt()
275 cs->hw.hfc.cirm = HFC_CIRM; in setup_TeleInt()
276 cs->hw.hfc.isac_spcr = 0x00; in setup_TeleInt()
277 cs->hw.hfc.cip = 0; in setup_TeleInt()
278 cs->hw.hfc.ctmt = HFC_CTMT | HFC_CLTIMER; in setup_TeleInt()
279 cs->bcs[0].hw.hfc.send = NULL; in setup_TeleInt()
280 cs->bcs[1].hw.hfc.send = NULL; in setup_TeleInt()
281 cs->hw.hfc.fifosize = 7 * 1024 + 512; in setup_TeleInt()
282 cs->hw.hfc.timer.function = (void *) TeleInt_Timer; in setup_TeleInt()
283 cs->hw.hfc.timer.data = (long) cs; in setup_TeleInt()
284 init_timer(&cs->hw.hfc.timer); in setup_TeleInt()
285 if (!request_region(cs->hw.hfc.addr, 2, "TeleInt isdn")) { in setup_TeleInt()
288 cs->hw.hfc.addr, in setup_TeleInt()
289 cs->hw.hfc.addr + 2); in setup_TeleInt()
293 byteout(cs->hw.hfc.addr, cs->hw.hfc.addr & 0xff); in setup_TeleInt()
294 byteout(cs->hw.hfc.addr | 1, ((cs->hw.hfc.addr & 0x300) >> 8) | 0x54); in setup_TeleInt()
297 cs->hw.hfc.cirm |= HFC_INTA; in setup_TeleInt()
300 cs->hw.hfc.cirm |= HFC_INTB; in setup_TeleInt()
303 cs->hw.hfc.cirm |= HFC_INTC; in setup_TeleInt()
306 cs->hw.hfc.cirm |= HFC_INTD; in setup_TeleInt()
309 cs->hw.hfc.cirm |= HFC_INTE; in setup_TeleInt()
312 cs->hw.hfc.cirm |= HFC_INTF; in setup_TeleInt()
319 byteout(cs->hw.hfc.addr | 1, cs->hw.hfc.cirm); in setup_TeleInt()
320 byteout(cs->hw.hfc.addr | 1, cs->hw.hfc.ctmt); in setup_TeleInt()
323 cs->hw.hfc.addr, cs->irq); in setup_TeleInt()