Lines Matching refs:hwcfg

1707 	struct scc_hw_config hwcfg;  in scc_net_ioctl()  local
1727 if (copy_from_user(&hwcfg, arg, sizeof(hwcfg))) in scc_net_ioctl()
1730 if (hwcfg.irq == 2) hwcfg.irq = 9; in scc_net_ioctl()
1732 if (hwcfg.irq < 0 || hwcfg.irq >= nr_irqs) in scc_net_ioctl()
1735 if (!Ivec[hwcfg.irq].used && hwcfg.irq) in scc_net_ioctl()
1737 if (request_irq(hwcfg.irq, scc_isr, in scc_net_ioctl()
1739 (void *)(long) hwcfg.irq)) in scc_net_ioctl()
1740 printk(KERN_WARNING "z8530drv: warning, cannot get IRQ %d\n", hwcfg.irq); in scc_net_ioctl()
1742 Ivec[hwcfg.irq].used = 1; in scc_net_ioctl()
1745 if (hwcfg.vector_latch && !Vector_Latch) { in scc_net_ioctl()
1746 if (!request_region(hwcfg.vector_latch, 1, "scc vector latch")) in scc_net_ioctl()
1747 …NING "z8530drv: warning, cannot reserve vector latch port 0x%lx\n, disabled.", hwcfg.vector_latch); in scc_net_ioctl()
1749 Vector_Latch = hwcfg.vector_latch; in scc_net_ioctl()
1752 if (hwcfg.clock == 0) in scc_net_ioctl()
1753 hwcfg.clock = SCC_DEFAULT_CLOCK; in scc_net_ioctl()
1757 if(request_region(hwcfg.ctrl_a, 1, "scc-probe")) in scc_net_ioctl()
1759 disable_irq(hwcfg.irq); in scc_net_ioctl()
1760 Outb(hwcfg.ctrl_a, 0); in scc_net_ioctl()
1761 OutReg(hwcfg.ctrl_a, R9, FHWRES); in scc_net_ioctl()
1763 OutReg(hwcfg.ctrl_a,R13,0x55); /* is this chip really there? */ in scc_net_ioctl()
1766 if (InReg(hwcfg.ctrl_a,R13) != 0x55) in scc_net_ioctl()
1768 enable_irq(hwcfg.irq); in scc_net_ioctl()
1769 release_region(hwcfg.ctrl_a, 1); in scc_net_ioctl()
1777 SCC_Info[2*Nchips ].ctrl = hwcfg.ctrl_a; in scc_net_ioctl()
1778 SCC_Info[2*Nchips ].data = hwcfg.data_a; in scc_net_ioctl()
1779 SCC_Info[2*Nchips ].irq = hwcfg.irq; in scc_net_ioctl()
1780 SCC_Info[2*Nchips+1].ctrl = hwcfg.ctrl_b; in scc_net_ioctl()
1781 SCC_Info[2*Nchips+1].data = hwcfg.data_b; in scc_net_ioctl()
1782 SCC_Info[2*Nchips+1].irq = hwcfg.irq; in scc_net_ioctl()
1784 SCC_ctrl[Nchips].chan_A = hwcfg.ctrl_a; in scc_net_ioctl()
1785 SCC_ctrl[Nchips].chan_B = hwcfg.ctrl_b; in scc_net_ioctl()
1786 SCC_ctrl[Nchips].irq = hwcfg.irq; in scc_net_ioctl()
1794 SCC_Info[2*Nchips+chan].special = hwcfg.special; in scc_net_ioctl()
1795 SCC_Info[2*Nchips+chan].clock = hwcfg.clock; in scc_net_ioctl()
1796 SCC_Info[2*Nchips+chan].brand = hwcfg.brand; in scc_net_ioctl()
1797 SCC_Info[2*Nchips+chan].option = hwcfg.option; in scc_net_ioctl()
1798 SCC_Info[2*Nchips+chan].enhanced = hwcfg.escc; in scc_net_ioctl()
1809 chan? hwcfg.data_b : hwcfg.data_a, in scc_net_ioctl()
1810 chan? hwcfg.ctrl_b : hwcfg.ctrl_a, in scc_net_ioctl()