From owner-freebsd-current@FreeBSD.ORG Tue Mar 9 13:09:46 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1309216A4CE for ; Tue, 9 Mar 2004 13:09:46 -0800 (PST) Received: from mara.loteco.ru (florent-mashin.rmt.ru [81.13.8.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0438C43D1D for ; Tue, 9 Mar 2004 13:09:45 -0800 (PST) (envelope-from anton@nikiforov.ru) Received: from anna.loteco.ru (anna.office.loteco.ru [192.168.20.2]) by mara.loteco.ru (8.12.9p2/8.12.6) with ESMTP id i29L9h0G060918 for ; Wed, 10 Mar 2004 00:09:43 +0300 (MSK) Received: from anna.loteco.ru (root@localhost) by anna.loteco.ru (8.12.9p2/8.12.6) with SMTP id i29L9hPr004177 for ; Wed, 10 Mar 2004 00:09:43 +0300 (MSK) Received: from nikiforov.ru (anikiforov.office.loteco.ru [192.168.20.3]) by anna.loteco.ru (8.12.9p2/8.12.6) with ESMTP id i29L9huX004158 for ; Wed, 10 Mar 2004 00:09:43 +0300 (MSK) Message-ID: <404E3296.9000504@nikiforov.ru> Date: Wed, 10 Mar 2004 00:09:42 +0300 From: Anton Nikiforov User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040307 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-current@freebsd.org References: <200402291903.20499.muntyan@tamu.edu> <200403081546.23492.jhb@FreeBSD.org> <200403081743.57194.muntyan@tamu.edu> <200403091325.34299.jhb@FreeBSD.org> In-Reply-To: <200403091325.34299.jhb@FreeBSD.org> Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=sha1; boundary="------------ms030706080401070702070902" Subject: Re: Can't assign irq for integrated wireless NIC X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: anton@nikiforov.ru List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Mar 2004 21:09:46 -0000 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: 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 bnRvbkBuaWtpZm9yb3YucnUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC1Ps7E cf3xTnaY72Aip/U5HeUmGwQ6QmbCjMcqS3XfO6EsA+5ol526JvhQ1XStpDX/kh8R8MDELUJD SVooXFiDInspw5tmPOlXV1C60xH4VWf5Gh+2y3yDGzHyWBAalul7LbhC1p8zDNUA12pAu4Ry 1k1A0Yepomr8CRbh/Z9JryfJcqHYDL+z1qgLzQlpJsao9E3Zld5ZfgJPORcFoRB7Z6jvqVLh pLNmSrvfDbSw6WK/K9EbZT9zlOTlmOnt4uLBy3hKZMcvkaFrYVYTRXLMegJHF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