Lines Matching refs:hwcfg
1712 struct scc_hw_config hwcfg; in scc_net_siocdevprivate() local
1733 if (copy_from_user(&hwcfg, arg, sizeof(hwcfg))) in scc_net_siocdevprivate()
1736 if (hwcfg.irq == 2) hwcfg.irq = 9; in scc_net_siocdevprivate()
1738 if (hwcfg.irq < 0 || hwcfg.irq >= nr_irqs) in scc_net_siocdevprivate()
1741 if (!Ivec[hwcfg.irq].used && hwcfg.irq) in scc_net_siocdevprivate()
1743 if (request_irq(hwcfg.irq, scc_isr, in scc_net_siocdevprivate()
1745 (void *)(long) hwcfg.irq)) in scc_net_siocdevprivate()
1746 printk(KERN_WARNING "z8530drv: warning, cannot get IRQ %d\n", hwcfg.irq); in scc_net_siocdevprivate()
1748 Ivec[hwcfg.irq].used = 1; in scc_net_siocdevprivate()
1751 if (hwcfg.vector_latch && !Vector_Latch) { in scc_net_siocdevprivate()
1752 if (!request_region(hwcfg.vector_latch, 1, "scc vector latch")) in scc_net_siocdevprivate()
1753 …NING "z8530drv: warning, cannot reserve vector latch port 0x%lx\n, disabled.", hwcfg.vector_latch); in scc_net_siocdevprivate()
1755 Vector_Latch = hwcfg.vector_latch; in scc_net_siocdevprivate()
1758 if (hwcfg.clock == 0) in scc_net_siocdevprivate()
1759 hwcfg.clock = SCC_DEFAULT_CLOCK; in scc_net_siocdevprivate()
1763 if(request_region(hwcfg.ctrl_a, 1, "scc-probe")) in scc_net_siocdevprivate()
1765 disable_irq(hwcfg.irq); in scc_net_siocdevprivate()
1766 Outb(hwcfg.ctrl_a, 0); in scc_net_siocdevprivate()
1767 OutReg(hwcfg.ctrl_a, R9, FHWRES); in scc_net_siocdevprivate()
1769 OutReg(hwcfg.ctrl_a,R13,0x55); /* is this chip really there? */ in scc_net_siocdevprivate()
1772 if (InReg(hwcfg.ctrl_a,R13) != 0x55) in scc_net_siocdevprivate()
1774 enable_irq(hwcfg.irq); in scc_net_siocdevprivate()
1775 release_region(hwcfg.ctrl_a, 1); in scc_net_siocdevprivate()
1783 SCC_Info[2*Nchips ].ctrl = hwcfg.ctrl_a; in scc_net_siocdevprivate()
1784 SCC_Info[2*Nchips ].data = hwcfg.data_a; in scc_net_siocdevprivate()
1785 SCC_Info[2*Nchips ].irq = hwcfg.irq; in scc_net_siocdevprivate()
1786 SCC_Info[2*Nchips+1].ctrl = hwcfg.ctrl_b; in scc_net_siocdevprivate()
1787 SCC_Info[2*Nchips+1].data = hwcfg.data_b; in scc_net_siocdevprivate()
1788 SCC_Info[2*Nchips+1].irq = hwcfg.irq; in scc_net_siocdevprivate()
1790 SCC_ctrl[Nchips].chan_A = hwcfg.ctrl_a; in scc_net_siocdevprivate()
1791 SCC_ctrl[Nchips].chan_B = hwcfg.ctrl_b; in scc_net_siocdevprivate()
1792 SCC_ctrl[Nchips].irq = hwcfg.irq; in scc_net_siocdevprivate()
1800 SCC_Info[2*Nchips+chan].special = hwcfg.special; in scc_net_siocdevprivate()
1801 SCC_Info[2*Nchips+chan].clock = hwcfg.clock; in scc_net_siocdevprivate()
1802 SCC_Info[2*Nchips+chan].brand = hwcfg.brand; in scc_net_siocdevprivate()
1803 SCC_Info[2*Nchips+chan].option = hwcfg.option; in scc_net_siocdevprivate()
1804 SCC_Info[2*Nchips+chan].enhanced = hwcfg.escc; in scc_net_siocdevprivate()
1815 chan? hwcfg.data_b : hwcfg.data_a, in scc_net_siocdevprivate()
1816 chan? hwcfg.ctrl_b : hwcfg.ctrl_a, in scc_net_siocdevprivate()