Lines Matching refs:ip2config
537 release_region( ip2config.addr[i], 8 ); in cleanup_module()
544 if ( (ip2config.irq[i] > 0) && have_requested_irq(ip2config.irq[i]) ) { in cleanup_module()
545 free_irq ( ip2config.irq[i], (void *)&pcName); in cleanup_module()
546 clear_requested_irq( ip2config.irq[i]); in cleanup_module()
569 if (ip2config.type[i] == PCI && ip2config.pci_dev[i]) { in cleanup_module()
570 pci_disable_device(ip2config.pci_dev[i]); in cleanup_module()
571 ip2config.pci_dev[i] = NULL; in cleanup_module()
631 ip2config.addr[i] = iop[i]; in ip2_loadmain()
633 ip2config.irq[i] = irqp[i]; in ip2_loadmain()
677 switch ( ip2config.addr[i] ) { in ip2_loadmain()
682 if ( (ip2config.addr[i] < 0x100) || (ip2config.addr[i] > 0x3f8) ) { in ip2_loadmain()
684 i, ip2config.addr[i] ); in ip2_loadmain()
685 ip2config.addr[i] = 0; in ip2_loadmain()
687 ip2config.type[i] = ISA; in ip2_loadmain()
690 if (ip2config.irq[i] && !is_valid_irq(ip2config.irq[i])) { in ip2_loadmain()
691 printk(KERN_ERR "IP2: Bad IRQ(%d) specified\n",ip2config.irq[i]); in ip2_loadmain()
692 ip2config.irq[i] = 0;// 0 is polling and is valid in that sense in ip2_loadmain()
709 ip2config.type[i] = PCI; in ip2_loadmain()
720 ip2config.addr[i]=(USHORT)(addr&0xfffe); in ip2_loadmain()
724 if (ip2config.irq[i] != 0) { in ip2_loadmain()
728 ip2config.irq[i] = pci_irq; in ip2_loadmain()
731 ip2config.addr[i] = 0; in ip2_loadmain()
753 ip2config.type[i] = PCI; in ip2_loadmain()
754 ip2config.pci_dev[i] = pci_dev_i; in ip2_loadmain()
758 ip2config.addr[i]=(USHORT)(addr&0xfffe); in ip2_loadmain()
762 ip2config.irq[i] = pci_dev_i->irq; in ip2_loadmain()
764 ip2config.addr[i] = 0; in ip2_loadmain()
780 if ( (ip2config.addr[i] = find_eisa_board( Eisa_slot + 1 )) != 0) { in ip2_loadmain()
782 ip2config.type[i] = EISA; in ip2_loadmain()
784 ip2config.irq[i] = Eisa_irq; in ip2_loadmain()
789 if ( ip2config.addr[i] ) { in ip2_loadmain()
794 iiSetAddress( pB, ip2config.addr[i], ii2DelayTimer ); in ip2_loadmain()
909 if ( 0 == ip2config.addr[i] ) { in ip2_loadmain()
952 ip2config.irq[i] = CIR_POLL; in ip2_loadmain()
954 if ( ip2config.irq[i] == CIR_POLL ) { in ip2_loadmain()
963 if (have_requested_irq(ip2config.irq[i])) in ip2_loadmain()
965 rc = request_irq( ip2config.irq[i], ip2_interrupt, in ip2_loadmain()
966 IP2_SA_FLAGS | (ip2config.type[i] == PCI ? SA_SHIRQ : 0), in ip2_loadmain()
970 ip2config.irq[i] = CIR_POLL; in ip2_loadmain()
975 mark_requested_irq(ip2config.irq[i]); in ip2_loadmain()
989 set_irq( i, ip2config.irq[i] ); /* set and enable board interrupt */ in ip2_loadmain()
1022 ip2config.addr[boardnum], ip2config.irq[boardnum] ); in ip2_init_board()
1024 if (!request_region( ip2config.addr[boardnum], 8, pcName )) { in ip2_init_board()
1025 printk(KERN_ERR "IP2: bad addr=0x%x\n", ip2config.addr[boardnum]); in ip2_init_board()
1134 release_region(ip2config.addr[boardnum], 8); in ip2_init_board()
2642 tmp.irq = ip2config.irq[pCh->port_index/64]; in get_serial_info()
2682 if ( (ns.irq != ip2config.irq[pCh->port_index]) in set_serial_info()