Date: Thu, 11 Mar 2004 04:31:34 -0600 From: Yevgen Muntyan <muntyan@math.tamu.edu> To: John Baldwin <jhb@FreeBSD.org> Cc: freebsd-current@FreeBSD.org Subject: Re: Can't assign irq for integrated wireless NIC Message-ID: <40504006.1060407@math.tamu.edu> In-Reply-To: <200403091325.34299.jhb@FreeBSD.org> References: <200402291903.20499.muntyan@tamu.edu> <200403081546.23492.jhb@FreeBSD.org> <200403081743.57194.muntyan@tamu.edu> <200403091325.34299.jhb@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 >@@ -263,6 +263,21 @@ > } > > /* >+ * 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?40504006.1060407>