Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Mar 2004 15:46:23 -0500
From:      John Baldwin <jhb@FreeBSD.org>
To:        Yevgen Muntyan <muntyan@tamu.edu>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Can't assign irq for integrated wireless NIC
Message-ID:  <200403081546.23492.jhb@FreeBSD.org>
In-Reply-To: <200403080513.08110.muntyan@tamu.edu>
References:  <200402291903.20499.muntyan@tamu.edu> <200403031434.26621.jhb@FreeBSD.org> <200403080513.08110.muntyan@tamu.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403081546.23492.jhb>