Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Mar 2004 00:09:42 +0300
From:      Anton Nikiforov <anton@nikiforov.ru>
To:        freebsd-current@freebsd.org
Subject:   Re: Can't assign irq for integrated wireless NIC
Message-ID:  <404E3296.9000504@nikiforov.ru>
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
This is a cryptographically signed message in MIME format.

--------------ms030706080401070702070902
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Hello All.
Looks like i have the same trouble with Compaq Presario 2585.
Does somebody knows about how to setup it's internal WiFi adapter?

Thanks in advance,
Regards,
Anton

John Baldwin wrote:

>On Monday 08 March 2004 06:43 pm, Yevgen Muntyan wrote:
>  
>
>>On Monday 08 March 2004 14:46, John Baldwin wrote:
>>    
>>
>>>Please try this patch and let me know if it works:
>>>      
>>>
>>Hello,
>>It really works!!! Though there are some problems:
>>
>>1) if you do not load ndis and if_ndis modules on startup, then it's
>>impossible to use them after that: I do
>>
>>kldload ndis
>>kldload if_ndis
>>
>>and it says the following (see attached "dmesg.bootwithoutmodules"):
>>
>>ndis0: <HP WLAN 54g W450 Network Adapter> mem 0xd0002000-0xd0003fff at
>>device 9. 0 on pci0
>>pcib0: matched entry for 0.9.INTA (source \\_SB_.PCI0.ISA_.LNK3)
>>pcib0: slot 9 INTA is routed to irq 10
>>ndis0: NDIS API version: 5.0
>>ndis0: NDIS ERROR: c000138d (unknown error)
>>ndis0: NDIS NUMERRORS: 1
>>ndis0: argptr: 0xa
>>ndis0: init handler failed
>>device_probe_and_attach: ndis0 attach returned 6
>>
>>2) If you load ndis and if_ndis on startup (I did it from boot loader),
>>then device ndis0 is not present (at least in ifconfig output) after system
>>starts, but after kldunload-kldload it appears and it works!! See attached
>>"dmesg.bootwithmodules".
>>    
>>
>
>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.
> 	 */
> #define NDIS_NSEG_NEW 32
>
>  
>


--------------ms030706080401070702070902
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIII7TCC
AtEwggI6oAMCAQICAwvaFTANBgkqhkiG9w0BAQQFADBiMQswCQYDVQQGEwJaQTElMCMGA1UE
ChMcVGhhd3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNv
bmFsIEZyZWVtYWlsIElzc3VpbmcgQ0EwHhcNMDQwMzA1MjExMjI4WhcNMDUwMzA1MjExMjI4
WjBEMR8wHQYDVQQDExZUaGF3dGUgRnJlZW1haWwgTWVtYmVyMSEwHwYJKoZIhvcNAQkBFhJh
bnRvbkBu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UrDgMCBzANBggqhkiG9w0DAgIB
KDB4BgkrBgEEAYI3EAQxazBpMGIxCzAJBgNVBAYTAlpBMSUwIwYDVQQKExxUaGF3dGUgQ29u
c3VsdGluZyAoUHR5KSBMdGQuMSwwKgYDVQQDEyNUaGF3dGUgUGVyc29uYWwgRnJlZW1haWwg
SXNzdWluZyBDQQIDC9oVMHoGCyqGSIb3DQEJEAILMWugaTBiMQswCQYDVQQGEwJaQTElMCMG
A1UEChMcVGhhd3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBl
cnNvbmFsIEZyZWVtYWlsIElzc3VpbmcgQ0ECAwvaFTANBgkqhkiG9w0BAQEFAASCAQB72b0d
Pm+BeSUVix0QudP6NNrMw4gKGxCVOALbGHiBgzSyk31y5P+zsnaLagT2y9dJ0I3OjBg8kqEw
+8T7zdofGhCU6fgwEh76B6fq7vXO2018282rwkUDruwDvTFUKsT5mSfNnILZqupf1fcop/yp
zYqobpu5eu+kG4ivciMQKc3+HmEeoKRXW88oE5GwciBJjV/uJHC+wY7szngduPuuB61O6g62
RukSMkfaKLNmon/bm/ewZGul4kwZAuyD50b63+GBYtrEjRsJltknmhDPtpQWMPlV6Rs4iZG3
VDSJ2IujITevMkojQdjwJoga49mzxC3eU8XLlCuh/PjqQI8wAAAAAAAA
--------------ms030706080401070702070902--



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