Lines Matching +full:addr +full:- +full:mode
1 // SPDX-License-Identifier: GPL-2.0-only
5 * - ISAC + HSCX
6 * - IPAC and IPAC-X
7 * - ISAC-SX + HSCX
10 * - Dialogic Diva 2.0
11 * - Dialogic Diva 2.0U
12 * - Dialogic Diva 2.01
13 * - Dialogic Diva 2.02
14 * - Sedlbauer Speedwin
15 * - HST Saphir3
16 * - Develo (former ELSA) Microlink PCI (Quickstep 1000)
17 * - Develo (former ELSA) Quickstep 3000
18 * - Berkom Scitel BRIX Quadro
19 * - Dr.Neuhaus (Sagem) Niccy
78 enum addr_mode mode; member
86 enum addr_mode mode; member
100 struct _iohandle addr; member
226 card->ipac.isac.dch.debug = debug; in _set_debug()
227 card->ipac.hscx[0].bch.debug = debug; in _set_debug()
228 card->ipac.hscx[1].bch.debug = debug; in _set_debug()
270 spin_lock(&hw->lock); in diva_irq()
271 val = inb((u32)hw->cfg.start + DIVA_PCI_CTRL); in diva_irq()
273 spin_unlock(&hw->lock); in diva_irq()
276 hw->irqcnt++; in diva_irq()
277 mISDNipac_irq(&hw->ipac, irqloops); in diva_irq()
278 spin_unlock(&hw->lock); in diva_irq()
288 spin_lock(&hw->lock); in diva20x_irq()
289 val = readb(hw->cfg.p); in diva20x_irq()
291 spin_unlock(&hw->lock); in diva20x_irq()
294 hw->irqcnt++; in diva20x_irq()
295 mISDNipac_irq(&hw->ipac, irqloops); in diva20x_irq()
296 writeb(PITA_INT0_STATUS, hw->cfg.p); /* ACK PITA INT0 */ in diva20x_irq()
297 spin_unlock(&hw->lock); in diva20x_irq()
307 spin_lock(&hw->lock); in tiger_irq()
308 val = inb((u32)hw->cfg.start + TIGER_AUX_STATUS); in tiger_irq()
310 spin_unlock(&hw->lock); in tiger_irq()
313 hw->irqcnt++; in tiger_irq()
314 mISDNipac_irq(&hw->ipac, irqloops); in tiger_irq()
315 spin_unlock(&hw->lock); in tiger_irq()
325 spin_lock(&hw->lock); in elsa_irq()
326 val = inb((u32)hw->cfg.start + ELSA_IRQ_ADDR); in elsa_irq()
328 spin_unlock(&hw->lock); in elsa_irq()
331 hw->irqcnt++; in elsa_irq()
332 mISDNipac_irq(&hw->ipac, irqloops); in elsa_irq()
333 spin_unlock(&hw->lock); in elsa_irq()
343 spin_lock(&hw->lock); in niccy_irq()
344 val = inl((u32)hw->cfg.start + NICCY_IRQ_CTRL_REG); in niccy_irq()
346 spin_unlock(&hw->lock); in niccy_irq()
349 outl(val, (u32)hw->cfg.start + NICCY_IRQ_CTRL_REG); in niccy_irq()
350 hw->irqcnt++; in niccy_irq()
351 mISDNipac_irq(&hw->ipac, irqloops); in niccy_irq()
352 spin_unlock(&hw->lock); in niccy_irq()
362 spin_lock(&hw->lock); in gazel_irq()
363 ret = mISDNipac_irq(&hw->ipac, irqloops); in gazel_irq()
364 spin_unlock(&hw->lock); in gazel_irq()
374 spin_lock(&hw->lock); in ipac_irq()
375 val = hw->ipac.read_reg(hw, IPAC_ISTA); in ipac_irq()
377 spin_unlock(&hw->lock); in ipac_irq()
380 hw->irqcnt++; in ipac_irq()
381 mISDNipac_irq(&hw->ipac, irqloops); in ipac_irq()
382 spin_unlock(&hw->lock); in ipac_irq()
392 switch (hw->ci->typ) { in enable_hwirq()
395 writel(PITA_INT0_ENABLE, hw->cfg.p); in enable_hwirq()
399 outb(TIGER_IRQ_BIT, (u32)hw->cfg.start + TIGER_AUX_IRQMASK); in enable_hwirq()
402 outb(QS1000_IRQ_ON, (u32)hw->cfg.start + ELSA_IRQ_ADDR); in enable_hwirq()
405 outb(QS3000_IRQ_ON, (u32)hw->cfg.start + ELSA_IRQ_ADDR); in enable_hwirq()
408 val = inl((u32)hw->cfg.start + NICCY_IRQ_CTRL_REG); in enable_hwirq()
410 outl(val, (u32)hw->cfg.start + NICCY_IRQ_CTRL_REG); in enable_hwirq()
413 w = inw((u32)hw->cfg.start + SCT_PLX_IRQ_ADDR); in enable_hwirq()
415 outw(w, (u32)hw->cfg.start + SCT_PLX_IRQ_ADDR); in enable_hwirq()
419 (u32)hw->cfg.start + GAZEL_INCSR); in enable_hwirq()
423 (u32)hw->cfg.start + GAZEL_INCSR); in enable_hwirq()
436 switch (hw->ci->typ) { in disable_hwirq()
439 writel(0, hw->cfg.p); in disable_hwirq()
443 outb(0, (u32)hw->cfg.start + TIGER_AUX_IRQMASK); in disable_hwirq()
446 outb(QS1000_IRQ_OFF, (u32)hw->cfg.start + ELSA_IRQ_ADDR); in disable_hwirq()
449 outb(QS3000_IRQ_OFF, (u32)hw->cfg.start + ELSA_IRQ_ADDR); in disable_hwirq()
452 val = inl((u32)hw->cfg.start + NICCY_IRQ_CTRL_REG); in disable_hwirq()
454 outl(val, (u32)hw->cfg.start + NICCY_IRQ_CTRL_REG); in disable_hwirq()
457 w = inw((u32)hw->cfg.start + SCT_PLX_IRQ_ADDR); in disable_hwirq()
459 outw(w, (u32)hw->cfg.start + SCT_PLX_IRQ_ADDR); in disable_hwirq()
463 outb(0, (u32)hw->cfg.start + GAZEL_INCSR); in disable_hwirq()
473 hw->ipac.write_reg(hw, IPAC_POTA2, 0x20); in ipac_chip_reset()
475 hw->ipac.write_reg(hw, IPAC_POTA2, 0x00); in ipac_chip_reset()
477 hw->ipac.write_reg(hw, IPAC_CONF, hw->ipac.conf); in ipac_chip_reset()
478 hw->ipac.write_reg(hw, IPAC_MASK, 0xc0); in ipac_chip_reset()
488 pr_notice("%s: resetting card\n", hw->name); in reset_inf()
489 switch (hw->ci->typ) { in reset_inf()
492 outb(0, (u32)hw->cfg.start + DIVA_PCI_CTRL); in reset_inf()
494 outb(DIVA_RESET_BIT, (u32)hw->cfg.start + DIVA_PCI_CTRL); in reset_inf()
497 outb(9, (u32)hw->cfg.start + 0x69); in reset_inf()
499 (u32)hw->cfg.start + DIVA_PCI_CTRL); in reset_inf()
503 hw->cfg.p + PITA_MISC_REG); in reset_inf()
505 writel(PITA_PARA_MPX_MODE, hw->cfg.p + PITA_MISC_REG); in reset_inf()
510 hw->cfg.p + PITA_MISC_REG); in reset_inf()
513 hw->cfg.p + PITA_MISC_REG); in reset_inf()
519 hw->ipac.write_reg(hw, IPAC_ACFG, 0xff); in reset_inf()
520 hw->ipac.write_reg(hw, IPAC_AOE, 0x00); in reset_inf()
521 hw->ipac.write_reg(hw, IPAC_PCFG, 0x12); in reset_inf()
526 hw->ipac.write_reg(hw, IPAC_ACFG, 0x00); in reset_inf()
527 hw->ipac.write_reg(hw, IPAC_AOE, 0x3c); in reset_inf()
528 hw->ipac.write_reg(hw, IPAC_ATX, 0xff); in reset_inf()
533 w = inw((u32)hw->cfg.start + SCT_PLX_RESET_ADDR); in reset_inf()
535 outw(w, (u32)hw->cfg.start + SCT_PLX_RESET_ADDR); in reset_inf()
537 w = inw((u32)hw->cfg.start + SCT_PLX_RESET_ADDR); in reset_inf()
539 outw(w, (u32)hw->cfg.start + SCT_PLX_RESET_ADDR); in reset_inf()
543 val = inl((u32)hw->cfg.start + GAZEL_CNTRL); in reset_inf()
545 outl(val, (u32)hw->cfg.start + GAZEL_CNTRL); in reset_inf()
548 outl(val, (u32)hw->cfg.start + GAZEL_CNTRL); in reset_inf()
550 hw->ipac.isac.adf2 = 0x87; in reset_inf()
551 hw->ipac.hscx[0].slot = 0x1f; in reset_inf()
552 hw->ipac.hscx[1].slot = 0x23; in reset_inf()
555 val = inl((u32)hw->cfg.start + GAZEL_CNTRL); in reset_inf()
557 outl(val, (u32)hw->cfg.start + GAZEL_CNTRL); in reset_inf()
560 outl(val, (u32)hw->cfg.start + GAZEL_CNTRL); in reset_inf()
563 hw->ipac.write_reg(hw, IPAC_ACFG, 0xff); in reset_inf()
564 hw->ipac.write_reg(hw, IPAC_AOE, 0x00); in reset_inf()
565 hw->ipac.conf = 0x01; /* IOM off */ in reset_inf()
584 hw->name, __func__, cmd, arg); in inf_ctrl()
585 ret = -EINVAL; in inf_ctrl()
597 if (!hw->ci->irqfunc) in init_irq()
598 return -EINVAL; in init_irq()
599 ret = request_irq(hw->irq, hw->ci->irqfunc, IRQF_SHARED, hw->name, hw); in init_irq()
601 pr_info("%s: couldn't get interrupt %d\n", hw->name, hw->irq); in init_irq()
604 while (cnt--) { in init_irq()
605 spin_lock_irqsave(&hw->lock, flags); in init_irq()
607 ret = hw->ipac.init(&hw->ipac); in init_irq()
609 spin_unlock_irqrestore(&hw->lock, flags); in init_irq()
611 hw->name, ret); in init_irq()
614 spin_unlock_irqrestore(&hw->lock, flags); in init_irq()
617 pr_notice("%s: IRQ %d count %d\n", hw->name, in init_irq()
618 hw->irq, hw->irqcnt); in init_irq()
619 if (!hw->irqcnt) { in init_irq()
621 hw->name, hw->irq, 3 - cnt); in init_irq()
625 free_irq(hw->irq, hw); in init_irq()
626 return -EIO; in init_irq()
632 if (hw->cfg.mode) { in release_io()
633 if (hw->cfg.mode == AM_MEMIO) { in release_io()
634 release_mem_region(hw->cfg.start, hw->cfg.size); in release_io()
635 if (hw->cfg.p) in release_io()
636 iounmap(hw->cfg.p); in release_io()
638 release_region(hw->cfg.start, hw->cfg.size); in release_io()
639 hw->cfg.mode = AM_NONE; in release_io()
641 if (hw->addr.mode) { in release_io()
642 if (hw->addr.mode == AM_MEMIO) { in release_io()
643 release_mem_region(hw->addr.start, hw->addr.size); in release_io()
644 if (hw->addr.p) in release_io()
645 iounmap(hw->addr.p); in release_io()
647 release_region(hw->addr.start, hw->addr.size); in release_io()
648 hw->addr.mode = AM_NONE; in release_io()
657 if (hw->ci->cfg_mode) { in setup_io()
658 hw->cfg.start = pci_resource_start(hw->pdev, hw->ci->cfg_bar); in setup_io()
659 hw->cfg.size = pci_resource_len(hw->pdev, hw->ci->cfg_bar); in setup_io()
660 if (hw->ci->cfg_mode == AM_MEMIO) { in setup_io()
661 if (!request_mem_region(hw->cfg.start, hw->cfg.size, in setup_io()
662 hw->name)) in setup_io()
663 err = -EBUSY; in setup_io()
665 if (!request_region(hw->cfg.start, hw->cfg.size, in setup_io()
666 hw->name)) in setup_io()
667 err = -EBUSY; in setup_io()
671 "already in use\n", hw->name, in setup_io()
672 (ulong)hw->cfg.start, (ulong)hw->cfg.size); in setup_io()
675 hw->cfg.mode = hw->ci->cfg_mode; in setup_io()
676 if (hw->ci->cfg_mode == AM_MEMIO) { in setup_io()
677 hw->cfg.p = ioremap(hw->cfg.start, hw->cfg.size); in setup_io()
678 if (!hw->cfg.p) in setup_io()
679 return -ENOMEM; in setup_io()
682 pr_notice("%s: IO cfg %lx (%lu bytes) mode%d\n", in setup_io()
683 hw->name, (ulong)hw->cfg.start, in setup_io()
684 (ulong)hw->cfg.size, hw->ci->cfg_mode); in setup_io()
687 if (hw->ci->addr_mode) { in setup_io()
688 hw->addr.start = pci_resource_start(hw->pdev, hw->ci->addr_bar); in setup_io()
689 hw->addr.size = pci_resource_len(hw->pdev, hw->ci->addr_bar); in setup_io()
690 if (hw->ci->addr_mode == AM_MEMIO) { in setup_io()
691 if (!request_mem_region(hw->addr.start, hw->addr.size, in setup_io()
692 hw->name)) in setup_io()
693 err = -EBUSY; in setup_io()
695 if (!request_region(hw->addr.start, hw->addr.size, in setup_io()
696 hw->name)) in setup_io()
697 err = -EBUSY; in setup_io()
701 "already in use\n", hw->name, in setup_io()
702 (ulong)hw->addr.start, (ulong)hw->addr.size); in setup_io()
705 hw->addr.mode = hw->ci->addr_mode; in setup_io()
706 if (hw->ci->addr_mode == AM_MEMIO) { in setup_io()
707 hw->addr.p = ioremap(hw->addr.start, hw->addr.size); in setup_io()
708 if (!hw->addr.p) in setup_io()
709 return -ENOMEM; in setup_io()
712 pr_notice("%s: IO addr %lx (%lu bytes) mode%d\n", in setup_io()
713 hw->name, (ulong)hw->addr.start, in setup_io()
714 (ulong)hw->addr.size, hw->ci->addr_mode); in setup_io()
718 switch (hw->ci->typ) { in setup_io()
721 hw->ipac.type = IPAC_TYPE_ISAC | IPAC_TYPE_HSCX; in setup_io()
722 hw->isac.mode = hw->cfg.mode; in setup_io()
723 hw->isac.a.io.ale = (u32)hw->cfg.start + DIVA_ISAC_ALE; in setup_io()
724 hw->isac.a.io.port = (u32)hw->cfg.start + DIVA_ISAC_PORT; in setup_io()
725 hw->hscx.mode = hw->cfg.mode; in setup_io()
726 hw->hscx.a.io.ale = (u32)hw->cfg.start + DIVA_HSCX_ALE; in setup_io()
727 hw->hscx.a.io.port = (u32)hw->cfg.start + DIVA_HSCX_PORT; in setup_io()
730 hw->ipac.type = IPAC_TYPE_IPAC; in setup_io()
731 hw->ipac.isac.off = 0x80; in setup_io()
732 hw->isac.mode = hw->addr.mode; in setup_io()
733 hw->isac.a.p = hw->addr.p; in setup_io()
734 hw->hscx.mode = hw->addr.mode; in setup_io()
735 hw->hscx.a.p = hw->addr.p; in setup_io()
738 hw->ipac.type = IPAC_TYPE_IPACX; in setup_io()
739 hw->isac.mode = hw->addr.mode; in setup_io()
740 hw->isac.a.p = hw->addr.p; in setup_io()
741 hw->hscx.mode = hw->addr.mode; in setup_io()
742 hw->hscx.a.p = hw->addr.p; in setup_io()
746 hw->ipac.type = IPAC_TYPE_IPAC; in setup_io()
747 hw->ipac.isac.off = 0x80; in setup_io()
748 hw->isac.mode = hw->cfg.mode; in setup_io()
749 hw->isac.a.io.ale = (u32)hw->cfg.start + TIGER_IPAC_ALE; in setup_io()
750 hw->isac.a.io.port = (u32)hw->cfg.start + TIGER_IPAC_PORT; in setup_io()
751 hw->hscx.mode = hw->cfg.mode; in setup_io()
752 hw->hscx.a.io.ale = (u32)hw->cfg.start + TIGER_IPAC_ALE; in setup_io()
753 hw->hscx.a.io.port = (u32)hw->cfg.start + TIGER_IPAC_PORT; in setup_io()
754 outb(0xff, (ulong)hw->cfg.start); in setup_io()
756 outb(0x00, (ulong)hw->cfg.start); in setup_io()
758 outb(TIGER_IOMASK, (ulong)hw->cfg.start + TIGER_AUX_CTRL); in setup_io()
762 hw->ipac.type = IPAC_TYPE_IPAC; in setup_io()
763 hw->ipac.isac.off = 0x80; in setup_io()
764 hw->isac.a.io.ale = (u32)hw->addr.start; in setup_io()
765 hw->isac.a.io.port = (u32)hw->addr.start + 1; in setup_io()
766 hw->isac.mode = hw->addr.mode; in setup_io()
767 hw->hscx.a.io.ale = (u32)hw->addr.start; in setup_io()
768 hw->hscx.a.io.port = (u32)hw->addr.start + 1; in setup_io()
769 hw->hscx.mode = hw->addr.mode; in setup_io()
772 hw->ipac.type = IPAC_TYPE_ISAC | IPAC_TYPE_HSCX; in setup_io()
773 hw->isac.mode = hw->addr.mode; in setup_io()
774 hw->isac.a.io.ale = (u32)hw->addr.start + NICCY_ISAC_ALE; in setup_io()
775 hw->isac.a.io.port = (u32)hw->addr.start + NICCY_ISAC_PORT; in setup_io()
776 hw->hscx.mode = hw->addr.mode; in setup_io()
777 hw->hscx.a.io.ale = (u32)hw->addr.start + NICCY_HSCX_ALE; in setup_io()
778 hw->hscx.a.io.port = (u32)hw->addr.start + NICCY_HSCX_PORT; in setup_io()
781 hw->ipac.type = IPAC_TYPE_IPAC; in setup_io()
782 hw->ipac.isac.off = 0x80; in setup_io()
783 hw->isac.a.io.ale = (u32)hw->addr.start; in setup_io()
784 hw->isac.a.io.port = hw->isac.a.io.ale + 4; in setup_io()
785 hw->isac.mode = hw->addr.mode; in setup_io()
786 hw->hscx.a.io.ale = hw->isac.a.io.ale; in setup_io()
787 hw->hscx.a.io.port = hw->isac.a.io.port; in setup_io()
788 hw->hscx.mode = hw->addr.mode; in setup_io()
791 hw->ipac.type = IPAC_TYPE_IPAC; in setup_io()
792 hw->ipac.isac.off = 0x80; in setup_io()
793 hw->isac.a.io.ale = (u32)hw->addr.start + 0x08; in setup_io()
794 hw->isac.a.io.port = hw->isac.a.io.ale + 4; in setup_io()
795 hw->isac.mode = hw->addr.mode; in setup_io()
796 hw->hscx.a.io.ale = hw->isac.a.io.ale; in setup_io()
797 hw->hscx.a.io.port = hw->isac.a.io.port; in setup_io()
798 hw->hscx.mode = hw->addr.mode; in setup_io()
801 hw->ipac.type = IPAC_TYPE_IPAC; in setup_io()
802 hw->ipac.isac.off = 0x80; in setup_io()
803 hw->isac.a.io.ale = (u32)hw->addr.start + 0x10; in setup_io()
804 hw->isac.a.io.port = hw->isac.a.io.ale + 4; in setup_io()
805 hw->isac.mode = hw->addr.mode; in setup_io()
806 hw->hscx.a.io.ale = hw->isac.a.io.ale; in setup_io()
807 hw->hscx.a.io.port = hw->isac.a.io.port; in setup_io()
808 hw->hscx.mode = hw->addr.mode; in setup_io()
811 hw->ipac.type = IPAC_TYPE_IPAC; in setup_io()
812 hw->ipac.isac.off = 0x80; in setup_io()
813 hw->isac.a.io.ale = (u32)hw->addr.start + 0x20; in setup_io()
814 hw->isac.a.io.port = hw->isac.a.io.ale + 4; in setup_io()
815 hw->isac.mode = hw->addr.mode; in setup_io()
816 hw->hscx.a.io.ale = hw->isac.a.io.ale; in setup_io()
817 hw->hscx.a.io.port = hw->isac.a.io.port; in setup_io()
818 hw->hscx.mode = hw->addr.mode; in setup_io()
821 hw->ipac.type = IPAC_TYPE_ISAC | IPAC_TYPE_HSCX; in setup_io()
822 hw->ipac.isac.off = 0x80; in setup_io()
823 hw->isac.mode = hw->addr.mode; in setup_io()
824 hw->isac.a.io.port = (u32)hw->addr.start; in setup_io()
825 hw->hscx.mode = hw->addr.mode; in setup_io()
826 hw->hscx.a.io.port = hw->isac.a.io.port; in setup_io()
829 hw->ipac.type = IPAC_TYPE_IPAC; in setup_io()
830 hw->ipac.isac.off = 0x80; in setup_io()
831 hw->isac.mode = hw->addr.mode; in setup_io()
832 hw->isac.a.io.ale = (u32)hw->addr.start; in setup_io()
833 hw->isac.a.io.port = (u32)hw->addr.start + GAZEL_IPAC_DATA_PORT; in setup_io()
834 hw->hscx.mode = hw->addr.mode; in setup_io()
835 hw->hscx.a.io.ale = hw->isac.a.io.ale; in setup_io()
836 hw->hscx.a.io.port = hw->isac.a.io.port; in setup_io()
839 return -EINVAL; in setup_io()
841 switch (hw->isac.mode) { in setup_io()
843 ASSIGN_FUNC_IPAC(MIO, hw->ipac); in setup_io()
846 ASSIGN_FUNC_IPAC(IND, hw->ipac); in setup_io()
849 ASSIGN_FUNC_IPAC(IO, hw->ipac); in setup_io()
852 return -EINVAL; in setup_io()
862 spin_lock_irqsave(&card->lock, flags); in release_card()
864 spin_unlock_irqrestore(&card->lock, flags); in release_card()
865 card->ipac.isac.release(&card->ipac.isac); in release_card()
866 free_irq(card->irq, card); in release_card()
867 mISDN_unregister_device(&card->ipac.isac.dch.dev); in release_card()
870 list_del(&card->list); in release_card()
872 switch (card->ci->typ) { in release_card()
879 if (card->sc[i]) in release_card()
880 release_card(card->sc[i]); in release_card()
881 card->sc[i] = NULL; in release_card()
885 pci_disable_device(card->pdev); in release_card()
886 pci_set_drvdata(card->pdev, NULL); in release_card()
890 inf_cnt--; in release_card()
899 snprintf(card->name, MISDN_MAX_IDLEN - 1, "%s.%d", card->ci->name, in setup_instance()
902 list_add_tail(&card->list, &Cards); in setup_instance()
906 card->ipac.isac.name = card->name; in setup_instance()
907 card->ipac.name = card->name; in setup_instance()
908 card->ipac.owner = THIS_MODULE; in setup_instance()
909 spin_lock_init(&card->lock); in setup_instance()
910 card->ipac.isac.hwlock = &card->lock; in setup_instance()
911 card->ipac.hwlock = &card->lock; in setup_instance()
912 card->ipac.ctrl = (void *)&inf_ctrl; in setup_instance()
918 card->ipac.isac.dch.dev.Bprotocols = in setup_instance()
919 mISDNipac_init(&card->ipac, card); in setup_instance()
921 if (card->ipac.isac.dch.dev.Bprotocols == 0) in setup_instance()
924 err = mISDN_register_device(&card->ipac.isac.dch.dev, in setup_instance()
925 &card->pdev->dev, card->name); in setup_instance()
935 mISDN_unregister_device(&card->ipac.isac.dch.dev); in setup_instance()
937 card->ipac.release(&card->ipac); in setup_instance()
941 list_del(&card->list); in setup_instance()
1062 while (ci->typ != INF_NONE) { in get_card_info()
1063 if (ci->typ == typ) in get_card_info()
1073 int err = -ENOMEM; in inf_probe()
1081 card->pdev = pdev; in inf_probe()
1087 card->ci = get_card_info(ent->driver_data); in inf_probe()
1088 if (!card->ci) { in inf_probe()
1093 return -EINVAL; in inf_probe()
1096 card->ci->full, pci_name(pdev)); in inf_probe()
1098 card->irq = pdev->irq; in inf_probe()
1105 } else if (ent->driver_data == INF_SCT_1) { in inf_probe()
1114 return -ENOMEM; in inf_probe()
1116 sc->irq = card->irq; in inf_probe()
1117 sc->pdev = card->pdev; in inf_probe()
1118 sc->ci = card->ci + i; in inf_probe()
1126 card->sc[i - 1] = sc; in inf_probe()