Can't assign irq for integrated wireless NIC
Yevgen Muntyan
muntyan at math.tamu.edu
Thu Mar 11 02:31:35 PST 2004
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
More information about the freebsd-current
mailing list