Lines Matching refs:hscx
180 ReadHSCX(struct IsdnCardState *cs, int hscx, u_char offset) in ReadHSCX() argument
183 cs->hw.diva.hscx, offset + (hscx ? 0x40 : 0))); in ReadHSCX()
187 WriteHSCX(struct IsdnCardState *cs, int hscx, u_char offset, u_char value) in WriteHSCX() argument
190 cs->hw.diva.hscx, offset + (hscx ? 0x40 : 0), value); in WriteHSCX()
220 MemReadHSCX(struct IsdnCardState *cs, int hscx, u_char offset) in MemReadHSCX() argument
222 return (memreadreg(cs->hw.diva.cfg_reg, offset + (hscx ? 0x40 : 0))); in MemReadHSCX()
226 MemWriteHSCX(struct IsdnCardState *cs, int hscx, u_char offset, u_char value) in MemWriteHSCX() argument
228 memwritereg(cs->hw.diva.cfg_reg, offset + (hscx ? 0x40 : 0), value); in MemWriteHSCX()
259 MemReadHSCX_IPACX(struct IsdnCardState *cs, int hscx, u_char offset) in MemReadHSCX_IPACX() argument
262 (hscx ? IPACX_OFF_B2 : IPACX_OFF_B1))); in MemReadHSCX_IPACX()
266 MemWriteHSCX_IPACX(struct IsdnCardState *cs, int hscx, u_char offset, u_char value) in MemWriteHSCX_IPACX() argument
269 (hscx ? IPACX_OFF_B2 : IPACX_OFF_B1), value); in MemWriteHSCX_IPACX()
277 cs->hw.diva.hscx, reg + (nr ? 0x40 : 0))
279 cs->hw.diva.hscx, reg + (nr ? 0x40 : 0), data)
282 cs->hw.diva.hscx, (nr ? 0x40 : 0), ptr, cnt)
285 cs->hw.diva.hscx, (nr ? 0x40 : 0), ptr, cnt)
299 val = readreg(cs->hw.diva.hscx_adr, cs->hw.diva.hscx, HSCX_ISTA + 0x40); in diva_interrupt()
309 writereg(cs->hw.diva.hscx_adr, cs->hw.diva.hscx, HSCX_MASK, 0xFF); in diva_interrupt()
310 writereg(cs->hw.diva.hscx_adr, cs->hw.diva.hscx, HSCX_MASK + 0x40, 0xFF); in diva_interrupt()
313 writereg(cs->hw.diva.hscx_adr, cs->hw.diva.hscx, HSCX_MASK, 0x0); in diva_interrupt()
314 writereg(cs->hw.diva.hscx_adr, cs->hw.diva.hscx, HSCX_MASK + 0x40, 0x0); in diva_interrupt()
367 MemwaitforCEC(struct IsdnCardState *cs, int hscx) in MemwaitforCEC() argument
371 while ((MemReadHSCX(cs, hscx, HSCX_STAR) & 0x04) && to) { in MemwaitforCEC()
381 MemwaitforXFW(struct IsdnCardState *cs, int hscx) in MemwaitforXFW() argument
385 while (((MemReadHSCX(cs, hscx, HSCX_STAR) & 0x44) != 0x40) && to) { in MemwaitforXFW()
394 MemWriteHSCXCMDR(struct IsdnCardState *cs, int hscx, u_char data) in MemWriteHSCXCMDR() argument
396 MemwaitforCEC(cs, hscx); in MemWriteHSCXCMDR()
397 MemWriteHSCX(cs, hscx, HSCX_CMDR, data); in MemWriteHSCXCMDR()
410 if (bcs->hw.hscx.rcvidx + count > HSCX_BUFMAX) { in Memhscx_empty_fifo()
413 MemWriteHSCXCMDR(cs, bcs->hw.hscx.hscx, 0x80); in Memhscx_empty_fifo()
414 bcs->hw.hscx.rcvidx = 0; in Memhscx_empty_fifo()
417 ptr = bcs->hw.hscx.rcvbuf + bcs->hw.hscx.rcvidx; in Memhscx_empty_fifo()
420 *ptr++ = memreadreg(cs->hw.diva.cfg_reg, bcs->hw.hscx.hscx ? 0x40 : 0); in Memhscx_empty_fifo()
421 MemWriteHSCXCMDR(cs, bcs->hw.hscx.hscx, 0x80); in Memhscx_empty_fifo()
422 ptr = bcs->hw.hscx.rcvbuf + bcs->hw.hscx.rcvidx; in Memhscx_empty_fifo()
423 bcs->hw.hscx.rcvidx += count; in Memhscx_empty_fifo()
428 bcs->hw.hscx.hscx ? 'B' : 'A', count); in Memhscx_empty_fifo()
457 MemwaitforXFW(cs, bcs->hw.hscx.hscx); in Memhscx_fill_fifo()
461 bcs->hw.hscx.count += count; in Memhscx_fill_fifo()
463 memwritereg(cs->hw.diva.cfg_reg, bcs->hw.hscx.hscx ? 0x40 : 0, in Memhscx_fill_fifo()
465 MemWriteHSCXCMDR(cs, bcs->hw.hscx.hscx, more ? 0x8 : 0xa); in Memhscx_fill_fifo()
470 bcs->hw.hscx.hscx ? 'B' : 'A', count); in Memhscx_fill_fifo()
477 Memhscx_interrupt(struct IsdnCardState *cs, u_char val, u_char hscx) in Memhscx_interrupt() argument
480 struct BCState *bcs = cs->bcs + hscx; in Memhscx_interrupt()
489 r = MemReadHSCX(cs, hscx, HSCX_RSTA); in Memhscx_interrupt()
501 MemWriteHSCXCMDR(cs, hscx, 0x80); in Memhscx_interrupt()
503 count = MemReadHSCX(cs, hscx, HSCX_RBCL) & ( in Memhscx_interrupt()
508 if ((count = bcs->hw.hscx.rcvidx - 1) > 0) { in Memhscx_interrupt()
514 skb_put_data(skb, bcs->hw.hscx.rcvbuf, in Memhscx_interrupt()
520 bcs->hw.hscx.rcvidx = 0; in Memhscx_interrupt()
530 skb_put_data(skb, bcs->hw.hscx.rcvbuf, in Memhscx_interrupt()
534 bcs->hw.hscx.rcvidx = 0; in Memhscx_interrupt()
548 bcs->ackcnt += bcs->hw.hscx.count; in Memhscx_interrupt()
553 bcs->hw.hscx.count = 0; in Memhscx_interrupt()
558 bcs->hw.hscx.count = 0; in Memhscx_interrupt()
586 skb_push(bcs->tx_skb, bcs->hw.hscx.count); in Memhscx_int_main()
587 bcs->tx_cnt += bcs->hw.hscx.count; in Memhscx_int_main()
588 bcs->hw.hscx.count = 0; in Memhscx_int_main()
590 MemWriteHSCXCMDR(cs, bcs->hw.hscx.hscx, 0x01); in Memhscx_int_main()
613 skb_push(bcs->tx_skb, bcs->hw.hscx.count); in Memhscx_int_main()
614 bcs->tx_cnt += bcs->hw.hscx.count; in Memhscx_int_main()
615 bcs->hw.hscx.count = 0; in Memhscx_int_main()
617 MemWriteHSCXCMDR(cs, bcs->hw.hscx.hscx, 0x01); in Memhscx_int_main()
1017 cs->hw.diva.hscx = card->para[1] + DIVA_IPAC_DATA; in setup_diva_isa()
1025 cs->hw.diva.hscx = card->para[1] + DIVA_HSCX_DATA; in setup_diva_isa()
1109 cs->hw.diva.hscx = in setup_diva_isapnp()
1122 cs->hw.diva.hscx = in setup_diva_isapnp()
1217 cs->hw.diva.hscx = 0; in setup_diva_pci()
1224 cs->hw.diva.hscx = cs->hw.diva.cfg_reg + DIVA_HSCX_DATA; in setup_diva_pci()