• Home
  • Raw
  • Download

Lines Matching refs:diva

134 	return (readreg(cs->hw.diva.isac_adr, cs->hw.diva.isac, offset));  in ReadISAC()
140 writereg(cs->hw.diva.isac_adr, cs->hw.diva.isac, offset, value); in WriteISAC()
146 readfifo(cs->hw.diva.isac_adr, cs->hw.diva.isac, 0, data, size); in ReadISACfifo()
152 writefifo(cs->hw.diva.isac_adr, cs->hw.diva.isac, 0, data, size); in WriteISACfifo()
158 return (readreg(cs->hw.diva.isac_adr, cs->hw.diva.isac, offset + 0x80)); in ReadISAC_IPAC()
164 writereg(cs->hw.diva.isac_adr, cs->hw.diva.isac, offset | 0x80, value); in WriteISAC_IPAC()
170 readfifo(cs->hw.diva.isac_adr, cs->hw.diva.isac, 0x80, data, size); in ReadISACfifo_IPAC()
176 writefifo(cs->hw.diva.isac_adr, cs->hw.diva.isac, 0x80, data, size); in WriteISACfifo_IPAC()
182 return (readreg(cs->hw.diva.hscx_adr, in ReadHSCX()
183 cs->hw.diva.hscx, offset + (hscx ? 0x40 : 0))); in ReadHSCX()
189 writereg(cs->hw.diva.hscx_adr, in WriteHSCX()
190 cs->hw.diva.hscx, offset + (hscx ? 0x40 : 0), value); in WriteHSCX()
196 return (memreadreg(cs->hw.diva.cfg_reg, offset + 0x80)); in MemReadISAC_IPAC()
202 memwritereg(cs->hw.diva.cfg_reg, offset | 0x80, value); in MemWriteISAC_IPAC()
209 *data++ = memreadreg(cs->hw.diva.cfg_reg, 0x80); in MemReadISACfifo_IPAC()
216 memwritereg(cs->hw.diva.cfg_reg, 0x80, *data++); in MemWriteISACfifo_IPAC()
222 return (memreadreg(cs->hw.diva.cfg_reg, offset + (hscx ? 0x40 : 0))); in MemReadHSCX()
228 memwritereg(cs->hw.diva.cfg_reg, offset + (hscx ? 0x40 : 0), value); in MemWriteHSCX()
235 return (memreadreg(cs->hw.diva.cfg_reg, offset)); in MemReadISAC_IPACX()
241 memwritereg(cs->hw.diva.cfg_reg, offset, value); in MemWriteISAC_IPACX()
248 *data++ = memreadreg(cs->hw.diva.cfg_reg, 0); in MemReadISACfifo_IPACX()
255 memwritereg(cs->hw.diva.cfg_reg, 0, *data++); in MemWriteISACfifo_IPACX()
261 return (memreadreg(cs->hw.diva.cfg_reg, offset + in MemReadHSCX_IPACX()
268 memwritereg(cs->hw.diva.cfg_reg, offset + in MemWriteHSCX_IPACX()
276 #define READHSCX(cs, nr, reg) readreg(cs->hw.diva.hscx_adr, \
277 cs->hw.diva.hscx, reg + (nr ? 0x40 : 0))
278 #define WRITEHSCX(cs, nr, reg, data) writereg(cs->hw.diva.hscx_adr, \
279 cs->hw.diva.hscx, reg + (nr ? 0x40 : 0), data)
281 #define READHSCXFIFO(cs, nr, ptr, cnt) readfifo(cs->hw.diva.hscx_adr, \
282 cs->hw.diva.hscx, (nr ? 0x40 : 0), ptr, cnt)
284 #define WRITEHSCXFIFO(cs, nr, ptr, cnt) writefifo(cs->hw.diva.hscx_adr, \
285 cs->hw.diva.hscx, (nr ? 0x40 : 0), ptr, cnt)
298 while (((sval = bytein(cs->hw.diva.ctrl)) & DIVA_IRQ_REQ) && cnt) { in diva_interrupt()
299 val = readreg(cs->hw.diva.hscx_adr, cs->hw.diva.hscx, HSCX_ISTA + 0x40); in diva_interrupt()
302 val = readreg(cs->hw.diva.isac_adr, cs->hw.diva.isac, ISAC_ISTA); 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()
311 writereg(cs->hw.diva.isac_adr, cs->hw.diva.isac, ISAC_MASK, 0xFF); in diva_interrupt()
312 writereg(cs->hw.diva.isac_adr, cs->hw.diva.isac, ISAC_MASK, 0x0); 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()
328 ista = readreg(cs->hw.diva.isac_adr, cs->hw.diva.isac, IPAC_ISTA); in diva_irq_ipac_isa()
333 val = readreg(cs->hw.diva.isac_adr, cs->hw.diva.isac, HSCX_ISTA + 0x40); in diva_irq_ipac_isa()
344 val = 0xfe & readreg(cs->hw.diva.isac_adr, cs->hw.diva.isac, ISAC_ISTA + 0x80); in diva_irq_ipac_isa()
353 ista = readreg(cs->hw.diva.isac_adr, cs->hw.diva.isac, IPAC_ISTA); in diva_irq_ipac_isa()
360 writereg(cs->hw.diva.isac_adr, cs->hw.diva.isac, IPAC_MASK, 0xFF); in diva_irq_ipac_isa()
361 writereg(cs->hw.diva.isac_adr, cs->hw.diva.isac, IPAC_MASK, 0xC0); in diva_irq_ipac_isa()
420 *ptr++ = memreadreg(cs->hw.diva.cfg_reg, bcs->hw.hscx.hscx ? 0x40 : 0); in Memhscx_empty_fifo()
463 memwritereg(cs->hw.diva.cfg_reg, bcs->hw.hscx.hscx ? 0x40 : 0, in Memhscx_fill_fifo()
640 cfg = (u_char *) cs->hw.diva.pci_cfg; in diva_irq_ipac_pci()
647 ista = memreadreg(cs->hw.diva.cfg_reg, IPAC_ISTA); in diva_irq_ipac_pci()
652 val = memreadreg(cs->hw.diva.cfg_reg, HSCX_ISTA + 0x40); in diva_irq_ipac_pci()
663 val = 0xfe & memreadreg(cs->hw.diva.cfg_reg, ISAC_ISTA + 0x80); in diva_irq_ipac_pci()
672 ista = memreadreg(cs->hw.diva.cfg_reg, IPAC_ISTA); in diva_irq_ipac_pci()
679 memwritereg(cs->hw.diva.cfg_reg, IPAC_MASK, 0xFF); in diva_irq_ipac_pci()
680 memwritereg(cs->hw.diva.cfg_reg, IPAC_MASK, 0xC0); in diva_irq_ipac_pci()
694 cfg = (u_char *) cs->hw.diva.pci_cfg; in diva_irq_ipacx_pci()
713 u_int *cfg = (unsigned int *)cs->hw.diva.pci_cfg; in release_io_diva()
717 if (cs->hw.diva.cfg_reg) in release_io_diva()
718 iounmap((void *)cs->hw.diva.cfg_reg); in release_io_diva()
719 if (cs->hw.diva.pci_cfg) in release_io_diva()
720 iounmap((void *)cs->hw.diva.pci_cfg); in release_io_diva()
723 del_timer(&cs->hw.diva.tl); in release_io_diva()
724 if (cs->hw.diva.cfg_reg) in release_io_diva()
725 byteout(cs->hw.diva.ctrl, 0); /* LED off, Reset */ in release_io_diva()
731 if (cs->hw.diva.cfg_reg) { in release_io_diva()
732 release_region(cs->hw.diva.cfg_reg, bytecnt); in release_io_diva()
740 if (cs->hw.diva.cfg_reg) { in iounmap_diva()
741 iounmap((void *)cs->hw.diva.cfg_reg); in iounmap_diva()
742 cs->hw.diva.cfg_reg = 0; in iounmap_diva()
744 if (cs->hw.diva.pci_cfg) { in iounmap_diva()
745 iounmap((void *)cs->hw.diva.pci_cfg); in iounmap_diva()
746 cs->hw.diva.pci_cfg = 0; in iounmap_diva()
757 writereg(cs->hw.diva.isac_adr, cs->hw.diva.isac, IPAC_POTA2, 0x20); in reset_diva()
759 writereg(cs->hw.diva.isac_adr, cs->hw.diva.isac, IPAC_POTA2, 0x00); in reset_diva()
761 writereg(cs->hw.diva.isac_adr, cs->hw.diva.isac, IPAC_MASK, 0xc0); in reset_diva()
763 unsigned int *ireg = (unsigned int *)(cs->hw.diva.pci_cfg + in reset_diva()
769 memwritereg(cs->hw.diva.cfg_reg, IPAC_MASK, 0xc0); in reset_diva()
771 unsigned int *ireg = (unsigned int *)(cs->hw.diva.pci_cfg + in reset_diva()
779 cs->hw.diva.ctrl_reg = 0; /* Reset On */ in reset_diva()
780 byteout(cs->hw.diva.ctrl, cs->hw.diva.ctrl_reg); in reset_diva()
782 cs->hw.diva.ctrl_reg |= DIVA_RESET; /* Reset Off */ in reset_diva()
783 byteout(cs->hw.diva.ctrl, cs->hw.diva.ctrl_reg); in reset_diva()
786 cs->hw.diva.ctrl_reg |= DIVA_ISA_LED_A; in reset_diva()
789 byteout(cs->hw.diva.pci_cfg + 0x69, 9); in reset_diva()
790 cs->hw.diva.ctrl_reg |= DIVA_PCI_LED_A; in reset_diva()
792 byteout(cs->hw.diva.ctrl, cs->hw.diva.ctrl_reg); in reset_diva()
807 del_timer(&cs->hw.diva.tl); in diva_led_handler()
808 if (cs->hw.diva.status & DIVA_ASSIGN) in diva_led_handler()
809 cs->hw.diva.ctrl_reg |= (DIVA_ISA == cs->subtyp) ? in diva_led_handler()
812 cs->hw.diva.ctrl_reg ^= (DIVA_ISA == cs->subtyp) ? in diva_led_handler()
816 if (cs->hw.diva.status & 0xf000) in diva_led_handler()
817 cs->hw.diva.ctrl_reg |= (DIVA_ISA == cs->subtyp) ? in diva_led_handler()
819 else if (cs->hw.diva.status & 0x0f00) { in diva_led_handler()
820 cs->hw.diva.ctrl_reg ^= (DIVA_ISA == cs->subtyp) ? in diva_led_handler()
824 cs->hw.diva.ctrl_reg &= ~((DIVA_ISA == cs->subtyp) ? in diva_led_handler()
827 byteout(cs->hw.diva.ctrl, cs->hw.diva.ctrl_reg); in diva_led_handler()
829 init_timer(&cs->hw.diva.tl); in diva_led_handler()
830 cs->hw.diva.tl.expires = jiffies + ((blink * HZ) / 1000); in diva_led_handler()
831 add_timer(&cs->hw.diva.tl); in diva_led_handler()
854 ireg = (unsigned int *)cs->hw.diva.pci_cfg; in Diva_card_msg()
861 ireg = (unsigned int *)cs->hw.diva.pci_cfg; in Diva_card_msg()
870 cs->hw.diva.status = 0; in Diva_card_msg()
873 cs->hw.diva.status |= DIVA_ASSIGN; in Diva_card_msg()
877 cs->hw.diva.status |= 0x0200; in Diva_card_msg()
879 cs->hw.diva.status |= 0x0100; in Diva_card_msg()
883 cs->hw.diva.status |= 0x2000; in Diva_card_msg()
885 cs->hw.diva.status |= 0x1000; in Diva_card_msg()
889 cs->hw.diva.status &= ~0x2000; in Diva_card_msg()
890 cs->hw.diva.status &= ~0x0200; in Diva_card_msg()
892 cs->hw.diva.status &= ~0x1000; in Diva_card_msg()
893 cs->hw.diva.status &= ~0x0100; in Diva_card_msg()
923 cs->hw.diva.cfg_reg, cs->irq); in setup_diva_common()
930 cs->hw.diva.pci_cfg); in setup_diva_common()
933 if (!request_region(cs->hw.diva.cfg_reg, bytecnt, "diva isdn")) { in setup_diva_common()
937 cs->hw.diva.cfg_reg, in setup_diva_common()
938 cs->hw.diva.cfg_reg + bytecnt); in setup_diva_common()
954 val = readreg(cs->hw.diva.isac_adr, cs->hw.diva.isac, IPAC_ID); in setup_diva_common()
965 val = memreadreg(cs->hw.diva.cfg_reg, IPAC_ID); in setup_diva_common()
979 cs->hw.diva.tl.function = (void *) diva_led_handler; in setup_diva_common()
980 cs->hw.diva.tl.data = (long) cs; in setup_diva_common()
981 init_timer(&cs->hw.diva.tl); in setup_diva_common()
1008 cs->hw.diva.ctrl_reg = 0; in setup_diva_isa()
1009 cs->hw.diva.cfg_reg = card->para[1]; in setup_diva_isa()
1010 val = readreg(cs->hw.diva.cfg_reg + DIVA_IPAC_ADR, in setup_diva_isa()
1011 cs->hw.diva.cfg_reg + DIVA_IPAC_DATA, IPAC_ID); in setup_diva_isa()
1015 cs->hw.diva.ctrl = 0; in setup_diva_isa()
1016 cs->hw.diva.isac = card->para[1] + DIVA_IPAC_DATA; in setup_diva_isa()
1017 cs->hw.diva.hscx = card->para[1] + DIVA_IPAC_DATA; in setup_diva_isa()
1018 cs->hw.diva.isac_adr = card->para[1] + DIVA_IPAC_ADR; in setup_diva_isa()
1019 cs->hw.diva.hscx_adr = card->para[1] + DIVA_IPAC_ADR; in setup_diva_isa()
1023 cs->hw.diva.ctrl = card->para[1] + DIVA_ISA_CTRL; in setup_diva_isa()
1024 cs->hw.diva.isac = card->para[1] + DIVA_ISA_ISAC_DATA; in setup_diva_isa()
1025 cs->hw.diva.hscx = card->para[1] + DIVA_HSCX_DATA; in setup_diva_isa()
1026 cs->hw.diva.isac_adr = card->para[1] + DIVA_ISA_ISAC_ADR; in setup_diva_isa()
1027 cs->hw.diva.hscx_adr = card->para[1] + DIVA_HSCX_ADR; in setup_diva_isa()
1102 cs->hw.diva.cfg_reg = card->para[1]; in setup_diva_isapnp()
1106 cs->hw.diva.ctrl = 0; in setup_diva_isapnp()
1107 cs->hw.diva.isac = in setup_diva_isapnp()
1109 cs->hw.diva.hscx = in setup_diva_isapnp()
1111 cs->hw.diva.isac_adr = in setup_diva_isapnp()
1113 cs->hw.diva.hscx_adr = in setup_diva_isapnp()
1118 cs->hw.diva.ctrl = in setup_diva_isapnp()
1120 cs->hw.diva.isac = in setup_diva_isapnp()
1122 cs->hw.diva.hscx = in setup_diva_isapnp()
1124 cs->hw.diva.isac_adr = in setup_diva_isapnp()
1126 cs->hw.diva.hscx_adr = in setup_diva_isapnp()
1168 cs->hw.diva.cfg_reg = pci_resource_start(dev_diva, 2); in setup_diva_pci()
1175 cs->hw.diva.cfg_reg = pci_resource_start(dev_diva_u, 2); in setup_diva_pci()
1182 cs->hw.diva.pci_cfg = in setup_diva_pci()
1184 cs->hw.diva.cfg_reg = in setup_diva_pci()
1192 cs->hw.diva.pci_cfg = in setup_diva_pci()
1194 cs->hw.diva.cfg_reg = in setup_diva_pci()
1206 if (!cs->hw.diva.cfg_reg) { in setup_diva_pci()
1215 cs->hw.diva.ctrl = 0; in setup_diva_pci()
1216 cs->hw.diva.isac = 0; in setup_diva_pci()
1217 cs->hw.diva.hscx = 0; in setup_diva_pci()
1218 cs->hw.diva.isac_adr = 0; in setup_diva_pci()
1219 cs->hw.diva.hscx_adr = 0; in setup_diva_pci()
1222 cs->hw.diva.ctrl = cs->hw.diva.cfg_reg + DIVA_PCI_CTRL; in setup_diva_pci()
1223 cs->hw.diva.isac = cs->hw.diva.cfg_reg + DIVA_PCI_ISAC_DATA; in setup_diva_pci()
1224 cs->hw.diva.hscx = cs->hw.diva.cfg_reg + DIVA_HSCX_DATA; in setup_diva_pci()
1225 cs->hw.diva.isac_adr = cs->hw.diva.cfg_reg + DIVA_PCI_ISAC_ADR; in setup_diva_pci()
1226 cs->hw.diva.hscx_adr = cs->hw.diva.cfg_reg + DIVA_HSCX_ADR; in setup_diva_pci()
1251 cs->hw.diva.status = 0; in setup_diva()