Lines Matching refs:ints
607 static void __init setup_error(char *mesg, int *ints)
609 if (ints[0] == 3)
610 printk(KERN_ERR "wd7000_setup: \"wd7000=%d,%d,0x%x\" -> %s\n", ints[1], ints[2], ints[3], mesg);
611 else if (ints[0] == 4)
612 printk(KERN_ERR "wd7000_setup: \"wd7000=%d,%d,0x%x,%d\" -> %s\n", ints[1], ints[2], ints[3], ints[4], mesg);
614 printk(KERN_ERR "wd7000_setup: \"wd7000=%d,%d,0x%x,%d,%d\" -> %s\n", ints[1], ints[2], ints[3], ints[4], ints[5], mesg);
636 int ints[6];
638 (void) get_options(str, ARRAY_SIZE(ints), ints);
645 if ((ints[0] < 3) || (ints[0] > 5)) {
649 if (ints[1] == wd7000_irq[i])
653 setup_error("invalid IRQ.", ints);
656 configs[wd7000_card_num].irq = ints[1];
659 if (ints[2] == wd7000_dma[i])
663 setup_error("invalid DMA channel.", ints);
666 configs[wd7000_card_num].dma = ints[2];
669 if (ints[3] == wd7000_iobase[i])
673 setup_error("invalid I/O base address.", ints);
676 configs[wd7000_card_num].iobase = ints[3];
678 if (ints[0] > 3) {
679 if ((ints[4] < 500) || (ints[4] > 31875)) {
680 setup_error("BUS_ON value is out of range (500" " to 31875 nanoseconds)!", ints);
683 configs[wd7000_card_num].bus_on = ints[4] / 125;
687 if (ints[0] > 4) {
688 if ((ints[5] < 500) || (ints[5] > 31875)) {
689 setup_error("BUS_OFF value is out of range (500" " to 31875 nanoseconds)!", ints);
692 configs[wd7000_card_num].bus_off = ints[5] / 125;
702 setup_error("duplicated IRQ!", ints);
706 setup_error("duplicated DMA " "channel!", ints);
710 setup_error("duplicated I/O " "base address!", ints);