From owner-freebsd-net@FreeBSD.ORG Sun Nov 12 11:07:17 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CD65F16A417; Sun, 12 Nov 2006 11:07:17 +0000 (UTC) (envelope-from gabor@FreeBSD.org) Received: from server.t-hosting.hu (server.t-hosting.hu [217.20.133.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id D302F43D99; Sun, 12 Nov 2006 11:07:03 +0000 (GMT) (envelope-from gabor@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by server.t-hosting.hu (Postfix) with ESMTP id 13DB19A1B2C; Sun, 12 Nov 2006 12:07:01 +0100 (CET) X-Virus-Scanned: amavisd-new at t-hosting.hu Received: from server.t-hosting.hu ([127.0.0.1]) by localhost (server.t-hosting.hu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id UzntJhMFu2fP; Sun, 12 Nov 2006 12:06:55 +0100 (CET) Received: from [192.168.2.186] (catv-50635cb6.catv.broadband.hu [80.99.92.182]) by server.t-hosting.hu (Postfix) with ESMTP id 8B90A9A1B2E; Sun, 12 Nov 2006 12:06:55 +0100 (CET) Message-ID: <4557004A.5070105@FreeBSD.org> Date: Sun, 12 Nov 2006 12:06:50 +0100 From: =?UTF-8?B?R8OhYm9yIEvDtnZlc2TDoW4=?= User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) MIME-Version: 1.0 To: Attilio Rao References: <1162993001.4305.37.camel@massimo.datacode.it> <4553A000.7070407@FreeBSD.org> <1163151468.4328.6.camel@massimo.datacode.it> <200611101459.20117.max@love2party.net> <3bbf2fe10611100747l386a624cpd72d04b62a0681e7@mail.gmail.com> <3bbf2fe10611100751i77e9c8afle0aed1e794062f4f@mail.gmail.com> <3bbf2fe10611101149y72f29285s517f5e40a5b8f3e0@mail.gmail.com> <3bbf2fe10611101157p13296002ic974d45c3fe95e09@mail.gmail.com> In-Reply-To: <3bbf2fe10611101157p13296002ic974d45c3fe95e09@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Max Laier , freebsd-net@freebsd.org, Massimo Lusetti , Florent Thoumie , freebsd-hackers@freebsd.org Subject: Re: New wpi driver X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Nov 2006 11:07:17 -0000 Attilio Rao wrote: >> First of all, WPI_PCI_BAR0 might not be defined in this way, but it >> should really use PCIR_BAR() macro. >> Then, probabilly, gabor's device I/O space is relative to another BAR, >> so simply try all 6 using PCIR_BAR(n) where n range is 0-6 until it >> does allocate. > > Sorry, n ranges 0-5... (as I said before 6 different address spaces). > Today it seems I'm absolutely sleeping... (probabilly I'm too angry to > have not parecipied at EuroBSDCon...). > > Attilio > > If I could understand your instructions correctly, I had to change the line sc->mem_rid = WPI_PCI_BAR0 to sc->mem_rid = PCIR_BAR(n) with all the possible n values from 0 to 5. I tried that but it lead nowhere, I still got the same output. If you can ping me on IRC this afternoon, too, I can give you ssh access if you want to take a look. -- Cheers, Gabor