From owner-freebsd-current@FreeBSD.ORG Mon Mar 8 12:45:17 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 455ED16A507 for ; Mon, 8 Mar 2004 12:45:17 -0800 (PST) Received: from mail4.speakeasy.net (mail4.speakeasy.net [216.254.0.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 238D443D41 for ; Mon, 8 Mar 2004 12:45:17 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: (qmail 19328 invoked from network); 8 Mar 2004 20:45:16 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 8 Mar 2004 20:45:16 -0000 Received: from 10.50.40.205 (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.10/8.12.10) with ESMTP id i28Kj528019148; Mon, 8 Mar 2004 15:45:05 -0500 (EST) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: Yevgen Muntyan Date: Mon, 8 Mar 2004 15:46:23 -0500 User-Agent: KMail/1.6 References: <200402291903.20499.muntyan@tamu.edu> <200403031434.26621.jhb@FreeBSD.org> <200403080513.08110.muntyan@tamu.edu> In-Reply-To: <200403080513.08110.muntyan@tamu.edu> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit Message-Id: <200403081546.23492.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx cc: freebsd-current@freebsd.org Subject: Re: Can't assign irq for integrated wireless NIC X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Mar 2004 20:45:17 -0000 On Monday 08 March 2004 06:13 am, Yevgen Muntyan wrote: > On Wednesday 03 March 2004 13:34, John Baldwin wrote: > > Sorry, it would be the if_ndis.ko that did the messages. Can you load > > ndis.ko and if_ndis.ko from the boot loader, do a boot -v and capture > > that output via a serial console or some such? > > Hello, > > Sorry for delay, I could not find null-modem cable. I have not found it > yet, but I've made pictures of all screens during boot; I put them on > http://munt.mine.nu:3000/if_ndis.html > Sorry for this, still looking for cable. Please try this patch and let me know if it works: Index: if_ndis_pci.c =================================================================== RCS file: /home/ncvs/src/sys/dev/if_ndis/if_ndis_pci.c,v retrieving revision 1.1 diff -u -r1.1 if_ndis_pci.c --- if_ndis_pci.c 7 Mar 2004 02:49:06 -0000 1.1 +++ if_ndis_pci.c 8 Mar 2004 20:41:56 -0000 @@ -263,6 +263,20 @@ } /* + * Allocate an IRQ if we don't already have one. + */ + if (sc->ndis_irq == NULL) { + rid = 0; + sc->ndis_irq = bus_alloc_resource(dev, SYS_RES_IRQ, &rid, 0, ~0, 1, + RF_SHAREABLE | RF_ACTIVE); + if (sc->ndis_irq == NULL) { + device_printf(dev, "couldn't route interrupt\n"); + error = ENXIO; + goto fail; + } + } + + /* * Allocate the parent bus DMA tag appropriate for PCI. */ #define NDIS_NSEG_NEW 32 -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org