Re: Can't assign irq for integrated wireless NIC

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Mon, 8 Mar 2004 15:46:23 -0500
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
_at__at_ -263,6 +263,20 _at__at_
 	}
 
 	/*
+	 * 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_at_FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org
Received on Mon Mar 08 2004 - 11:45:17 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:46 UTC