From owner-freebsd-hackers Sat Mar 11 21:30:15 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id VAA07379 for hackers-outgoing; Sat, 11 Mar 1995 21:30:15 -0800 Received: from ns.gte.com (ns.gte.com [132.197.8.9]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id VAA07373 for ; Sat, 11 Mar 1995 21:30:14 -0800 Received: from bunny.gte.com by ns.gte.com (8.6.9/8.9) id AAA03670; Sun, 12 Mar 1995 00:27:53 -0500 Received: by bunny.gte.com (8.6.9/GTEL2.19) id AAA06935; Sun, 12 Mar 1995 00:29:31 -0500 Received: from localhost by genesis.tiac.net (8.3/genesis0.0) id XAA22108; Sat, 11 Mar 1995 23:31:24 -0800 Date: Sat, 11 Mar 1995 23:31:24 -0800 From: steve2@genesis.tiac.net (Steve Gerakines) Message-Id: <199503120731.XAA22108@genesis.tiac.net> To: freebsd-hackers@FreeBSD.org Subject: Re: configuring 2 U24F cards (fix--please commit) Sender: hackers-owner@FreeBSD.org Precedence: bulk > Has anybody ever tried to use 2 (or more) Ultrastore U24F EISA scsi cards > in one system? If so, how does the kernel config file look like? Problem is because the driver is scanning all slots. If there was one set of code scanning the EISA slots this wouldn't be a problem. The following patch should correct it. If someone could commit this for me that would be great. - Steve steve2@genesis.tiac.net ---- 8< 8< 8< ---- *** ultra14f.c.old Fri Jan 6 23:25:46 1995 --- ultra14f.c Sat Mar 11 23:22:19 1995 *************** *** 960,965 **** --- 960,973 ---- ub->abort_ack = U24_ABORT_ACK; ub->icm_ack = U24_ICM_ACK; + /* + * Ignore cards that have already been found. + */ + for (i = 0; i < NUHA; i++) + if (uhadata[i] != NULL && uhadata[i]->baseport == port) + break; + if (i != NUHA) continue; + /* Make sure an EISA card is installed in this slot. */ outb(ur->id, 0xff); p0 = inb(ur->id); ---- EOF EOF EOF ----