From owner-freebsd-net Mon Jul 16 0:18: 7 2001 Delivered-To: freebsd-net@freebsd.org Received: from altrade.nijmegen.inter.nl.net (altrade.nijmegen.inter.nl.net [193.67.237.6]) by hub.freebsd.org (Postfix) with ESMTP id 146C937B401 for ; Mon, 16 Jul 2001 00:18:03 -0700 (PDT) (envelope-from Peter.Blok@inter.NL.net) Received: from ntpc by altrade.nijmegen.inter.nl.net via 1Cust170.tnt22.rtm1.nl.uu.net [213.116.138.170] with SMTP for id JAA17057 (8.8.8/1.3); Mon, 16 Jul 2001 09:18:01 +0200 (MET DST) Reply-To: From: "Peter Blok" To: Subject: patch for if_wi.c Date: Mon, 16 Jul 2001 09:13:47 +0200 Message-ID: <000801c10dc6$db51c760$8a02a8c0@ntpc> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Importance: Normal Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, I have bought two SMC wireless cards. One SMC2632 in my laptop, the other a SMC2602 (PCI to SMC2632) in my FreeBSD server. I am running FreeBSD-STABLE as of july 1. Initially it didn't work because the PCI to PCMCIA bridge picked an interrupt that was already in use. Since I couldn't force the SMC2602 or BIOS to use another interrupt, I started to wonder if it was really necessary to have a non-shared interrupt. I have patched the code to allow shared interrupts and everything works fine. The other devices on the same interrupt are working too. Can somebody please look at the patch and apply it if ok. I don't know if it going to break the code when you use the PCMCIA card in a FreeBSD ISA to PCMCIA bridge. *** if_wi.c.orig Sun Jul 15 12:06:12 2001 --- if_wi.c Sun Jul 15 11:57:02 2001 *************** *** 1906,1912 **** sc->irq_rid = 0; sc->irq = bus_alloc_resource(dev, SYS_RES_IRQ, &sc->irq_rid, ! 0, ~0, 1, RF_ACTIVE); if (!sc->irq) { wi_free(dev); device_printf(dev, "No irq?!\n"); --- 1906,1912 ---- sc->irq_rid = 0; sc->irq = bus_alloc_resource(dev, SYS_RES_IRQ, &sc->irq_rid, ! 0, ~0, 1, RF_SHAREABLE|RF_ACTIVE); if (!sc->irq) { wi_free(dev); device_printf(dev, "No irq?!\n"); Thx, Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message