Re: Can't assign irq for integrated wireless NIC

From: Yevgen Muntyan <muntyan_at_math.tamu.edu>
Date: Thu, 11 Mar 2004 04:31:34 -0600
John Baldwin wrote:

>Ok, Bill Paul found a bug in my patch.  Try this one instead (just adds one 
>more line):
>
>Index: if_ndis_pci.c
>===================================================================
>RCS file: /usr/cvs/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	9 Mar 2004 18:24:00 -0000
>_at__at_ -263,6 +263,21 _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;
>+		}
>+		sc->ndis_rescnt++;
>+	}
>+
>+	/*
> 	 * Allocate the parent bus DMA tag appropriate for PCI.
> 	
>
It works! Thank you and Bill Paul. Will this be commited?

Yevgen
Received on Thu Mar 11 2004 - 01:31:34 UTC

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