Lines Matching refs:hfcD
46 struct IsdnCardState *cs = from_timer(cs, t, hw.hfcD.timer); in hfcs_Timer()
47 cs->hw.hfcD.timer.expires = jiffies + 75; in hfcs_Timer()
58 del_timer(&cs->hw.hfcD.timer); in release_io_hfcs()
59 if (cs->hw.hfcD.addr) in release_io_hfcs()
60 release_region(cs->hw.hfcD.addr, 2); in release_io_hfcs()
67 cs->hw.hfcD.cirm = HFCD_RESET; in reset_hfcs()
69 cs->hw.hfcD.cirm |= HFCD_MEM8K; in reset_hfcs()
70 cs->BC_Write_Reg(cs, HFCD_DATA, HFCD_CIRM, cs->hw.hfcD.cirm); /* Reset On */ in reset_hfcs()
72 cs->hw.hfcD.cirm = 0; in reset_hfcs()
74 cs->hw.hfcD.cirm |= HFCD_MEM8K; in reset_hfcs()
75 cs->BC_Write_Reg(cs, HFCD_DATA, HFCD_CIRM, cs->hw.hfcD.cirm); /* Reset Off */ in reset_hfcs()
78 cs->hw.hfcD.cirm |= HFCD_INTB; in reset_hfcs()
80 cs->hw.hfcD.cirm |= HFCD_INTA; in reset_hfcs()
81 cs->BC_Write_Reg(cs, HFCD_DATA, HFCD_CIRM, cs->hw.hfcD.cirm); in reset_hfcs()
84 cs->hw.hfcD.ctmt = HFCD_TIM25 | HFCD_AUTO_TIMER; in reset_hfcs()
85 cs->BC_Write_Reg(cs, HFCD_DATA, HFCD_CTMT, cs->hw.hfcD.ctmt); in reset_hfcs()
86 cs->hw.hfcD.int_m2 = HFCD_IRQ_ENABLE; in reset_hfcs()
87 cs->hw.hfcD.int_m1 = HFCD_INTS_B1TRANS | HFCD_INTS_B2TRANS | in reset_hfcs()
90 cs->BC_Write_Reg(cs, HFCD_DATA, HFCD_INT_M1, cs->hw.hfcD.int_m1); in reset_hfcs()
91 cs->BC_Write_Reg(cs, HFCD_DATA, HFCD_INT_M2, cs->hw.hfcD.int_m2); in reset_hfcs()
95 cs->hw.hfcD.mst_m = HFCD_MASTER; in reset_hfcs()
96 cs->BC_Write_Reg(cs, HFCD_DATA, HFCD_MST_MODE, cs->hw.hfcD.mst_m); /* HFC Master */ in reset_hfcs()
97 cs->hw.hfcD.sctrl = 0; in reset_hfcs()
98 cs->BC_Write_Reg(cs, HFCD_DATA, HFCD_SCTRL, cs->hw.hfcD.sctrl); in reset_hfcs()
120 mod_timer(&cs->hw.hfcD.timer, jiffies + delay); in hfcs_card_msg()
128 cs->hw.hfcD.ctmt |= HFCD_TIM800; in hfcs_card_msg()
129 cs->BC_Write_Reg(cs, HFCD_DATA, HFCD_CTMT, cs->hw.hfcD.ctmt); in hfcs_card_msg()
130 cs->BC_Write_Reg(cs, HFCD_DATA, HFCD_MST_MODE, cs->hw.hfcD.mst_m); in hfcs_card_msg()
219 cs->hw.hfcD.addr = card->para[1] & 0xfffe; in setup_hfcs()
221 cs->hw.hfcD.cip = 0; in setup_hfcs()
222 cs->hw.hfcD.int_s1 = 0; in setup_hfcs()
223 cs->hw.hfcD.send = NULL; in setup_hfcs()
226 cs->hw.hfcD.dfifosize = 512; in setup_hfcs()
228 cs->hw.hfcD.fifo = 255; in setup_hfcs()
230 cs->hw.hfcD.bfifosize = 1024 + 512; in setup_hfcs()
232 cs->hw.hfcD.bfifosize = 7 * 1024 + 512; in setup_hfcs()
235 if (!request_region(cs->hw.hfcD.addr, 2, "HFCS isdn")) { in setup_hfcs()
239 cs->hw.hfcD.addr, in setup_hfcs()
240 cs->hw.hfcD.addr + 2); in setup_hfcs()
245 cs->hw.hfcD.addr, in setup_hfcs()
249 outb(0x00, cs->hw.hfcD.addr); in setup_hfcs()
250 outb(0x56, cs->hw.hfcD.addr | 1); in setup_hfcs()
253 outb(0x00, cs->hw.hfcD.addr); in setup_hfcs()
254 outb(0x57, cs->hw.hfcD.addr | 1); in setup_hfcs()
257 timer_setup(&cs->hw.hfcD.timer, hfcs_Timer, 0); in setup_hfcs()